hive-forge: make ci-rerun --pr help text match the refusal it prints
The doc comment still described the old (never-shipped) behavior -- exactly the lie this whole PR exists to remove, just in --help instead of the module doc or forge.md. Say what the flag actually does: refuse, because a workflow_dispatch run writes no commit status and can't clear a red (pull_request) check. Regenerated docs/tools/forge-cli.md (derived from clap help via 'hive-forge markdown-docs').
This commit is contained in:
parent
92100ac1f8
commit
8de85729cc
2 changed files with 4 additions and 3 deletions
|
|
@ -1370,7 +1370,7 @@ Re-run CI without an empty commit. Pass one of `--pr <n>`, `--run <n>`, or `--br
|
|||
|
||||
###### **Options:**
|
||||
|
||||
* `--pr <PR>` — Re-run CI for this PR (its head branch). Mutually exclusive with `--run` / `--branch`
|
||||
* `--pr <PR>` — Doesn't work: a `workflow_dispatch` run writes no commit status, so it can't clear a red `(pull_request)` check — re-run from the web UI instead. Mutually exclusive with `--run` / `--branch`
|
||||
* `--run <RUN>` — Re-run the same workflow on the same branch this run used. The run number is the `runs/<n>` in the run-page URL. Mutually exclusive with `--pr` / `--branch`
|
||||
* `--branch <BRANCH>` — Re-run `--workflow` on this branch. Mutually exclusive with `--pr` / `--run`
|
||||
* `--workflow <WORKFLOW>` — Workflow file to run (default `ci.yml`). Ignored for `--run`, which uses the run's own workflow
|
||||
|
|
|
|||
|
|
@ -34,8 +34,9 @@ use crate::client::{Client, index};
|
|||
|
||||
#[derive(ClapArgs)]
|
||||
pub struct Args {
|
||||
/// Re-run CI for this PR (its head branch). Mutually exclusive with
|
||||
/// `--run` / `--branch`.
|
||||
/// Doesn't work: a `workflow_dispatch` run writes no commit status, so
|
||||
/// it can't clear a red `(pull_request)` check — re-run from the web UI
|
||||
/// instead. Mutually exclusive with `--run` / `--branch`.
|
||||
#[arg(long, conflicts_with_all = ["run", "branch"])]
|
||||
pr: Option<u64>,
|
||||
/// Re-run the same workflow on the same branch this run used. The run
|
||||
|
|
|
|||
Loading…
Reference in a new issue