Skip to content

Commit bfcd69d

Browse files
authored
Merge pull request #40 from githubnext/copilot/upgrade-agentic-workflows-another-one
chore: upgrade agentic workflows to v0.83.1
2 parents 7836b6b + f5a1729 commit bfcd69d

3 files changed

Lines changed: 135 additions & 43 deletions

File tree

.github/workflows/agentic-auto-upgrade.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# This file was automatically generated by pkg/workflow/auto_update_workflow.go (v0.81.3). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
1+
# This file was automatically generated by pkg/workflow/auto_update_workflow.go (v0.83.1). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
22
#
3-
# ___ _ _
4-
# / _ \ | | (_)
5-
# | |_| | __ _ ___ _ __ | |_ _ ___
3+
# ___ _ _
4+
# / _ \ | | (_)
5+
# | |_| | __ _ ___ _ __ | |_ _ ___
66
# | _ |/ _` |/ _ \ '_ \| __| |/ __|
7-
# | | | | (_| | __/ | | | |_| | (__
7+
# | | | | (_| | __/ | | | |_| | (__
88
# \_| |_/\__, |\___|_| |_|\__|_|\___|
99
# __/ |
10-
# _ _ |___/
10+
# _ _ |___/
1111
# | | | | / _| |
1212
# | | | | ___ _ __ _ __| |_| | _____ ____
1313
# | |/\| |/ _ \ '__| |/ /| _| |/ _ \ \ /\ / / ___|
@@ -27,7 +27,8 @@
2727
# Or use the gh-aw CLI directly:
2828
# ./gh-aw compile --validate --verbose
2929
#
30-
# The workflow is generated when auto_upgrade is set to true in aw.json.
30+
# The workflow is generated when auto_upgrade is enabled in aw.json (true or object form).
31+
# When auto_upgrade is an object without a cron, the fuzzy weekly schedule is used.
3132
# The weekly schedule is deterministically scattered based on the repository slug.
3233
#
3334
name: Agentic Auto-Upgrade
@@ -49,12 +50,12 @@ jobs:
4950
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
5051

5152
- name: Install gh-aw
52-
uses: github/gh-aw-actions/setup-cli@v0.81.3
53+
uses: github/gh-aw-actions/setup-cli@v0.83.1
5354
with:
54-
version: v0.81.3
55+
version: v0.83.1
5556

