-
Notifications
You must be signed in to change notification settings - Fork 39
Add docs-from-code workflow to process labeled issues with Copilot #239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>
Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>
Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>
|
This is not using the copilot cli, only assigning to the copilot, is that intentional? |
I'm honestly not even sure if this works...but, I suppose why do extra work if this does? Ideally the issue will have all the details anyway, so then it's really just assigning Copilot to it, right? What would you expect the difference to be with the CLI approach? |
Co-authored-by: Sébastien Ros <sebastienros@gmail.com>
|
I will probably work, just want to see an actual workflow using the cli before I try myself for other reasons ;) |
@captainsafia workflow is currently using the CLI: https://github.com/dotnet/aspire/blob/main/.github/workflows/pr-docs-hook.yml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds an automated workflow to handle documentation generation from code changes. When issues are labeled with docs-from-code (typically created from PRs in the dotnet/aspire repository), the workflow automatically assigns them to GitHub Copilot and notifies the original PR author for review.
Changes:
- New GitHub Actions workflow that triggers on issue labeling events
- SME (Subject Matter Expert) extraction from issue body using multiple regex patterns
- Fallback mechanism to fetch PR author from dotnet/aspire repository via GitHub API
- Automated assignment to Copilot agent with notification comment mentioning the SME
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Adds a workflow that triggers when issues with the
docs-from-codelabel are created in this repo (from dotnet/aspire). The workflow assigns the issue to GitHub Copilot Agent to draft a PR and tags the original PR author as SME for review.Workflow behavior
issues.labeledevent withdocs-from-codelabelPR Author:,Author:,SME:, etc.) or fetches from linked dotnet/aspire PR URLcopilotuserSME detection patterns
Falls back to GitHub API call if a
github.com/dotnet/aspire/pull/{number}URL is found but no author pattern matches.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.