Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions .github/workflows/agentic-auto-upgrade.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# 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
# 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
#
# ___ _ _
# / _ \ | | (_)
# | |_| | __ _ ___ _ __ | |_ _ ___
# ___ _ _
# / _ \ | | (_)
# | |_| | __ _ ___ _ __ | |_ _ ___
# | _ |/ _` |/ _ \ '_ \| __| |/ __|
# | | | | (_| | __/ | | | |_| | (__
# | | | | (_| | __/ | | | |_| | (__
# \_| |_/\__, |\___|_| |_|\__|_|\___|
# __/ |
# _ _ |___/
# _ _ |___/
# | | | | / _| |
# | | | | ___ _ __ _ __| |_| | _____ ____
# | |/\| |/ _ \ '__| |/ /| _| |/ _ \ \ /\ / / ___|
Expand All @@ -27,7 +27,8 @@
# Or use the gh-aw CLI directly:
# ./gh-aw compile --validate --verbose
#
# The workflow is generated when auto_upgrade is set to true in aw.json.
# The workflow is generated when auto_upgrade is enabled in aw.json (true or object form).
# When auto_upgrade is an object without a cron, the fuzzy weekly schedule is used.
# The weekly schedule is deterministically scattered based on the repository slug.
#
name: Agentic Auto-Upgrade
Expand All @@ -49,12 +50,12 @@ jobs:
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0

- name: Install gh-aw
uses: github/gh-aw-actions/setup-cli@v0.81.3
uses: github/gh-aw-actions/setup-cli@v0.83.1
with:
version: v0.81.3
version: v0.83.1

- name: Setup Scripts
uses: github/gh-aw-actions/setup@v0.81.3
uses: github/gh-aw-actions/setup@v0.83.1
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand Down
72 changes: 72 additions & 0 deletions .github/workflows/agentic_commands.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# gh-aw-commands: {"payload_version":"v1","schema_version":"v1","compiler_version":"v0.83.1","commands":["matt"],"workflows":["mattpocock-skills-reviewer"]}
# Routing summary (sorted):
# slash commands:
# /matt -> mattpocock-skills-reviewer [pull_request_comment,pull_request_review_comment] reaction=eyes
# labels:
# (none)
# 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
#
# ___ _ _
# / _ \ | | (_)
# | |_| | __ _ ___ _ __ | |_ _ ___
# | _ |/ _` |/ _ \ '_ \| __| |/ __|
# | | | | (_| | __/ | | | |_| | (__
# \_| |_/\__, |\___|_| |_|\__|_|\___|
# __/ |
# _ _ |___/
# | | | | / _| |
# | | | | ___ _ __ _ __| |_| | _____ ____
# | |/\| |/ _ \ '__| |/ /| _| |/ _ \ \ /\ / / ___|
# \ /\ / (_) | | | | ( | | | | (_) \ V V /\__ \
# \/ \/ \___/|_| |_|\_\|_| |_|\___/ \_/\_/ |___/
#
#
# 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:
issue_comment:
types: [created, edited]
pull_request_review_comment:
types: [created, edited]

permissions: {}

jobs:
route:
runs-on: ubuntu-slim
timeout-minutes: 15
permissions:
actions: write
contents: read
issues: write
pull-requests: write

steps:
- name: Checkout repository
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0

- name: Setup Scripts
uses: github/gh-aw-actions/setup@v0.83.1
with:
destination: ${{ runner.temp }}/gh-aw/actions

- name: Route slash command
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
GH_AW_SLASH_ROUTING: '{"matt":[{"workflow":"mattpocock-skills-reviewer","events":["pull_request_comment","pull_request_review_comment"],"ai_reaction":"eyes","status_comment":true}]}'
GH_AW_LABEL_ROUTING: '{}'
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"}]'
GH_AW_HELP_COMMAND_ENABLED: 'true'
GH_AW_SLASH_COMMAND_DOCS_URL: 'https://github.github.com/gh-aw/reference/command-triggers/'
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();
85 changes: 52 additions & 33 deletions .github/workflows/agentics-maintenance.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# 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
# 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
#
# ___ _ _
# / _ \ | | (_)
# | |_| | __ _ ___ _ __ | |_ _ ___
# ___ _ _
# / _ \ | | (_)
# | |_| | __ _ ___ _ __ | |_ _ ___
# | _ |/ _` |/ _ \ '_ \| __| |/ __|
# | | | | (_| | __/ | | | |_| | (__
# | | | | (_| | __/ | | | |_| | (__
# \_| |_/\__, |\___|_| |_|\__|_|\___|
# __/ |
# _ _ |___/
# _ _ |___/
# | | | | / _| |
# | | | | ___ _ __ _ __| |_| | _____ ____
# | |/\| |/ _ \ '__| |/ /| _| |/ _ \ \ /\ / / ___|
Expand Down Expand Up @@ -87,16 +87,14 @@ on:
permissions: {}