5657
- name: Setup Scripts
57-
uses: github/gh-aw-actions/setup@v0.81.3
58+
uses: github/gh-aw-actions/setup@v0.83.1
5859
with:
5960
destination: ${{ runner.temp }}/gh-aw/actions
6061

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# gh-aw-commands: {"payload_version":"v1","schema_version":"v1","compiler_version":"v0.83.1","commands":["matt"],"workflows":["mattpocock-skills-reviewer"]}
2+
# Routing summary (sorted):
3+
# slash commands:
4+
# /matt -> mattpocock-skills-reviewer [pull_request_comment,pull_request_review_comment] reaction=eyes
5+
# labels:
6+
# (none)
7+
# This file was automatically generated by gh-aw (v0.83.1). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
8+
#
9+
# ___ _ _
10+
# / _ \ | | (_)
11+
# | |_| | __ _ ___ _ __ | |_ _ ___
12+
# | _ |/ _` |/ _ \ '_ \| __| |/ __|
13+
# | | | | (_| | __/ | | | |_| | (__
14+
# \_| |_/\__, |\___|_| |_|\__|_|\___|
15+
# __/ |
16+
# _ _ |___/
17+
# | | | | / _| |
18+
# | | | | ___ _ __ _ __| |_| | _____ ____
19+
# | |/\| |/ _ \ '__| |/ /| _| |/ _ \ \ /\ / / ___|
20+
# \ /\ / (_) | | | | ( | | | | (_) \ V V /\__ \
21+
# \/ \/ \___/|_| |_|\_\|_| |_|\___/ \_/\_/ |___/
22+
#
23+
#
24+
# To regenerate this workflow, run:
25+
# gh aw compile
26+
# Not all edits will cause changes to this file.
27+
#
28+
# For more information: https://github.github.com/gh-aw/introduction/overview/
29+
#
30+
name: "Agentic Commands"
31+
32+
on:
33+
issue_comment:
34+
types: [created, edited]
35+
pull_request_review_comment:
36+
types: [created, edited]
37+
38+
permissions: {}
39+
40+
jobs:
41+
route:
42+
runs-on: ubuntu-slim
43+
timeout-minutes: 15
44+
permissions:
45+
actions: write
46+
contents: read
47+
issues: write
48+
pull-requests: write
49+
50+
steps:
51+
- name: Checkout repository
52+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
53+
54+
- name: Setup Scripts
55+
uses: github/gh-aw-actions/setup@v0.83.1
56+
with:
57+
destination: ${{ runner.temp }}/gh-aw/actions
58+
59+
- name: Route slash command
60+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
61+
env:
62+
GH_AW_SLASH_ROUTING: '{"matt":[{"workflow":"mattpocock-skills-reviewer","events":["pull_request_comment","pull_request_review_comment"],"ai_reaction":"eyes","status_comment":true}]}'
63+
GH_AW_LABEL_ROUTING: '{}'
64+
GH_AW_HELP_COMMANDS: '[{"command":"matt","description":"Reviews pull requests using Matt Pocock''s engineering skills to provide targeted, high-quality improvement suggestions based on the type of changes","centralized":true,"decentralized":false,"source_file":"mattpocock-skills-reviewer"}]'
65+
GH_AW_HELP_COMMAND_ENABLED: 'true'
66+
GH_AW_SLASH_COMMAND_DOCS_URL: 'https://github.github.com/gh-aw/reference/command-triggers/'
67+
with:
68+
script: |
69+
const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');
70+
setupGlobals(core, github, context, exec, io, getOctokit);
71+
const { main } = require('${{ runner.temp }}/gh-aw/actions/route_slash_command.cjs');
72+
await main();

.github/workflows/agentics-maintenance.yml

Lines changed: 52 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.81.3). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
1+
# This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.83.1). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
22
#
3-
# ___ _ _
4-
# / _ \ | | (_)
5-
# | |_| | __ _ ___ _ __ | |_ _ ___
3+
# ___ _ _
4+
# / _ \ | | (_)
5+
# | |_| | __ _ ___ _ __ | |_ _ ___
66
# | _ |/ _` |/ _ \ '_ \| __| |/ __|
7-
# | | | | (_| | __/ | | | |_| | (__
7+
# | | | | (_| | __/ | | | |_| | (__
88
# \_| |_/\__, |\___|_| |_|\__|_|\___|
99
# __/ |
10-
# _ _ |___/
10+
# _ _ |___/
1111
# | | | | / _| |
1212
# | | | | ___ _ __ _ __| |_| | _____ ____
1313
# | |/\| |/ _ \ '__| |/ /| _| |/ _ \ \ /\ / / ___|
@@ -87,16 +87,14 @@ on:
8787
permissions: {}
8888

8989
jobs:
90-
close-expired-entities:
90+
close-expired-discussions:
9191
if: ${{ (!(github.event.repository.fork)) && github.event_name != 'push' && (github.event_name != 'workflow_dispatch' && github.event_name != 'workflow_call' || inputs.operation == '') }}
9292
runs-on: ubuntu-slim
9393
permissions:
9494
discussions: write
95-
issues: write
96-
pull-requests: write
9795
steps:
9896
- name: Setup Scripts
99-
uses: github/gh-aw-actions/setup@v0.81.3
97+
uses: github/gh-aw-actions/setup@v0.83.1
10098
with:
10199
destination: ${{ runner.temp }}/gh-aw/actions
102100

