Add public announcement tracking git action. - #229
Conversation
|
|
📝 WalkthroughSummary
WalkthroughAdds a scheduled and manually triggered GitHub Actions workflow that queries Project v2 items in the “Batched for Public Announcement” status. It marks newly found Issues or PRs, tracks the marker’s earliest timeline event, waits 30 days, and then applies configured target labels when all required source labels are present. Project items are retrieved through paginated GraphQL queries, while labels and timeline events are handled through REST API calls. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/public-announcement-label.yml:
- Around line 101-103: Update the batching logic at
.github/workflows/public-announcement-label.yml lines 101-103 to retain
processable non-Batched items so the workflow can remove MARKER_LABEL when they
leave the configured status; update the marker-event selection at lines 134-137
to use the most recent marker-label event as the active clock start, ensuring
re-entry begins a fresh tracking interval.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 05ba3748-35d0-49c9-8333-db83ad8cec8a
📒 Files selected for processing (1)
.github/workflows/public-announcement-label.yml
Adds a scheduled GitHub Action that watches the Projects v2 board and, for each item in the "Batched for Public Announcement" status, automatically applies the relevant
PublicPR/Pending from <team>label once the item has been in that status for 30 days — but only for teams whosePatch/<team> Completedlabel is present.