fix: replace PR creation with issue creation in refresh-snapshot workflow - #2169
Merged
JasonYeMSFT (JasonYeMSFT) merged 3 commits intoMay 5, 2026
Merged
Conversation
…flow Agent-Logs-Url: https://github.com/microsoft/GitHub-Copilot-for-Azure/sessions/457c9088-393c-4f47-b1f1-91897697dab2 Co-authored-by: kvenkatrajan <102772054+kvenkatrajan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update refresh-snapshot.yml to create an issue instead of PR
fix: replace PR creation with issue creation in refresh-snapshot workflow
May 5, 2026
kvenkatrajan
approved these changes
May 5, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the scheduled refresh-azure-mcp-tool-snapshot.yml workflow to stop trying to create/update a pull request (which fails due to missing pull-requests: write on GITHUB_TOKEN) and instead create a deduplicated issue with manual reproduction steps, then assign it to @copilot.
Changes:
- Replaced PR-creation logic with GitHub Search-based open-issue dedupe + new issue creation via
actions/github-script. - Removed branch/commit/force-push steps and added a lightweight “check for changes” gate.
- Added an assignment step using
gh issue editauthenticated viaASSIGN_ISSUE_TOKEN.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/refresh-azure-mcp-tool-snapshot.yml |
Switches snapshot-refresh automation from PR creation to issue creation + assignment when snapshot content changes. |
Copilot's findings
- Files reviewed: 1/1 changed files
- Comments generated: 1
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
JasonYeMSFT (JasonYeMSFT)
approved these changes
May 5, 2026
This was referenced May 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
refresh-azure-mcp-tool-snapshot.ymlworkflow was failing silently becauseGITHUB_TOKENin this repo lackspull-requests: write, causing the PR creation step to error out.Changes
contents: write+pull-requests: writeforissues: writelistForRepo) to detect duplicates reliably regardless of open-issue volume, then creates an issue with reproduction instructions@copilot— runsgh issue edit --add-assignee "@copilot"viaASSIGN_ISSUE_TOKEN, matching the pattern inskill-factory.yml