feat(project-meta-sync): add aging and SLA annotations#453
Conversation
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
|
Warning Review limit reached
More reviews will be available in 11 minutes and 39 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ 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 |
🔍 Reviewer Summary for PR #453CI Status: ✅ Recommendations
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e746abc8aa
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const { data: comments } = await github.rest.issues.listComments({ | ||
| owner, | ||
| repo, | ||
| issue_number: number, | ||
| per_page: 100, |
There was a problem hiding this comment.
Paginate before creating SLA comments
For issues or PRs that already have more than 100 comments before this annotation is first added, this only inspects the first page of comments. Because GitHub issue comments are returned oldest-first by default and per_page is capped at 100, the newly-created marker can sit after page 1; subsequent edited, labeled, or synchronize events will not find it and will create another SLA comment each time, defeating the single marker-based upsert.
Useful? React with 👍 / 👎.
Summary
project-meta-sync.ymlto annotate issue/PR aging and SLA stateChanges
.github/workflows/project-meta-sync.ymlissues:write,pull-requests:write)SLA_WARN_DAYS=7SLA_BREACH_DAYS=14Add or update aging and SLA annotationstep usingactions/github-scriptWithin SLA,SLA risk,SLA breached)<!-- project-meta-sync:sla -->Acceptance criteria mapping (#65)
Validation
npx spectral lint .github/workflows/project-meta-sync.yml --ruleset .spectral-workflows.cjsnode scripts/validation/validate-workflows.jsLink