Skip to content

Auto-assign Copilot to next- issues generated from weekly run, and add fix-pyright skill#46726

Open
JennyPng wants to merge 23 commits intoAzure:mainfrom
JennyPng:automate-fixing
Open

Auto-assign Copilot to next- issues generated from weekly run, and add fix-pyright skill#46726
JennyPng wants to merge 23 commits intoAzure:mainfrom
JennyPng:automate-fixing

Conversation

@JennyPng
Copy link
Copy Markdown
Member

@JennyPng JennyPng commented May 5, 2026

core:

  • experiment: auto assign gh copilot to create a PR for any detected next-* issues generated from the weekly pipeline
  • checks for existing open PRs tied to the issue, only assigns copilot if none exist
  • reassigns Copilot to an existing issue if the version of the check mentioned was updated
  • assigns copilot by querying for its bot node ID dynamically - did this because I think it could change if the agent session ever gets restarted ....? it's just unclear if this ID may change or not
    • using a GraphQL endpoint because it's better documented for this purpose than assigning through Rest (related thread)
  • expects gh copilot to leverage fix-* skills for all the next- checks

misc.

  • adds a fix-pyright skill which matches existing skills for fixing pylint, sphinx, black, mypy. Makes minor updates to other fix- skills based on feedback received here
  • removes a mention of ruff that was previously missed, since we removed it entirely from the repo

tests:

@JennyPng JennyPng marked this pull request as ready for review May 5, 2026 22:51
@JennyPng JennyPng requested a review from scbedd as a code owner May 5, 2026 22:51
Copilot AI review requested due to automatic review settings May 5, 2026 22:51
@JennyPng JennyPng requested review from a team, benbp, l0lawrence and mccoyp as code owners May 5, 2026 22:51
Copy link
Copy Markdown
Contributor

Copilot AI left a 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 extends the eng/tools/azure-sdk-tools vnext issue automation to optionally auto-assign the Copilot coding agent for eligible next-* issues (with duplicate PR detection and version-bump retriggering), and adds a new fix-pyright skill to align with existing fix-* skills.

Changes:

  • Add Copilot auto-fix helpers to vnext issue creation/update flow (labels, instruction block upsert, duplicate PR detection, GraphQL assignment, and optional force-reassign on version change).
  • Add unit tests covering eligibility, duplicate PR detection, instruction generation, label reconciliation, and assignment flows.
  • Add fix-pyright skill documentation and update engineering docs (including removing the outdated Ruff row).

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
eng/tools/azure-sdk-tools/tests/test_vnext_auto_fix.py Adds tests for Copilot auto-fix helpers and integration behavior.
eng/tools/azure-sdk-tools/gh_tools/vnext_issue_creator.py Implements Copilot auto-fix logic (instructions/labels/assignment) and updates some type signatures and mgmt labeling heuristic.
doc/eng_sys_checks.md Documents the Copilot auto-fix behavior for weekly next-* checks.
doc/analyze_check_versions.md Removes the Ruff row from the checker version table.
.github/skills/fix-pyright/SKILL.md Introduces a new skill guide for fixing pyright issues, consistent with other fix-* skills.

Comment thread eng/tools/azure-sdk-tools/gh_tools/vnext_issue_creator.py Outdated
Comment thread eng/tools/azure-sdk-tools/gh_tools/vnext_issue_creator.py Outdated
Comment thread eng/tools/azure-sdk-tools/gh_tools/vnext_issue_creator.py Outdated
Comment thread eng/tools/azure-sdk-tools/gh_tools/vnext_issue_creator.py Outdated
Comment thread eng/tools/azure-sdk-tools/gh_tools/vnext_issue_creator.py Outdated
Comment thread doc/eng_sys_checks.md Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Comment thread .github/skills/fix-pyright/SKILL.md
Comment thread .github/skills/fix-pyright/SKILL.md
Comment thread .github/skills/fix-pyright/SKILL.md Outdated
Comment thread .github/skills/fix-pyright/SKILL.md Outdated
@JennyPng JennyPng requested a review from scbedd May 6, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants