|
| 1 | +# 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"]} |
| 2 | +# ___ _ _ |
| 3 | +# / _ \ | | (_) |
| 4 | +# | |_| | __ _ ___ _ __ | |_ _ ___ |
| 5 | +# | _ |/ _` |/ _ \ '_ \| __| |/ __| |
| 6 | +# | | | | (_| | __/ | | | |_| | (__ |
| 7 | +# \_| |_/\__, |\___|_| |_|\__|_|\___| |
| 8 | +# __/ | |
| 9 | +# _ _ |___/ |
| 10 | +# | | | | / _| | |
| 11 | +# | | | | ___ _ __ _ __| |_| | _____ ____ |
| 12 | +# | |/\| |/ _ \ '__| |/ /| _| |/ _ \ \ /\ / / ___| |
| 13 | +# \ /\ / (_) | | | | ( | | | | (_) \ V V /\__ \ |
| 14 | +# \/ \/ \___/|_| |_|\_\|_| |_|\___/ \_/\_/ |___/ |
| 15 | +# |
| 16 | +# This file was automatically generated by gh-aw. DO NOT EDIT. |
| 17 | +# |
| 18 | +# To regenerate this workflow, run: |
| 19 | +# gh aw compile |
| 20 | +# Not all edits will cause changes to this file. |
| 21 | +# |
| 22 | +# For more information: https://github.github.com/gh-aw/introduction/overview/ |
| 23 | +# |
| 24 | +name: "Agentic Commands" |
| 25 | + |
| 26 | +on: |
| 27 | + issues: |
| 28 | + types: [edited, opened, reopened] |
| 29 | + issue_comment: |
| 30 | + types: [created, edited] |
| 31 | + pull_request: |
| 32 | + types: [edited, opened, reopened] |
| 33 | + pull_request_review_comment: |
| 34 | + types: [created, edited] |
| 35 | + discussion: |
| 36 | + types: [created, edited] |
| 37 | + discussion_comment: |
| 38 | + types: [created, edited] |
| 39 | + |
| 40 | +permissions: {} |
| 41 | + |
| 42 | +jobs: |
| 43 | + route: |
| 44 | + runs-on: ubuntu-slim |
| 45 | + permissions: |
| 46 | + actions: write |
| 47 | + contents: read |
| 48 | + steps: |
| 49 | + - name: Checkout repository |
| 50 | + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
| 51 | + |
| 52 | + - name: Setup Scripts |
| 53 | + uses: ./actions/setup |
| 54 | + with: |
| 55 | + destination: ${{ runner.temp }}/gh-aw/actions |
| 56 | + |
| 57 | + - name: Route slash command |
| 58 | + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 |
| 59 | + env: |
| 60 | + 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"]}]}' |
| 61 | + with: |
| 62 | + script: | |
| 63 | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); |
| 64 | + setupGlobals(core, github, context, exec, io, getOctokit); |
| 65 | + const { main } = require('${{ runner.temp }}/gh-aw/actions/route_slash_command.cjs'); |
| 66 | + await main(); |
0 commit comments