feat: add GitHub CLI comment body, label management, and CI check-once rules#846
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR promotes three frequently used operational rules from one-shot bootstrap prompts into always-loaded global instruction files so they apply consistently across sessions without enlarging prompts.
Changes:
- Adds mandatory guidance to use HEREDOCs for multi-line
ghcomment/PR bodies (avoid literal\nrendering). - Adds mandatory label-management guidance to always use
--add-label, never--label, and to never remove labels. - Adds an Orchestrator “check CI once” rule (no polling/
--watch; act and stop).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| ai/global/task-workflow.instructions.md | Introduces mandatory label-management rules (--add-label only; never remove labels). |
| ai/global/git.instructions.md | Documents HEREDOC-based gh --body usage for multi-line content. |
| ai/global/agent-roles.instructions.md | Adds Orchestrator CI “check once, act immediately, don’t poll” policy. |
Owner
Author
Super-linter summary
All files and directories linted successfully For more information, see the GitHub Actions workflow run Powered by Super-linter |
…e rules - git.instructions.md: GitHub CLI comment bodies must use HEREDOC (never escaped \n) - task-workflow.instructions.md: label management — always --add-label, never --label, never remove - agent-roles.instructions.md: CI check-once policy under Orchestrator — check once, act immediately, never poll or --watch Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
66d2b02 to
74f97cb
Compare
Owner
Author
Super-linter summary
All files and directories linted successfully For more information, see the GitHub Actions workflow run Powered by Super-linter |
Comment on lines
+74
to
+75
| - Always use `--add-label` when adding labels — **never** `--label`, which replaces all existing labels and destroys automatically-applied classification labels. | ||
| - Never remove labels from issues or PRs. GitHub workflows add classification labels automatically; removing them breaks automation. |
Comment on lines
+47
to
+49
| - Any check pending or in_progress → post a brief status comment on the PR and stop. The orchestrator re-invokes the session automatically when the PR state changes (checks complete, review arrives, etc.). | ||
| - Any check failed → investigate, fix, push, post a status comment, and stop. Do not wait for the new run to complete. | ||
| - CI consistently failing and cannot be fixed → mark the PR blocked: `gh pr edit <number> --repo <owner/repo> --add-label "Blocked"` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves three rules out of the oneshot bootstrap prompts and into the global instruction files so they are loaded automatically by every Claude session without bloating prompts.
ghcomment bodies — never escaped\n--add-label, never--label, never remove labels--watchCompanion PR in credfeto-orchestrator removes the inline IMPORTANT blocks from
build_issue_promptandbuild_pr_promptand replaces them with a one-line reminder to follow the AI instructions.