Skip to content

Commit adba696

Browse files
authored
Add gh-aw workflows (#48930)
* Add workflows * also trigger on claude * Remove custom footer * pin to v0
1 parent e56b7d5 commit adba696

10 files changed

Lines changed: 215 additions & 0 deletions
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Bug Hunter
2+
on:
3+
schedule:
4+
- cron: "0 11 * * 1-5"
5+
workflow_dispatch:
6+
7+
permissions:
8+
contents: write
9+
issues: write
10+
pull-requests: write
11+
12+
jobs:
13+
run:
14+
uses: elastic/ai-github-actions/.github/workflows/gh-aw-bug-hunter.lock.yml@v0
15+
with:
16+
setup-commands: |
17+
sudo apt-get update && sudo apt-get install -y libpcap-dev librpm-dev python3-venv
18+
make mage
19+
secrets:
20+
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Code Simplifier
2+
on:
3+
schedule:
4+
- cron: "0 13 * * 1-5"
5+
workflow_dispatch:
6+
7+
permissions:
8+
contents: write
9+
issues: write
10+
pull-requests: write
11+
12+
jobs:
13+
run:
14+
uses: elastic/ai-github-actions/.github/workflows/gh-aw-code-simplifier.lock.yml@v0
15+
with:
16+
setup-commands: |
17+
sudo apt-get update && sudo apt-get install -y libpcap-dev librpm-dev python3-venv
18+
make mage
19+
secrets:
20+
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Docs Drift
2+
on:
3+
schedule:
4+
- cron: "0 14 * * 1-5"
5+
workflow_dispatch:
6+
7+
permissions:
8+
contents: write
9+
issues: write
10+
pull-requests: write
11+
12+
jobs:
13+
run:
14+
uses: elastic/ai-github-actions/.github/workflows/gh-aw-docs-drift.lock.yml@v0
15+
with:
16+
setup-commands: |
17+
sudo apt-get update && sudo apt-get install -y libpcap-dev librpm-dev python3-venv
18+
make mage
19+
secrets:
20+
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Issue Triage
2+
on:
3+
issues:
4+
types: [opened]
5+
6+
permissions:
7+
contents: read
8+
discussions: write
9+
issues: write
10+
pull-requests: read
11+
12+
jobs:
13+
run:
14+
if: >-
15+
contains(fromJSON('["strawgate","AlexanderWert","perk","graphaelli","cmacknz","axw","theletterf","jlind23","nimarezainia","pierrehilbert","bturquet","teresaromero","mrodm","jsoriano","kpollich","andrewkroh","norrietaylor","ishleenk17","tommyers-elastic","lalit-satapathy","agithomas"]'), github.actor)
16+
uses: elastic/ai-github-actions/.github/workflows/gh-aw-issue-triage.lock.yml@v0
17+
with:
18+
setup-commands: |
19+
sudo apt-get update && sudo apt-get install -y libpcap-dev librpm-dev python3-venv
20+
make mage
21+
secrets:
22+
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Mention in Issue
2+
on:
3+
issue_comment:
4+
types: [created]
5+
6+
permissions:
7+
contents: write
8+
discussions: write
9+
issues: write
10+
pull-requests: write
11+
12+
jobs:
13+
run:
14+
if: >-
15+
github.event.issue.pull_request == null &&
16+
(startsWith(github.event.comment.body, '/ai') || contains(github.event.comment.body, '@claude')) &&
17+
contains(fromJSON('["strawgate","AlexanderWert","perk","graphaelli","cmacknz","axw","theletterf","jlind23","nimarezainia","pierrehilbert","bturquet","teresaromero","mrodm","jsoriano","kpollich","andrewkroh","norrietaylor","ishleenk17","tommyers-elastic","lalit-satapathy","agithomas"]'), github.actor)
18+
uses: elastic/ai-github-actions/.github/workflows/gh-aw-mention-in-issue.lock.yml@v0
19+
with:
20+
setup-commands: |
21+
sudo apt-get update && sudo apt-get install -y libpcap-dev librpm-dev python3-venv
22+
make mage
23+
secrets:
24+
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Mention in PR
2+
on:
3+
issue_comment:
4+
types: [created]
5+
pull_request_review_comment:
6+
types: [created]
7+
8+
permissions:
9+
contents: write
10+
discussions: write
11+
issues: write
12+
pull-requests: write
13+
14+
jobs:
15+
run:
16+
if: >-
17+
(startsWith(github.event.comment.body, '/ai') || contains(github.event.comment.body, '@claude')) &&
18+
(github.event.issue.pull_request != null || github.event_name == 'pull_request_review_comment') &&
19+
contains(fromJSON('["strawgate","AlexanderWert","perk","graphaelli","cmacknz","axw","theletterf","jlind23","nimarezainia","pierrehilbert","bturquet","teresaromero","mrodm","jsoriano","kpollich","andrewkroh","norrietaylor","ishleenk17","tommyers-elastic","lalit-satapathy","agithomas"]'), github.actor)
20+
uses: elastic/ai-github-actions/.github/workflows/gh-aw-mention-in-pr.lock.yml@v0
21+
with:
22+
setup-commands: |
23+
sudo apt-get update && sudo apt-get install -y libpcap-dev librpm-dev python3-venv
24+
make mage
25+
secrets:
26+
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: PR Review
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
5+
6+
permissions:
7+
contents: read
8+
issues: write
9+
pull-requests: write
10+
11+
jobs:
12+
run:
13+
if: >-
14+
github.event.pull_request.draft == false &&
15+
!contains(github.event.pull_request.labels.*.name, 'skip-auto-pr-review') &&
16+
contains(fromJSON('["strawgate","AlexanderWert","perk","graphaelli","cmacknz","axw","theletterf","jlind23","nimarezainia","pierrehilbert","bturquet","teresaromero","mrodm","jsoriano","kpollich","andrewkroh","norrietaylor","ishleenk17","tommyers-elastic","lalit-satapathy","agithomas"]'), github.actor)
17+
uses: elastic/ai-github-actions/.github/workflows/gh-aw-pr-review.lock.yml@v0
18+
with:
19+
setup-commands: |
20+
sudo apt-get update && sudo apt-get install -y libpcap-dev librpm-dev python3-venv
21+
make mage
22+
secrets:
23+
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Small Problem Fixer
2+
on:
3+
schedule:
4+
- cron: "0 12 * * 1-5"
5+
workflow_dispatch:
6+
7+
permissions:
8+
contents: write
9+
issues: write
10+
pull-requests: write
11+
12+
jobs:
13+
run:
14+
uses: elastic/ai-github-actions/.github/workflows/gh-aw-small-problem-fixer.lock.yml@v0
15+
with:
16+
setup-commands: |
17+
sudo apt-get update && sudo apt-get install -y libpcap-dev librpm-dev python3-venv
18+
make mage
19+
secrets:
20+
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Stale Issues
2+
on:
3+
schedule:
4+
- cron: "0 15 * * 1-5"
5+
workflow_dispatch:
6+
7+
permissions:
8+
contents: read
9+
issues: write
10+
pull-requests: read
11+
12+
jobs:
13+
run:
14+
uses: elastic/ai-github-actions/.github/workflows/gh-aw-stale-issues.lock.yml@v0
15+
with:
16+
setup-commands: |
17+
sudo apt-get update && sudo apt-get install -y libpcap-dev librpm-dev python3-venv
18+
make mage
19+
secrets:
20+
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Test Improvement
2+
on:
3+
schedule:
4+
- cron: "0 9 * * 1"
5+
workflow_dispatch:
6+
7+
permissions:
8+
contents: write
9+
issues: write
10+
pull-requests: write
11+
12+
jobs:
13+
run:
14+
uses: elastic/ai-github-actions/.github/workflows/gh-aw-test-improvement.lock.yml@v0
15+
with:
16+
setup-commands: |
17+
sudo apt-get update && sudo apt-get install -y libpcap-dev librpm-dev python3-venv
18+
make mage
19+
secrets:
20+
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)