@@ -108,6 +106,16 @@ jobs:
108106
setupGlobals(core, github, context, exec, io, getOctokit);
109107
const { main } = require('${{ runner.temp }}/gh-aw/actions/close_expired_discussions.cjs');
110108
await main();
109+
close-expired-issues:
110+
if: ${{ (!(github.event.repository.fork)) && github.event_name != 'push' && (github.event_name != 'workflow_dispatch' && github.event_name != 'workflow_call' || inputs.operation == '') }}
111+
runs-on: ubuntu-slim
112+
permissions:
113+
issues: write
114+
steps:
115+
- name: Setup Scripts
116+
uses: github/gh-aw-actions/setup@v0.83.1
117+
with:
118+
destination: ${{ runner.temp }}/gh-aw/actions
111119

112120
- name: Close expired issues
113121
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
@@ -117,6 +125,16 @@ jobs:
117125
setupGlobals(core, github, context, exec, io, getOctokit);
118126
const { main } = require('${{ runner.temp }}/gh-aw/actions/close_expired_issues.cjs');
119127
await main();
128+
close-expired-pull-requests:
129+
if: ${{ (!(github.event.repository.fork)) && github.event_name != 'push' && (github.event_name != 'workflow_dispatch' && github.event_name != 'workflow_call' || inputs.operation == '') }}
130+
runs-on: ubuntu-slim
131+
permissions:
132+
pull-requests: write
133+
steps:
134+
- name: Setup Scripts
135+
uses: github/gh-aw-actions/setup@v0.83.1
136+
with:
137+
destination: ${{ runner.temp }}/gh-aw/actions
120138

121139
- name: Close expired pull requests
122140
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
@@ -134,7 +152,7 @@ jobs:
134152
actions: write
135153
steps:
136154
- name: Setup Scripts
137-
uses: github/gh-aw-actions/setup@v0.81.3
155+
uses: github/gh-aw-actions/setup@v0.83.1
138156
with:
139157
destination: ${{ runner.temp }}/gh-aw/actions
140158

@@ -163,7 +181,7 @@ jobs:
163181
persist-credentials: false
164182

165183
- name: Setup Scripts
166-
uses: github/gh-aw-actions/setup@v0.81.3
184+
uses: github/gh-aw-actions/setup@v0.83.1
167185
with:
168186
destination: ${{ runner.temp }}/gh-aw/actions
169187

@@ -178,9 +196,9 @@ jobs:
178196
await main();
179197
180198
- name: Install gh-aw
181-
uses: github/gh-aw-actions/setup-cli@v0.81.3
199+
uses: github/gh-aw-actions/setup-cli@v0.83.1
182200
with:
183-
version: v0.81.3
201+
version: v0.83.1
184202

185203
- name: Run operation
186204
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
@@ -210,7 +228,7 @@ jobs:
210228
pull-requests: write
211229
steps:
212230
- name: Setup Scripts
213-
uses: github/gh-aw-actions/setup@v0.81.3
231+
uses: github/gh-aw-actions/setup@v0.83.1
214232
with:
215233
destination: ${{ runner.temp }}/gh-aw/actions
216234

@@ -253,10 +271,11 @@ jobs:
253271
with:
254272
sparse-checkout: |
255273
actions
274+
clean: false
256275
persist-credentials: false
257276

258277
- name: Setup Scripts
259-
uses: github/gh-aw-actions/setup@v0.81.3
278+
uses: github/gh-aw-actions/setup@v0.83.1
260279
with:
261280
destination: ${{ runner.temp }}/gh-aw/actions
262281

@@ -302,7 +321,7 @@ jobs:
302321
persist-credentials: false
303322

304323
- name: Setup Scripts
305-
uses: github/gh-aw-actions/setup@v0.81.3
324+
uses: github/gh-aw-actions/setup@v0.83.1
306325
with:
307326
destination: ${{ runner.temp }}/gh-aw/actions
308327

@@ -317,9 +336,9 @@ jobs:
317336
await main();
318337
319338
- name: Install gh-aw
320-
uses: github/gh-aw-actions/setup-cli@v0.81.3
339+
uses: github/gh-aw-actions/setup-cli@v0.83.1
321340
with:
322-
version: v0.81.3
341+
version: v0.83.1
323342

