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
2 changes: 1 addition & 1 deletion ai/global/agent-roles.instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ Runs in two modes; both use `dotnet changelog` (see [changelog.instructions.md](
- Run after Committer has pushed.
- Wait up to 1 minute for GitHub to auto-create a PR (`cfwf pr list --repo <owner/repo> --head <branch>`); create one if absent with `cfwf pr create --repo <owner/repo> --head <branch> --title "<title>" --body-file <file|->`, which opens it as a draft on the Workflow board as **Development**, or prints the existing PR's URL if the branch already has one.
- Title: Conventional Commits format matching the primary commit; for the placeholder-only commit that opens the PR before any code exists, take the Conventional Commits type from the expected change or from the issue's labels instead (e.g. `bug` gives `fix`, `enhancement` gives `feat`), and correct it once the primary code commit lands if it differs. Never take the PR title or its type from the issue title, because issue titles follow [Issue Titles](github-cli.instructions.md#issue-titles-mandatory), whose prefixes (e.g. `learning:`, `audit:`, `tool(cfwf):`) are not Conventional Commits types. Body: summary + `Closes #<n>` (or `Related to #<n>`), plus a `Closes #<sub-issue>` line for every sub-issue the PR completes (kept on every update).
- Update body if PR already exists (`cfwf pr edit --repo <owner/repo> --pr <number> --body-file <file|->`). Add yourself as assignee (`cfwf pr edit --repo <owner/repo> --pr <number> --assign-self`).
- Update body if PR already exists (`cfwf pr edit --repo <owner/repo> --pr <number> --body-file <file|->`). Add yourself as assignee (`cfwf pr edit --repo <owner/repo> --pr <number> --assign-self`) only on a PR you created or have committed to, and never on a dependency-update PR (`depends/…` or `dependabot/…` branch); see [Assignment](task-workflow.instructions.md#assignment).
- Do **not** mark ready or enable auto-merge here; that is the Orchestrator's job after the AI review loop (see [PR Workflow: AI Review Loop](#pr-workflow-ai-review-loop)). Leave the PR as draft.

## CI Monitor
Expand Down
2 changes: 1 addition & 1 deletion ai/global/github-cli.instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ Only one input of a command can be `-`. For `cfwf pr hand-off`, pass the descrip

Check here before assuming a `cfwf` flag or field exists.

- **Assigning yourself is `cfwf issue edit`/`cfwf pr edit --assign-self`.** There is no separate assign command.
- **Assigning yourself is `cfwf issue edit`/`cfwf pr edit --assign-self`.** There is no separate assign command. On a PR, use it only when you created the PR or have committed to it, and never on a dependency-update PR (`depends/…` or `dependabot/…` branch); see [Assignment](task-workflow.instructions.md#assignment).

- **`cfwf` has no `--json`/`--jq`.** Its output has one fixed format per command, so name what you need with its own options (for example `cfwf pr view --field`), as `cfwf help <command>` lists them.

Expand Down
3 changes: 2 additions & 1 deletion ai/global/task-workflow.instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ A step referring to a **sibling step within its own list** (e.g. "return to P2",
- Assign yourself to the issue before starting work: `cfwf issue edit --repo <owner/repo> --issue <number> --assign-self`. Do not assign it to yourself if you are ONLY raising the issue!
- Only work on unassigned issues or issues already assigned to you.
- Create an issue raised for later work (one you are not starting in this session, such as a follow-up, a matching issue in another repo, or a security bug filed from a review) with no assignee, and assign it only when work on it starts. `--assign-self` assigns whichever account `cfwf` is logged in as, often the owner's, and the rule above then stops any other agent or person picking it up.
- Assign yourself to PRs when creating or updating: `cfwf pr edit --repo <owner/repo> --pr <number> --assign-self`.
- Assign yourself to a PR you created or have committed to: `cfwf pr edit --repo <owner/repo> --pr <number> --assign-self`. Do not try it on a PR with no commit of yours (someone else's PR): `cfwf` refuses it, and that refusal is expected and needs no comment.
- Never assign yourself to a dependency-update PR (branch `depends/…` or `dependabot/…`), and never change its assignees, even when it carries your commit. A maintainer adopts it by being its assignee, which already makes it yours to work; changing the assignees drops it from the work queue.

## GitHub Issue and PR Labels

Expand Down
Loading