Skip to content

Commit 18147ff

Browse files
yarikopticclaude
andcommitted
Add GitHub Actions workflow to sync git-bug issues hourly
Scheduled workflow that pulls GitHub issues via git-bug bridge and pushes updated refs/bugs/* to keep offline issue tracking current for all collaborators. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 96d5884 commit 18147ff

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

.github/workflows/sync-git-bug.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
name: Sync git-bug issues
3+
4+
on:
5+
schedule:
6+
# Run hourly at minute 17 (avoid top-of-hour contention)
7+
- cron: "17 * * * *"
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: write
12+
13+
jobs:
14+
sync:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
with:
20+
# Fetch git-bug refs so we can push incremental updates
21+
fetch-depth: 0
22+
23+
- name: Fetch existing bug refs
24+
run: |
25+
git fetch origin 'refs/bugs/*:refs/bugs/*' || true
26+
27+
- name: Install git-bug
28+
run: |
29+
curl -sL -o /usr/local/bin/git-bug \
30+
https://github.com/git-bug/git-bug/releases/download/v0.10.1/git-bug_linux_amd64
31+
chmod +x /usr/local/bin/git-bug
32+
git-bug version
33+
34+
- name: Configure bridge
35+
env:
36+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
run: |
38+
git-bug bridge configure \
39+
--name=github \
40+
--target=github \
41+
--owner=dandi \
42+
--project=dandi-cli \
43+
--token="$GH_TOKEN"
44+
45+
- name: Pull issues from GitHub
46+
run: git-bug bridge pull github
47+
48+
- name: Push bug refs to origin
49+
run: |
50+
git push origin 'refs/bugs/*:refs/bugs/*'

0 commit comments

Comments
 (0)