Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .agents/skills/devops-pr-ci/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ Do not run bare `gh` commands. The `devops ci` and `devops pr` commands enforce
## Open and Advance a Pull Request

1. Run `uv run devops pr describe <issue>` to print a valid pull request title and body.
2. Run `uv run devops pr create --title "<title>" --body "<body>"` to open the draft pull request.
2. Run `uv run devops pr create --title "<title>" --body "<body>"` to open the draft pull request. For a pull request in another repository, add `--repo <owner>/<repo> --head <branch>`. The body needs the lines `Closes` and `Change:` only where the base branch holds `openspec/config.yaml`.
3. Run `uv run devops pr monitor <number>` to wait until the remote checks settle.
4. Run `uv run devops pr threads list <number> --unresolved-only` to inspect open review threads.
5. Run `uv run devops pr threads reply <thread_id> "<body>"` to reply in a review thread.
6. Run `uv run devops pr ready <number>` to mark the pull request ready after all checks pass.
6. Run `uv run devops pr ready <number>` to mark the pull request ready after all checks pass. In a repository with no GitHub Actions workflow, a pull request with no checks has nothing to wait for: the command says so and marks it ready with no `--force`.
4 changes: 2 additions & 2 deletions .claude/skills/devops-pr-ci/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ Do not run bare `gh` commands. The `devops ci` and `devops pr` commands enforce
## Open and Advance a Pull Request

1. Run `uv run devops pr describe <issue>` to print a valid pull request title and body.
2. Run `uv run devops pr create --title "<title>" --body "<body>"` to open the draft pull request.
2. Run `uv run devops pr create --title "<title>" --body "<body>"` to open the draft pull request. For a pull request in another repository, add `--repo <owner>/<repo> --head <branch>`. The body needs the lines `Closes` and `Change:` only where the base branch holds `openspec/config.yaml`.
3. Run `uv run devops pr monitor <number>` to wait until the remote checks settle.
4. Run `uv run devops pr threads list <number> --unresolved-only` to inspect open review threads.
5. Run `uv run devops pr threads reply <thread_id> "<body>"` to reply in a review thread.
6. Run `uv run devops pr ready <number>` to mark the pull request ready after all checks pass.
6. Run `uv run devops pr ready <number>` to mark the pull request ready after all checks pass. In a repository with no GitHub Actions workflow, a pull request with no checks has nothing to wait for: the command says so and marks it ready with no `--force`.
4 changes: 2 additions & 2 deletions .kilocode/skills/devops-pr-ci/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ Do not run bare `gh` commands. The `devops ci` and `devops pr` commands enforce
## Open and Advance a Pull Request

