ci: add primer-api-review workflow - #8302
Conversation
|
There was a problem hiding this comment.
Pull request overview
This PR introduces a new Agentic Workflows-based CI workflow that periodically audits @primer/react component APIs against the repo’s style guide and keeps a single tracking issue (“Primer API Review”) up to date with unresolved findings.
Changes:
- Adds a new weekly + manually triggerable “Primer API Review” agentic workflow definition and its compiled lock workflow.
- Adds an
agentic-workflowsrouting skill to help direct future gh-aw workflow work to the right upstream prompts. - Updates the gh-aw actions lock metadata and adjusts
.gitattributeshandling for generated lock workflows.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/primer-api-review.md | Defines the agentic workflow prompt/instructions and context-gathering step for weekly API reviews. |
| .github/workflows/primer-api-review.lock.yml | Adds the compiled GitHub Actions workflow that runs the agent, safe-outputs handling, and threat detection. |
| .github/skills/agentic-workflows/SKILL.md | Introduces a dispatcher skill for designing/debugging/upgrading gh-aw workflows using upstream prompt files. |
| .github/aw/actions-lock.json | Updates pinned gh-aw action metadata used for agentic workflow tooling. |
| .gitattributes | Tweaks attributes applied to generated *.lock.yml workflow files. |
Review details
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 4/5 changed files
- Comments generated: 1
- Review effort level: Lite
|
@copilot update this to only run on workflow dispatch for now |
Co-authored-by: joshblack <3901764+joshblack@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Closes https://github.com/github/primer/issues/6975
This adds an experimental workflow that will use our new
/style-guideskill to conduct an API review and create an issue with any findings. We're curious how this will behave as we flesh out the skill and what it will find in our project over time as we make changes.Changelog
New
Changed
Removed
Rollout strategy
This is a change to our agentic workflows and is not a part of the public API