Skip to content

Commit e3db898

Browse files
committed
Make the repo status report weekly and rename the workflow to match
Switch the repo-status schedule from daily to a fixed cron at 12:00 UTC on Sundays (fixed rather than gh-aw's fuzzy "weekly" shorthand, which scatters the run time). Rename daily-repo-status to weekly-repo-status across the workflow, its lock file, post-compile.sh, COPILOT_TOKENS.md, and the rotation comment in daily-issue-triage; the report label becomes weekly-status. The [repo-status] title-prefix is kept so close-older-issues still closes the previous daily report issues.
1 parent 57bcb74 commit e3db898

6 files changed

Lines changed: 70 additions & 69 deletions

File tree

‎.github/COPILOT_TOKENS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ expiration; when it lapses the health check (below) will flag it and you can re-
5858

5959
## How rotation works (for maintainers)
6060

61-
Each agent workflow (`daily-repo-status`, `daily-issue-triage`) defines a `pick_copilot_token`
61+
Each agent workflow (`weekly-repo-status`, `daily-issue-triage`) defines a `pick_copilot_token`
6262
job in its `.md` source. The job has to run outside the agent job because strict mode forbids
6363
reading secrets there. It picks today's alias by day-of-year mod N, checks the token is live
6464
(`GET /user` returns 200, otherwise it moves on to the next candidate) and outputs the chosen

‎.github/scripts/post-compile.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ cd "$(git rev-parse --show-toplevel)"
3939
export NEWVAL='${{ needs.pick_copilot_token.outputs.name != '"'"''"'"' && secrets[format('"'"'COPILOT_GITHUB_TOKEN_{0}'"'"', needs.pick_copilot_token.outputs.name)] || secrets.COPILOT_GITHUB_TOKEN }}'
4040

4141
FILES=(
42-
".github/workflows/daily-repo-status.lock.yml"
42+
".github/workflows/weekly-repo-status.lock.yml"
4343
".github/workflows/daily-issue-triage.lock.yml"
4444
)
4545

‎.github/workflows/daily-issue-triage.lock.yml‎

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.github/workflows/daily-issue-triage.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ engine:
2525
# Strict mode forbids reading secrets in the agent job, so this job picks today's
2626
# token and outputs its alias only; the agent job resolves the secret itself.
2727
# ROTATION_SLOT 1 staggers this workflow half the pool away from
28-
# daily-repo-status so the two pick different tokens (pool of 2 or more).
28+
# weekly-repo-status so the two pick different tokens (pool of 2 or more).
2929
# After `gh aw compile`, run `bash .github/scripts/post-compile.sh` to re-wire the
3030
# agent job to this output.
3131
jobs:

0 commit comments

Comments
 (0)