Skip to content

Commit 6dfbc58

Browse files
committed
update workflows
1 parent 776c61d commit 6dfbc58

7 files changed

Lines changed: 36 additions & 70 deletions

File tree

docs/pr-fix.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
55
The ["@pr-fix" workflow](../workflows/pr-fix.md?plain=1) is an alias workflow "@pr-fix" that will help you fix and complete pull requests. By default it will analyze failing CI checks in pull requests, identify root causes, and implement fixes to resolve issues and get PRs back to a passing state.
66

7-
You can trigger the workflow in default mode by adding a comment to a pull request with the alias:
7+
You can trigger the workflow in default mode by adding a comment to a pull request with the command:
88

99
```
10-
@pr-fix
10+
/pr-fix
1111
```
1212

1313
or by writing a comment:
1414

1515
```
16-
@pr-fix Please add more tests.
16+
/pr-fix Please add more tests.
1717
```
1818

1919
## Installation
@@ -24,10 +24,10 @@ gh aw add pr-fix -r githubnext/agentics --pr
2424

2525
This creates a pull request to add the workflow to your repository. You can't start a run of this workflow directly as it is triggered in the context of a pull request with failing checks.
2626

27-
To trigger the workflow on a specific pull request, add a comment with the alias:
27+
To trigger the workflow on a specific pull request, add a comment with the command:
2828

2929
```
30-
@pr-fix
30+
/pr-fix
3131
```
3232

3333
IMPORTANT: GitHub Actions runs will **not** trigger on commits pushed by this workflow and will **not** tell you that CI has not been run unless you have enabled a specific custom check for this condition. **You must open/close the PR or hit "Update branch" if offered to trigger CI.Yes it's painful and yes it's just something you need to be aware of.

workflows/ci-doctor.md

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,16 @@ on:
88
# The condition is handled in the workflow body
99
stop-after: +48h
1010

11+
# Only trigger for failures - check in the workflow body
1112
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
1213

13-
permissions:
14-
contents: read # needed to read repository content and workflow files
15-
actions: read # needed to access workflow runs and job logs
16-
checks: read # needed to read check runs and status
17-
statuses: read # needed to read commit statuses
18-
issues: write # needed to create investigation issues
19-
pull-requests: write # needed to comment on PRs if failure is related
14+
permissions: read-all
2015

21-
tools:
22-
github:
23-
allowed: [
24-
create_issue,
25-
add_issue_comment,
26-
update_issue
27-
]
28-
29-
# Simple file-based storage for investigation results (no external dependencies)
30-
# Using Claude's built-in file operations and a structured approach to storing patterns
31-
# The cache system will handle persistence between runs
16+
safe-outputs:
17+
create-issue:
18+
add-issue-comment:
3219

20+
tools:
3321
claude:
3422
allowed:
3523
WebFetch:
@@ -47,7 +35,6 @@ cache:
4735

4836
timeout_minutes: 10
4937

50-
# Only trigger for failures - check in the workflow body
5138
---
5239

5340
# CI Failure Doctor
@@ -150,6 +137,7 @@ You are the CI Failure Doctor, an expert investigative agent that analyzes faile
150137
## Output Requirements
151138

152139
### Investigation Issue Template
140+
153141
When creating an investigation issue, use this structure:
154142

155143
```markdown

workflows/daily-accessibility-review.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@ on:
88

99
timeout_minutes: 15
1010

11+
permissions: read-all
1112

12-
permissions:
13-
contents: read # Required so the agent can review the code in the repository
14-
issues: write # Required so the agent can create issues for accessibility problems
13+
safe-outputs:
14+
create-issue:
15+
max: 5
16+
add-issue-comment:
17+
max: 5
1518

1619
tools:
1720
playwright:
@@ -20,11 +23,8 @@ tools:
2023
command: npx
2124
args: ["@playwright/mcp@0.0.33", "--headless"]
2225
allowed: ["browser_click", "browser_evaluate", "browser_handle_dialog", "browser_hover", "browser_navigate", "browser_navigate_back", "browser_navigate_forward", "browser_press_key", "browser_resize", "browser_select_option", "browser_snapshot", "browser_take_screenshot", "browser_type", "browser_wait_for"]
23-
github:
24-
allowed: ["create_issue"]
2526
claude:
2627
allowed:
27-
TodoWrite:
2828
WebFetch:
2929
WebSearch:
3030

workflows/daily-perf-improver.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@ on:
88

99
timeout_minutes: 30
1010

11-
permissions:
12-
contents: write # needed to create branches, files, and pull requests in this repo without a fork
13-
issues: write # needed to create report issue
14-
pull-requests: write # needed to create results pull request
15-
actions: read
16-
checks: read
17-
statuses: read
11+
safe-outputs:
12+
create-issue:
13+
max: 5
14+
add-issue-comment:
15+
max: 5
16+
create-pull-request:
1817

1918
tools:
2019
github:

workflows/daily-qa.md

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,12 @@ on:
99

1010
timeout_minutes: 15
1111

12-
permissions:
13-
issues: write # needed to create issues for problems found
14-
contents: read
15-
pull-requests: read
16-
discussions: read
17-
actions: read
18-
checks: read
19-
statuses: read
12+
safe-outputs:
13+
create-issue:
14+
add-issue-comment:
15+
max: 5
2016

2117
tools:
22-
github:
23-
allowed:
24-
[
25-
create_issue,
26-
update_issue,
27-
add_issue_comment,
28-
]
2918
claude:
3019
allowed:
3120
Edit:

workflows/issue-triage.md

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,20 @@ on:
55
stop-after: +30d # workflow will no longer trigger after 30 days. Remove this and recompile to run indefinitely
66
reaction: eyes
77

8-
permissions:
9-
contents: read
10-
issues: write # needed to write comments to the issue
11-
actions: read
12-
checks: read
13-
statuses: read
14-
pull-requests: read
8+
safe-outputs:
9+
add-issue-label:
10+
max: 3
11+
add-issue-comment:
12+
max: 1
13+
14+
permissions: read-all
1515

1616
tools:
17-
github:
18-
allowed: [update_issue, add_issue_comment]
1917
claude:
2018
allowed:
2119
WebFetch:
2220
WebSearch:
2321

24-
# By default agentic workflows use a concurrency setting that
25-
# allows one run at a time, regardless of branch or issue. This is
26-
# not appropriate for triage workflows, so here we allow one run
27-
# per issue at a time.
28-
concurrency:
29-
group: "triage-${{ github.event.issue.number }}"
30-
cancel-in-progress: true
31-
3222
timeout_minutes: 10
3323
---
3424

workflows/pr-fix.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
on:
3-
alias:
3+
command:
44
name: pr-fix
55
reaction: "eyes"
66
stop-after: +48h

0 commit comments

Comments
 (0)