Skip to content

Restack skill - #64201

Open
Ryan Cavanaugh (RyanCavanaugh) wants to merge 4 commits into
microsoft:mainfrom
RyanCavanaugh:restackSkill
Open

Restack skill#64201
Ryan Cavanaugh (RyanCavanaugh) wants to merge 4 commits into
microsoft:mainfrom
RyanCavanaugh:restackSkill

Conversation

@RyanCavanaugh

Copy link
Copy Markdown
Member

Adds a skill to get agents to format their PRs in a more-reviewable commit history

Copilot AI balanced review requested due to automatic review settings September 8, 2026 18:35
@github-project-automation github-project-automation Bot moved this to Not started in PR Backlog Sep 8, 2026
@typescript-automation typescript-automation Bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Sep 8, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Baseline verification is insufficient and the workflow omits the required baseline-accept step.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review tier: Balanced
Findings: 2 Low severity

New issues introduced by this change (2)
Severity Finding
Low severity .github/​skills/​restack/​SKILL.md — This check does not establish that the new test reproduces the reported bug: every newly added…
Low severity .github/​skills/​restack/​SKILL.md — This step omits the command that copies generated files from baselines/local into the tracked…
What changed in this PR

Adds a restacking skill for organizing TypeScript PR commits into test, fix, and baseline stages.

Changes:

  • Defines the expected restacked commit sequence.
  • Adds test and baseline verification guidance.
File Description
.github/​skills/​restack/​SKILL.md Adds the PR restacking workflow.

Comment thread .github/skills/restack/SKILL.md Outdated
Comment thread .github/skills/restack/SKILL.md
Comment thread .github/skills/restack/SKILL.md Outdated
Comment thread .github/skills/restack/SKILL.md Outdated
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
@github-project-automation github-project-automation Bot moved this from Not started to Needs merge in PR Backlog Sep 8, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The test-failure guidance can accept unrelated failures and incorrectly describes baseline mismatches.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review tier: Balanced
Findings: 1 Low severity

New issues introduced by this change (1)
Severity Finding
Low severity .github/​skills/​restack/​SKILL.md — Checking only whether any test in the full run failed allows an unrelated or flaky failure to…
Issues resolved since last review (2)
Severity Finding
Low severity .github/​skills/​restack/​SKILL.md — This step omits the command that copies generated files from baselines/local into the tracked… View resolved comment
Low severity .github/​skills/​restack/​SKILL.md — This check does not establish that the new test reproduces the reported bug: every newly added… View resolved comment
Suppressed comments (1)

.github/skills/restack/SKILL.md:17

  • This is inaccurate: the baseline harness calls t.Errorf for new or changed baselines (tsc/internal/testutil/baseline/baseline.go:75-79), so a mismatch is a normal test failure even when its diff is expected. Stating otherwise can make agents misinterpret the required failing-test check.
Remember that baseline tests do not "fail" in the traditional sense; they are used to verify that the output matches the expected baseline.

Comment on lines +15 to +16
Ensure that at least one test in the full run fails - you might be operating on a bad PR that didn't actually introduce a failing scenario!
If zero tests failed, abort and post a message explaining what you observed.
Comment thread .github/skills/restack/SKILL.md Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

Status: Needs merge

Development

Successfully merging this pull request may close these issues.

3 participants