Skip to content

Commit 223b974

Browse files
authored
Add additional Agent users and Agent workflows (#48985)
* Add workflows and add more users * fix pull-request prems in issue triage * Update allowlist, add docs-pr-review workflow * Update workflow triggers to run less often and update user list * mention that the agent cant close the issues itself
1 parent 0f5f061 commit 223b974

13 files changed

+126
-8
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Breaking Change Detect
2+
on:
3+
schedule:
4+
- cron: "0 13 * * 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-breaking-change-detect.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 }}

.github/workflows/trigger-code-simplifier.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Code Simplifier
22
on:
33
schedule:
4-
- cron: "0 13 * * 1-5"
4+
- cron: "0 13 * * 3"
55
workflow_dispatch:
66

77
permissions:

.github/workflows/trigger-docs-drift.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,9 @@ jobs:
1616
setup-commands: |
1717
sudo apt-get update && sudo apt-get install -y libpcap-dev librpm-dev python3-venv
1818
make mage
19+
additional-instructions: |
20+
Pay careful attention to backport labels and be sure to propose similar backports to the change
21+
which caused the docs to drift in the first place.
22+
1923
secrets:
2024
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 New Contributor Review
2+
on:
3+
schedule:
4+
- cron: "0 14 * * 2"
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-docs-new-contributor-review.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: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Docs PR Review
2+
on:
3+
issue_comment:
4+
types: [created]
5+
6+
permissions:
7+
contents: read
8+
issues: read
9+
pull-requests: write
10+
checks: read
11+
actions: read
12+
13+
jobs:
14+
run:
15+
if: >-
16+
github.event.issue.pull_request != null &&
17+
startsWith(github.event.comment.body, '/docs-review')
18+
uses: elastic/ai-github-actions/.github/workflows/gh-aw-docs-pr-review.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 }}

.github/workflows/trigger-issue-triage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ permissions:
77
contents: read
88
discussions: write
99
issues: write
10-
pull-requests: read
10+
pull-requests: write
1111

1212
jobs:
1313
run:
1414
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)
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","belimawr","ycombinator","zmoog","MichaelKatsoulis","gizas","AndersonQ","chrisberkhout"]'), github.actor)
1616
uses: elastic/ai-github-actions/.github/workflows/gh-aw-issue-triage.lock.yml@v0
1717
with:
1818
setup-commands: |

.github/workflows/trigger-mention-in-issue.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
if: >-
1515
github.event.issue.pull_request == null &&
1616
(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)
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","belimawr","ycombinator","zmoog","MichaelKatsoulis","gizas","AndersonQ","chrisberkhout"]'), github.actor)
1818
uses: elastic/ai-github-actions/.github/workflows/gh-aw-mention-in-issue.lock.yml@v0
1919
with:
2020
setup-commands: |

.github/workflows/trigger-mention-in-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
if: >-
1717
(startsWith(github.event.comment.body, '/ai') || contains(github.event.comment.body, '@claude')) &&
1818
(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)
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","belimawr","ycombinator","zmoog","MichaelKatsoulis","gizas","AndersonQ","chrisberkhout"]'), github.actor)
2020
uses: elastic/ai-github-actions/.github/workflows/gh-aw-mention-in-pr.lock.yml@v0
2121
with:
2222
setup-commands: |
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: PR CI Detective
2+
on:
3+
workflow_run:
4+
workflows: ["check-default", "pre-commit", "golangci-lint", "check-docs", "check-dev-tools"]
5+
types: [completed]
6+
7+
permissions:
8+
actions: read
9+
contents: read
10+
discussions: write
11+
issues: write
12+
pull-requests: write # required by gh-aw compiler for add-comment (github/gh-aw#16673)
13+
14+
jobs:
15+
run:
16+
if: >-
17+
github.event.workflow_run.conclusion == 'failure' &&
18+
toJSON(github.event.workflow_run.pull_requests) != '[]' &&
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","belimawr","ycombinator","zmoog","MichaelKatsoulis","gizas","AndersonQ","chrisberkhout"]'), github.actor)
20+
uses: elastic/ai-github-actions/.github/workflows/gh-aw-pr-ci-detective.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 }}

.github/workflows/trigger-pr-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
if: >-
1414
github.event.pull_request.draft == false &&
1515
!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)
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","belimawr","ycombinator","zmoog","MichaelKatsoulis","gizas","AndersonQ","chrisberkhout"]'), github.actor)
1717
uses: elastic/ai-github-actions/.github/workflows/gh-aw-pr-review.lock.yml@v0
1818
with:
1919
setup-commands: |

0 commit comments

Comments
 (0)