feat(hive-forge): add repo-create + repo-add-collaborator verbs
This commit is contained in:
parent
41c4682f7a
commit
3790faf318
5 changed files with 168 additions and 0 deletions
|
|
@ -80,6 +80,13 @@ enum Verb {
|
|||
/// Clone a forge repo (default `-r`/`HIVE_FORGE_REPO`) with
|
||||
/// credentials auto-injected. Pairs with `pr-create --agit`.
|
||||
Clone(verbs::clone::Args),
|
||||
/// Create a forge repo under the current user (or `--org`). Prints
|
||||
/// the repo URL. The instance disables push-to-create, so this is
|
||||
/// the supported path to a new repo. Pairs with `repo-add-collaborator`.
|
||||
RepoCreate(verbs::repo_create::Args),
|
||||
/// Add a collaborator to the active repo (`-r`/`HIVE_FORGE_REPO`)
|
||||
/// with a permission level. Companion to `repo-create`.
|
||||
RepoAddCollaborator(verbs::repo_add_collaborator::Args),
|
||||
/// Triage lint queries (unassigned / no-reviewer / stale-branches / assignments).
|
||||
Lint(verbs::lint::Args),
|
||||
/// List issues / PRs with filters (`--kind`, `--state`, `--assignee`,
|
||||
|
|
@ -130,6 +137,8 @@ fn main() -> Result<()> {
|
|||
Verb::Labels(a) => verbs::labels::run(&client, a),
|
||||
Verb::PrStatus(a) => verbs::pr_status::run(&client, a),
|
||||
Verb::Clone(a) => verbs::clone::run(&client, a),
|
||||
Verb::RepoCreate(a) => verbs::repo_create::run(&client, a),
|
||||
Verb::RepoAddCollaborator(a) => verbs::repo_add_collaborator::run(&client, a),
|
||||
Verb::Lint(a) => verbs::lint::run(&client, a),
|
||||
Verb::List(a) => verbs::list::run(&client, a),
|
||||
Verb::Milestone(a) => verbs::milestone::run(&client, a),
|
||||
|
|
|
|||
Loading…
Reference in a new issue