Skip to content

Commit b5b5c5a

Browse files
Copilotpelikhanlpcox
authored
fix: improve issue URL format in firewall-issue-dispatcher prompt (#1899)
Agent-Logs-Url: https://github.com/github/gh-aw-firewall/sessions/3169bf2f-5258-452f-8a24-255e8067b4c1 Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> Co-authored-by: Landon Cox <landon.cox@microsoft.com>
1 parent 4f35e4c commit b5b5c5a

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

.github/workflows/firewall-issue-dispatcher.lock.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/firewall-issue-dispatcher.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,23 +65,21 @@ gh api graphql -f query='
6565

6666
## Step 2: Filter Locally
6767

68-
From the response, filter out issues where **any comment** contains `github.com/github/gh-aw-firewall/issues/`. These are already audited. Do this filtering in your analysis — do NOT make additional API calls.
68+
For each issue found, read its comments and check whether any comment contains a reference to a `github/gh-aw-firewall` issue (i.e., a URL matching `https://github.com/github/gh-aw-firewall/issues/` or a GitHub cross-repo reference matching `github/gh-aw-firewall#`). If such a comment exists, **skip** that issue — it has already been audited.
6969

7070
If no unprocessed issues remain, call `noop` and stop.
7171

7272
## Step 3: Create Tracking Issues
7373

7474
For each **unprocessed** issue:
7575

76-
1. **Create a tracking issue in `github/gh-aw-firewall`** with:
77-
- Title: `[awf] <component>: <summary>`
78-
- Body: **Problem**, **Context** (link to original), **Root Cause**, **Proposed Solution**
79-
- Reference specific source files. See `AGENTS.md` for component descriptions.
76+
4. **Comment on the original `github/gh-aw` issue** linking to the newly created tracking issue. Use this exact format:
8077

81-
2. **Comment on the original `github/gh-aw` issue**:
82-
> 🔗 AWF tracking issue: https://github.com/github/gh-aw-firewall/issues/NUMBER
78+
> 🔗 AWF tracking issue: https://github.com/github/gh-aw-firewall/issues/{NUMBER}
8379
84-
## Step 4: Summarize
80+
where `{NUMBER}` is replaced with **only the numeric issue number** (e.g., `1896`). Do NOT include the repository name, hash symbols, or any other text — just the number in the URL path. Use the `add_comment` safe output tool with `repo: "github/gh-aw"` and the original issue number.
81+
82+
### 4. Report Results
8583

8684
Report: issues found, skipped (already audited), tracking issues created.
8785

0 commit comments

Comments
 (0)