-
Notifications
You must be signed in to change notification settings - Fork 398
Add centralized slash-command trigger strategy with compiler-generated agentic_commands router workflow #31605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
16269ce
03ea49e
f027538
59e84f4
6f88771
2f2666b
df243c3
a228c7d
3423a6f
5bb0d47
9e53098
089bcc9
8a36773
e471720
dd5fb5b
e762f4a
0fbf69e
db13f81
427b3c7
5cc5e03
c9609be
84311d3
acde9af
b425c32
f436fad
b47da81
e658ef4
4ce24f3
67d5593
5a6c533
6a08f2c
727775c
6281bd9
eb58016
8742d99
7165207
8fc1c59
78c4119
60ad42e
31a6d32
b6bd645
f1eb19f
80cec81
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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,66 @@ | ||
| # gh-aw-commands: {"payload_version":"v1","schema_version":"v1","compiler_version":"b6bd645","commands":["ace","approach-validator","archie","brave","cloclo","craft","grumpy","mergefest","nit","plan","poem-bot","review","security-review","summarize","tidy","unbloat"],"workflows":["ace-editor","approach-validator","archie","brave","cloclo","craft","grumpy-reviewer","mergefest","pdf-summary","plan","poem-bot","pr-code-quality-reviewer","pr-nitpick-reviewer","security-review","tidy","unbloat-docs"]} | ||
| # ___ _ _ | ||
| # / _ \ | | (_) | ||
| # | |_| | __ _ ___ _ __ | |_ _ ___ | ||
| # | _ |/ _` |/ _ \ '_ \| __| |/ __| | ||
| # | | | | (_| | __/ | | | |_| | (__ | ||
| # \_| |_/\__, |\___|_| |_|\__|_|\___| | ||
| # __/ | | ||
| # _ _ |___/ | ||
| # | | | | / _| | | ||
| # | | | | ___ _ __ _ __| |_| | _____ ____ | ||
| # | |/\| |/ _ \ '__| |/ /| _| |/ _ \ \ /\ / / ___| | ||
| # \ /\ / (_) | | | | ( | | | | (_) \ V V /\__ \ | ||
| # \/ \/ \___/|_| |_|\_\|_| |_|\___/ \_/\_/ |___/ | ||
| # | ||
| # This file was automatically generated by gh-aw. DO NOT EDIT. | ||
| # | ||
| # To regenerate this workflow, run: | ||
| # gh aw compile | ||
| # Not all edits will cause changes to this file. | ||
| # | ||
| # For more information: https://github.github.com/gh-aw/introduction/overview/ | ||
| # | ||
| name: "Agentic Commands" | ||
|
|
||
| on: | ||
| issues: | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @copilot the set of triggers should be the minimal union set of triggers of all commands centralized |
||
| types: [edited, opened, reopened] | ||
| issue_comment: | ||
| types: [created, edited] | ||
| pull_request: | ||
| types: [edited, opened, reopened] | ||
| pull_request_review_comment: | ||
| types: [created, edited] | ||
| discussion: | ||
| types: [created, edited] | ||
| discussion_comment: | ||
| types: [created, edited] | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| route: | ||
| runs-on: ubuntu-slim | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @copilot this runs-on should be configurable, use typical resolution stragtegy |
||
| permissions: | ||
| actions: write | ||
| contents: read | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
|
|
||
|
Comment on lines
+49
to
+51
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @copilot in dev mode, you still need to insert the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Implemented in
|
||
| - name: Setup Scripts | ||
| uses: ./actions/setup | ||
| with: | ||
| destination: ${{ runner.temp }}/gh-aw/actions | ||
|
|
||
| - name: Route slash command | ||
| uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 | ||
| env: | ||
| GH_AW_SLASH_ROUTING: '{"ace":[{"workflow":"ace-editor","events":["pull_request_comment"]}],"approach-validator":[{"workflow":"approach-validator","events":["issue_comment","pull_request_comment"]}],"archie":[{"workflow":"archie","events":["issue_comment","issues","pull_request","pull_request_comment"]}],"brave":[{"workflow":"brave","events":["issue_comment"]}],"cloclo":[{"workflow":"cloclo","events":["discussion","discussion_comment","issue_comment","issues","pull_request","pull_request_comment","pull_request_review_comment"]}],"craft":[{"workflow":"craft","events":["issues"]}],"grumpy":[{"workflow":"grumpy-reviewer","events":["pull_request_comment","pull_request_review_comment"]}],"mergefest":[{"workflow":"mergefest","events":["pull_request_comment"]}],"nit":[{"workflow":"pr-nitpick-reviewer","events":["pull_request_comment","pull_request_review_comment"]}],"plan":[{"workflow":"plan","events":["discussion_comment","issue_comment"]}],"poem-bot":[{"workflow":"poem-bot","events":["issues"]}],"review":[{"workflow":"pr-code-quality-reviewer","events":["pull_request_comment","pull_request_review_comment"]}],"security-review":[{"workflow":"security-review","events":["pull_request_comment","pull_request_review_comment"]}],"summarize":[{"workflow":"pdf-summary","events":["issue_comment","issues"]}],"tidy":[{"workflow":"tidy","events":["pull_request_comment"]}],"unbloat":[{"workflow":"unbloat-docs","events":["pull_request_comment"]}]}' | ||
| with: | ||
| script: | | ||
| const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); | ||
| setupGlobals(core, github, context, exec, io, getOctokit); | ||
| const { main } = require('${{ runner.temp }}/gh-aw/actions/route_slash_command.cjs'); | ||
| await main(); | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot include header format with information about compiler version, ...