1. Run `uv run devops pr describe <issue>` to print a valid pull request title and body.
2. Run `uv run devops pr create --title "<title>" --body "<body>"` to open the draft pull request.
2. Run `uv run devops pr create --title "<title>" --body "<body>"` to open the draft pull request. For a pull request in another repository, add `--repo <owner>/<repo> --head <branch>`. The body needs the lines `Closes` and `Change:` only where the base branch holds `openspec/config.yaml`.
3. Run `uv run devops pr monitor <number>` to wait until the remote checks settle.
4. Run `uv run devops pr threads list <number> --unresolved-only` to inspect open review threads.
5. Run `uv run devops pr threads reply <thread_id> "<body>"` to reply in a review thread.
6. Run `uv run devops pr ready <number>` to mark the pull request ready after all checks pass.
6. Run `uv run devops pr ready <number>` to mark the pull request ready after all checks pass. In a repository with no GitHub Actions workflow, a pull request with no checks has nothing to wait for: the command says so and marks it ready with no `--force`.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ In bash, `${=F}`, `${(f)...}` and `print -r --` fail. The forms `printf '%s'`, `
- Open every pull request with `devops pr create`. It always opens a draft.
- `devops pr create` adds the labels that the title gives, with the rule of intake: `fix(ai): ...` gets `type/bug` and `scope/ai`. Do not add these labels by hand. When a label cannot be added, the command names the pull request and the labels, and exits 1. The pull request stays open.
- When all checks pass, mark the pull request ready with `devops pr ready <pr-number>`. This is the only way out of the draft.
- `devops pr create` checks the title and the body before it opens anything, with the rules below, and exits 1 with every problem when one fails. `devops pr describe <issue> --summary "<summary>"` builds a title and a body that pass the check: the type and the scope come from the issue, the "why" from the proposal of the change folder, and it cuts no text. The module `src/devops_cli/roadmap/pull_form.py` holds the rules.
- `devops pr create` checks the title and the body before it opens anything, with the rules below, and exits 1 with every problem when one fails. `devops pr describe <issue> --summary "<summary>"` builds a title and a body that pass the check: the type and the scope come from the issue, the "why" from the proposal of the change folder, and it cuts no text. The module `src/devops_cli/roadmap/pull_form.py` holds the rules. The rules of the body apply where the base branch holds `openspec/config.yaml`. In a repository without it, such as an infrastructure repository, the command checks the title only, and `--repo` with `--head` opens the pull request from a checkout of devops-cli.
- **The Title Is the Changelog Line**:
The pull request title is a Conventional Commit, and the `Semantic PR title` check enforces it. The squash commit takes the title as its subject, and GitHub adds ` (#<number>)` to it. release-please writes the changelog from these titles, so write the title for a reader of the changelog. The scope is one of the `scope/*` labels of `.github/labels.yml`, or `main` for the release pull request, and the `Semantic PR title` check and `devops pr create` refuse another scope. To use a new scope, declare its label in `.github/labels.yml` and add the scope to the `scopes` list of `.github/workflows/pr-title.yml` in the same pull request. The summary, the text after `<type>(<scope>): `, has at most 60 characters (an emoji counts as two, as the check counts UTF-16 units), and both checks refuse a longer one, and a summary that ends with `...` or is a placeholder such as `x`. The summary states the effect of the change. Put the evidence and the steps in the body or in the change folder:
```
Expand Down
24 changes: 18 additions & 6 deletions docs/CLI_REFERENCE.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions docs/MCP_TOOLS.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ The `devops-cli` FastMCP server exposes DevOps automation and AI review capabili
| [`pr_edit`](#pr-edit) | `false` | Edit pull request base branch, title, body, or milestone. |
| [`pr_list`](#pr-list) | `true` | List pull requests with base targeting and review status. |
| [`pr_monitor`](#pr-monitor) | `true` | Wait until the checks of a PR settle, then name every blocker of its merge. While a check runs or a Copilot review is active, it waits. Then it reports the blockers of the merge-readiness verdict and of its review gate (requested changes, Copilot's review, an approval of the head with --require-reviews). Exit 0: ready; 1: a check failed or could not be read; 2: another blocker; 3: the timeout passed first. |
| [`pr_ready`](#pr-ready) | `false` | Mark a draft pull request as ready for review once draft readiness allows it. It exits 1 for a refusal and 8 while a check runs. For an implement pull request, it names each unticked task group. Every other blocker of the merge-readiness verdict prints as a warning. --force skips the readiness check. It sets the Status of the roadmap item the pull request closes to In Review. |
| [`pr_ready`](#pr-ready) | `false` | Mark a draft pull request as ready for review once draft readiness allows it. It exits 1 for a refusal and 8 while a check runs. A head commit with no check waits for one, unless the repository has no GitHub Actions workflow: then no check will start, and the command says so and marks the pull request ready with no --force. For an implement pull request, it names each unticked task group. Every other blocker of the merge-readiness verdict prints as a warning. --force skips the readiness check. It sets the Status of the roadmap item the pull request closes to In Review. |
| [`pr_threads_list`](#pr-threads-list) | `true` | List PR review discussion threads, file locations, and comments. |
| [`pr_threads_reply`](#pr-threads-reply) | `false` | Post an in-thread reply to a PR review discussion thread. |
| [`pr_threads_resolve`](#pr-threads-resolve) | `false` | Programmatically mark one or more PR review discussion threads as resolved. |
Expand Down Expand Up @@ -1622,8 +1622,10 @@ be read; 2: another blocker; 3: the timeout passed first.

Mark a draft pull request as ready for review once draft readiness allows it.

It exits 1 for a refusal and 8 while a check runs. For an implement pull request, it names
each unticked task group. Every other blocker of the merge-readiness verdict prints as a
It exits 1 for a refusal and 8 while a check runs. A head commit with no check waits for one,
unless the repository has no GitHub Actions workflow: then no check will start, and the command
says so and marks the pull request ready with no --force. For an implement pull request, it
names each unticked task group. Every other blocker of the merge-readiness verdict prints as a
warning. --force skips the readiness check. It sets the Status of the roadmap item the pull
request closes to In Review.

Expand Down
12 changes: 9 additions & 3 deletions docs/commands/gh.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 9 additions & 3 deletions docs/commands/pr.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
schema: spec-driven
created: 2026-11-12
Loading