Skip to content

Commit 20cf3fc

Browse files
authored
ci: filter daily recaps to community-only and fix vouch workflow authentication (anomalyco#12910)
1 parent 949f610 commit 20cf3fc

File tree

3 files changed

+25
-7
lines changed

3 files changed

+25
-7
lines changed

.github/workflows/daily-issues-recap.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,12 @@ jobs:
4848
TODAY'S DATE: ${TODAY}
4949
5050
STEP 1: Gather today's issues
51-
Search for all issues created today (${TODAY}) using:
52-
gh issue list --repo ${{ github.repository }} --state all --search \"created:${TODAY}\" --json number,title,body,labels,state,comments,createdAt,author --limit 500
51+
Search for all OPEN issues created today (${TODAY}) using:
52+
gh issue list --repo ${{ github.repository }} --state open --search \"created:${TODAY}\" --json number,title,body,labels,state,comments,createdAt,author --limit 500
53+
54+
IMPORTANT: EXCLUDE all issues authored by Anomaly team members. Filter out issues where the author login matches ANY of these:
55+
adamdotdevin, Brendonovich, fwang, Hona, iamdavidhill, jayair, kitlangton, kommander, MrMushrooooom, R44VC0RP, rekram1-node, thdxr
56+
This recap is specifically for COMMUNITY (external) issues only.
5357
5458
STEP 2: Analyze and categorize
5559
For each issue created today, categorize it:

.github/workflows/daily-pr-recap.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,18 @@ jobs:
4747
TODAY'S DATE: ${TODAY}
4848
4949
STEP 1: Gather PR data
50-
Run these commands to gather PR information. ONLY include PRs created or updated TODAY (${TODAY}):
50+
Run these commands to gather PR information. ONLY include OPEN PRs created or updated TODAY (${TODAY}):
5151
52-
# PRs created today
53-
gh pr list --repo ${{ github.repository }} --state all --search \"created:${TODAY}\" --json number,title,author,labels,createdAt,updatedAt,reviewDecision,isDraft,additions,deletions --limit 100
52+
# Open PRs created today
53+
gh pr list --repo ${{ github.repository }} --state open --search \"created:${TODAY}\" --json number,title,author,labels,createdAt,updatedAt,reviewDecision,isDraft,additions,deletions --limit 100
5454
55-
# PRs with activity today (updated today)
55+
# Open PRs with activity today (updated today)
5656
gh pr list --repo ${{ github.repository }} --state open --search \"updated:${TODAY}\" --json number,title,author,labels,createdAt,updatedAt,reviewDecision,isDraft,additions,deletions --limit 100
5757
58+
IMPORTANT: EXCLUDE all PRs authored by Anomaly team members. Filter out PRs where the author login matches ANY of these:
59+
adamdotdevin, Brendonovich, fwang, Hona, iamdavidhill, jayair, kitlangton, kommander, MrMushrooooom, R44VC0RP, rekram1-node, thdxr
60+
This recap is specifically for COMMUNITY (external) contributions only.
61+
5862
5963
6064
STEP 2: For high-activity PRs, check comment counts

.github/workflows/vouch-manage-by-issue.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,20 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- uses: actions/checkout@v4
21+
with:
22+
persist-credentials: false
23+
fetch-depth: 0
24+
25+
- name: Setup git committer
26+
id: committer
27+
uses: ./.github/actions/setup-git-committer
28+
with:
29+
opencode-app-id: ${{ vars.OPENCODE_APP_ID }}
30+
opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }}
2131

2232
- uses: mitchellh/vouch/action/manage-by-issue@main
2333
with:
2434
issue-id: ${{ github.event.issue.number }}
2535
comment-id: ${{ github.event.comment.id }}
2636
env:
27-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
GITHUB_TOKEN: ${{ steps.committer.outputs.token }}

0 commit comments

Comments
 (0)