Skip to content

Commit f6c2fc4

Browse files
authored
Merge pull request #589 from projectbluefin/chore/close-v1.1-milestone
ci: Configure auto-merge for monthly reports workflow
2 parents dcdeacf + e5dbab7 commit f6c2fc4

File tree

3 files changed

+423
-31
lines changed

3 files changed

+423
-31
lines changed

.github/workflows/monthly-reports.yml

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
permissions:
1010
contents: write # For git commits
11-
pull-requests: read # For GraphQL queries
11+
pull-requests: write # For creating PRs and enabling auto-merge
1212

1313
jobs:
1414
generate-report:
@@ -40,11 +40,51 @@ jobs:
4040
run: |
4141
echo "::warning::Report generation encountered errors but will attempt commit"
4242
43-
- name: Commit and push report
43+
- name: Create feature branch
4444
run: |
45+
BRANCH_NAME="monthly-report/$(date +%Y-%m)"
46+
git checkout -b "$BRANCH_NAME"
4547
git config user.name "github-actions[bot]"
4648
git config user.email "github-actions[bot]@users.noreply.github.com"
49+
50+
- name: Commit changes to branch
51+
run: |
4752
git add reports/
4853
[ -f static/data/contributors-history.json ] && git add static/data/contributors-history.json || true
49-
git diff --staged --quiet || git commit -m "docs(reports): add monthly report for $(date +%B-%Y)"
50-
git push
54+
git diff --staged --quiet || git commit -m "docs(reports): add monthly report for $(date +%B\ %Y)"
55+
56+
- name: Push branch and create PR
57+
run: |
58+
BRANCH_NAME="monthly-report/$(date +%Y-%m)"
59+
git push -u origin "$BRANCH_NAME"
60+
gh pr create \
61+
--title "docs(reports): Monthly report for $(date +%B\ %Y)" \
62+
--body "$(cat <<'EOFBODY'
63+
## Automated Monthly Report
64+
65+
This PR contains the automated monthly report generated on $(date +%Y-%m-%d).
66+
67+
### Contents
68+
- Monthly activity summary
69+
- Contributor statistics
70+
- Project updates
71+
72+
### Automated Checks
73+
- [ ] Build passes
74+
- [ ] No lint errors
75+
- [ ] Report renders correctly
76+
77+
**Note:** This PR was automatically generated by the monthly-reports workflow.
78+
EOFBODY
79+
)" \
80+
--base main \
81+
--head "$BRANCH_NAME"
82+
env:
83+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
84+
85+
- name: Enable auto-merge
86+
run: |
87+
BRANCH_NAME="monthly-report/$(date +%Y-%m)"
88+
gh pr merge --auto --merge "$BRANCH_NAME"
89+
env:
90+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.planning/ROADMAP.md

Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
# Roadmap: Biweekly Reports Feature (v1.1)
1+
# Roadmap: Monthly Reports Feature (v1.1)
22

33
**Milestone:** v1.1
4-
**Goal:** Add automated biweekly reports from GitHub Project Board
5-
**Status:** In Progress - Phase 1 Complete
4+
**Goal:** Add automated monthly reports from monitored repositories
5+
**Status:** ✅ COMPLETE
66
**Created:** 2026-01-26
7-
**Updated:** 2026-01-27
7+
**Completed:** 2026-01-27
88

99
---
1010

1111
## Milestone Overview
1212

13-
**What:** Automated biweekly status reports from GitHub Project Board #2
13+
**What:** Automated monthly status reports from projectbluefin/common and monitored repositories
1414

1515
**Why:** Provide community with transparent, data-driven summaries of completed work, contributors, and project momentum.
1616

17-
**How:** 100% automated system that fetches project board data, categorizes by labels, formats as blog posts, and publishes every other Monday.
17+
**How:** 100% automated system that fetches merged PRs from repositories, categorizes by labels, formats as blog posts, and publishes on the last day of each month.
1818

19-
**Success:** Reports published biweekly at `/reports`, properly categorized, mobile-responsive, with RSS feed support. Zero manual intervention required.
19+
**Success:** Reports published monthly at `/reports`, properly categorized, mobile-responsive, with RSS feed support. Zero manual intervention required.
2020

2121
---
2222

@@ -65,37 +65,31 @@
6565

6666
---
6767

68-
### Phase 2: Navigation & Discovery (1 day)
68+
### Phase 2: Navigation & Discovery ✅ COMPLETE
6969

7070
**Goal:** Integrate reports into site navigation and enable discoverability
71-
**Status:** Planned
72-
**Plans:** 2 plans (1 wave)
71+
**Status:** Complete (2026-01-27)
72+
**Plans:** 2 plans completed
7373

74-
**Delivers:**
74+
**Delivered:**
7575

76-
- Main navigation link to `/reports` ✅ (done in Phase 1)
77-
- RSS feed configuration (automatic from Docusaurus) ✅ (done in Phase 1)
78-
- Cross-links with changelogs and blog
79-
- Search integration verification
80-
- Mobile navigation testing
76+
- Main navigation link to `/reports`
77+
- RSS feed configuration (automatic from Docusaurus)
78+
- Cross-links with changelogs and blog
79+
- Search integration verified
80+
- Mobile navigation tested
8181

8282
**Key Files:**
8383

8484
- `src/pages/changelogs.tsx` (cross-link intro)
85-
- `scripts/lib/markdown-generator.js` (footer template)
86-
- `docusaurus.config.ts` (navbar order verification)
87-
- `reports/` (test report generation)
85+
- `scripts/lib/markdown-generator.mjs` (footer template)
86+
- `docusaurus.config.ts` (navbar order verified)
87+
- `reports/` (test reports generated)
8888

89-
**Dependencies:** Phase 1 (reports must exist) ✅ COMPLETE
89+
**Dependencies:** Phase 1 ✅ COMPLETE
9090

91-
Plans:
92-
93-
- [ ] 02-01-PLAN.md — Cross-links & content integration (Wave 1)
94-
- [ ] 02-02-PLAN.md — Validation & testing (Wave 2)
95-
96-
**Success Criteria:**
91+
**Success Criteria:** All met - Reports accessible, discoverable, mobile-responsive
9792

98-
- "Reports" link visible in desktop and mobile navigation ✅ (done in Phase 1)
9993
- RSS feed validates at `/reports/rss.xml` ✅ (done in Phase 1)
10094
- Cross-links function correctly
10195
- Search returns report results

0 commit comments

Comments
 (0)