324343
- name: Create missing labels
325344
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
@@ -348,7 +367,7 @@ jobs:
348367
persist-credentials: false
349368

350369
- name: Setup Scripts
351-
uses: github/gh-aw-actions/setup@v0.81.3
370+
uses: github/gh-aw-actions/setup@v0.83.1
352371
with:
353372
destination: ${{ runner.temp }}/gh-aw/actions
354373

@@ -363,13 +382,13 @@ jobs:
363382
await main();
364383
365384
- name: Install gh-aw
366-
uses: github/gh-aw-actions/setup-cli@v0.81.3
385+
uses: github/gh-aw-actions/setup-cli@v0.83.1
367386
with:
368-
version: v0.81.3
387+
version: v0.83.1
369388

370389
- name: Restore activity report logs cache
371390
id: activity_report_logs_cache
372-
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
391+
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
373392
with:
374393
path: ./.cache/gh-aw/activity-report-logs
375394
key: ${{ runner.os }}-activity-report-logs-${{ github.repository }}-${{ github.ref_name }}-${{ github.run_id }}
@@ -393,7 +412,7 @@ jobs:
393412
394413
- name: Save activity report logs cache
395414
if: ${{ always() }}
396-
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
415+
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
397416
with:
398417
path: ./.cache/gh-aw/activity-report-logs
399418
key: ${{ steps.activity_report_logs_cache.outputs.cache-primary-key }}
@@ -453,7 +472,7 @@ jobs:
453472
persist-credentials: false
454473

455474
- name: Setup Scripts
456-
uses: github/gh-aw-actions/setup@v0.81.3
475+
uses: github/gh-aw-actions/setup@v0.83.1
457476
with:
458477
destination: ${{ runner.temp }}/gh-aw/actions
459478

@@ -468,13 +487,13 @@ jobs:
468487
await main();
469488
470489
- name: Install gh-aw
471-
uses: github/gh-aw-actions/setup-cli@v0.81.3
490+
uses: github/gh-aw-actions/setup-cli@v0.83.1
472491
with:
473-
version: v0.81.3
492+
version: v0.83.1
474493

475494
- name: Restore forecast report logs cache
476495
id: forecast_report_logs_cache
477-
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
496+
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
478497
with:
479498
path: ./.github/aw/logs
480499
key: ${{ runner.os }}-forecast-report-logs-${{ github.repository }}-${{ github.ref_name }}-${{ github.run_id }}
@@ -520,7 +539,7 @@ jobs:
520539
521540
- name: Save forecast report logs cache
522541
if: ${{ always() }}
523-
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
542+
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
524543
with:
525544
path: ./.github/aw/logs
526545
key: ${{ runner.os }}-forecast-report-logs-${{ github.repository }}-${{ github.ref_name }}-${{ github.run_id }}
@@ -545,7 +564,7 @@ jobs:
545564
issues: write
546565
steps:
547566
- name: Setup Scripts
548-
uses: github/gh-aw-actions/setup@v0.81.3
567+
uses: github/gh-aw-actions/setup@v0.83.1
549568
with:
550569
destination: ${{ runner.temp }}/gh-aw/actions
551570

@@ -582,7 +601,7 @@ jobs:
582601
persist-credentials: false
583602

584603
- name: Setup Scripts
585-
uses: github/gh-aw-actions/setup@v0.81.3
604+
uses: github/gh-aw-actions/setup@v0.83.1
586605
with:
587606
destination: ${{ runner.temp }}/gh-aw/actions
588607

@@ -597,9 +616,9 @@ jobs:
597616
await main();
598617
599618
- name: Install gh-aw
600-
uses: github/gh-aw-actions/setup-cli@v0.81.3
619+
uses: github/gh-aw-actions/setup-cli@v0.83.1
601620
with:
602-
version: v0.81.3
621+
version: v0.83.1
603622

604623
- name: Validate workflows and file issue on findings
605624
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0

0 commit comments

Comments
 (0)