Skip to content

Commit d078732

Browse files
authored
Merge pull request #41 from stanfish06/copilot/setup-copilot-weekly-review
feat: weekly Copilot repo review via scheduled GitHub Actions workflow
2 parents 4d50c1f + 727d02e commit d078732

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Weekly Repo Review
2+
3+
on:
4+
schedule:
5+
# Every Monday at 09:00 UTC
6+
- cron: '0 9 * * 1'
7+
workflow_dispatch:
8+
9+
jobs:
10+
weekly-review:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
issues: write
15+
16+
steps:
17+
- name: Create review issue for Copilot
18+
env:
19+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
run: |
21+
WEEK=$(date -u '+%Y-W%V')
22+
gh issue create \
23+
--repo stanfish06/my-configs \
24+
--title "Weekly repo review – ${WEEK}" \
25+
--assignee "copilot" \
26+
--body "$(cat <<'EOF'
27+
@copilot Review commits and PRs merged or opened in the last 7 days and open issues in stanfish06/my-configs. For each change, check for:
28+
29+
1. Information leaks — secrets, API keys, tokens, personal emails/paths, private hostnames, or anything that shouldn't be public.
30+
2. Compatibility breaks — config syntax that may be obsolete, deprecated flags, broken references between files, or changes that could break dotfile/script consumers.
31+
3. Improvement opportunities — new features, config options, or fixes worth adopting based on upstream tool updates.
32+
33+
For each finding, open a GitHub issue (try to send a PR with the fix if low-risk and you are confident about the patch). Never commit directly to master — always open a PR. Group related findings into a single issue/PR when sensible. If nothing actionable is found, do nothing.
34+
35+
Files to ignore:
36+
1. .emacs (all emacs configs in the repo can be ignored as they are actively maintained)
37+
EOF
38+
)"

0 commit comments

Comments
 (0)