jobs:
close-expired-entities:
close-expired-discussions:
if: ${{ (!(github.event.repository.fork)) && github.event_name != 'push' && (github.event_name != 'workflow_dispatch' && github.event_name != 'workflow_call' || inputs.operation == '') }}
runs-on: ubuntu-slim
permissions:
discussions: write
issues: write
pull-requests: write
steps:
- name: Setup Scripts
uses: github/gh-aw-actions/setup@v0.81.3
uses: github/gh-aw-actions/setup@v0.83.1
with:
destination: ${{ runner.temp }}/gh-aw/actions

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

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

- name: Close expired pull requests
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
Expand All @@ -134,7 +152,7 @@ jobs:
actions: write
steps:
- name: Setup Scripts
uses: github/gh-aw-actions/setup@v0.81.3
uses: github/gh-aw-actions/setup@v0.83.1
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand Down Expand Up @@ -163,7 +181,7 @@ jobs:
persist-credentials: false

- name: Setup Scripts
uses: github/gh-aw-actions/setup@v0.81.3
uses: github/gh-aw-actions/setup@v0.83.1
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand All @@ -178,9 +196,9 @@ jobs:
await main();

- name: Install gh-aw
uses: github/gh-aw-actions/setup-cli@v0.81.3
uses: github/gh-aw-actions/setup-cli@v0.83.1
with:
version: v0.81.3
version: v0.83.1

- name: Run operation
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
Expand Down Expand Up @@ -210,7 +228,7 @@ jobs:
pull-requests: write
steps:
- name: Setup Scripts
uses: github/gh-aw-actions/setup@v0.81.3
uses: github/gh-aw-actions/setup@v0.83.1
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand Down Expand Up @@ -253,10 +271,11 @@ jobs:
with:
sparse-checkout: |
actions
clean: false
persist-credentials: false

- name: Setup Scripts
uses: github/gh-aw-actions/setup@v0.81.3
uses: github/gh-aw-actions/setup@v0.83.1
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand Down Expand Up @@ -302,7 +321,7 @@ jobs:
persist-credentials: false

- name: Setup Scripts
uses: github/gh-aw-actions/setup@v0.81.3
uses: github/gh-aw-actions/setup@v0.83.1
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand All @@ -317,9 +336,9 @@ jobs:
await main();

- name: Install gh-aw
uses: github/gh-aw-actions/setup-cli@v0.81.3
uses: github/gh-aw-actions/setup-cli@v0.83.1
with:
version: v0.81.3
version: v0.83.1

- name: Create missing labels
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
Expand Down Expand Up @@ -348,7 +367,7 @@ jobs:
persist-credentials: false

- name: Setup Scripts
uses: github/gh-aw-actions/setup@v0.81.3
uses: github/gh-aw-actions/setup@v0.83.1
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand All @@ -363,13 +382,13 @@ jobs:
await main();

- name: Install gh-aw
uses: github/gh-aw-actions/setup-cli@v0.81.3
uses: github/gh-aw-actions/setup-cli@v0.83.1
with:
version: v0.81.3
version: v0.83.1

- name: Restore activity report logs cache
id: activity_report_logs_cache
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ./.cache/gh-aw/activity-report-logs
key: ${{ runner.os }}-activity-report-logs-${{ github.repository }}-${{ github.ref_name }}-${{ github.run_id }}
Expand All @@ -393,7 +412,7 @@ jobs:

- name: Save activity report logs cache
if: ${{ always() }}
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ./.cache/gh-aw/activity-report-logs
key: ${{ steps.activity_report_logs_cache.outputs.cache-primary-key }}
Expand Down Expand Up @@ -453,7 +472,7 @@ jobs:
persist-credentials: false

- name: Setup Scripts
uses: github/gh-aw-actions/setup@v0.81.3
uses: github/gh-aw-actions/setup@v0.83.1
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand All @@ -468,13 +487,13 @@ jobs:
await main();

- name: Install gh-aw
uses: github/gh-aw-actions/setup-cli@v0.81.3
uses: github/gh-aw-actions/setup-cli@v0.83.1
with:
version: v0.81.3
version: v0.83.1

- name: Restore forecast report logs cache
id: forecast_report_logs_cache
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ./.github/aw/logs
key: ${{ runner.os }}-forecast-report-logs-${{ github.repository }}-${{ github.ref_name }}-${{ github.run_id }}
Expand Down Expand Up @@ -520,7 +539,7 @@ jobs:

- name: Save forecast report logs cache
if: ${{ always() }}
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ./.github/aw/logs
key: ${{ runner.os }}-forecast-report-logs-${{ github.repository }}-${{ github.ref_name }}-${{ github.run_id }}
Expand All @@ -545,7 +564,7 @@ jobs:
issues: write
steps:
- name: Setup Scripts
uses: github/gh-aw-actions/setup@v0.81.3
uses: github/gh-aw-actions/setup@v0.83.1
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand Down Expand Up @@ -582,7 +601,7 @@ jobs:
persist-credentials: false

- name: Setup Scripts
uses: github/gh-aw-actions/setup@v0.81.3
uses: github/gh-aw-actions/setup@v0.83.1
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand All @@ -597,9 +616,9 @@ jobs:
await main();

- name: Install gh-aw
uses: github/gh-aw-actions/setup-cli@v0.81.3
uses: github/gh-aw-actions/setup-cli@v0.83.1
with:
version: v0.81.3
version: v0.83.1

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