feat(ci): tag triaged Linear issues with the source repository#1345
Conversation
Resolve (or create) a team label named after the repository and attach it to each created CVE issue alongside the existing "CVE" label, so issues are filterable by their source repo in Linear. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
@brendan-kellam your pull request is missing a changelog! |
|
Caution Review failedPull request was closed or merged during review No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThe vulnerability triage workflow's "Match existing Linear issues" step is extended to query or create a Linear label named after ChangesRepository-scoped Linear label resolution and assignment
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
Summary
Tags each Linear issue created by the vulnerability-triage workflow with a label named after the source repository (e.g.
sourcebot-dev/sourcebot), in addition to the existingCVElabel. This makes triaged issues filterable by repo in Linear.How
CVE-label/state/viewer, resolve a team label whose name equals${{ github.repository }}. If it doesn't exist yet, create it viaissueLabelCreate(team-scoped, like theCVElabel). Expose it as arepo_label_idstep output.CVElabel and the repository label (any that failed to resolve are dropped).The label is created at most once — subsequent runs find the existing one. Reopened issues are unchanged (they already carry their labels).
Notes
github.repository(owner/repo) to match the[owner/repo]title-prefix scoping already used, which keeps it unambiguous across sibling repos (e.g.sourcebot-dev/sourcebot-helm-chart). Easy to switch to the short repo name if you'd prefer.Testing
Verified the label-array construction in
jq(both labels present, repo label missing → onlyCVE, both missing → nolabelIdssent) and that the workflow YAML parses.🤖 Generated with Claude Code
Summary by CodeRabbit