Skip to content

⚙️ [Maintenance]: Implement PR supersedence for font data updater#55

Merged
Marius Storhaug (MariusStorhaug) merged 6 commits intomainfrom
copilot/implement-pr-supersedence
Feb 14, 2026
Merged

⚙️ [Maintenance]: Implement PR supersedence for font data updater#55
Marius Storhaug (MariusStorhaug) merged 6 commits intomainfrom
copilot/implement-pr-supersedence

Conversation

Copy link
Contributor

Copilot AI commented Feb 8, 2026

The font data updater script now automatically manages its own pull request lifecycle by closing older update PRs when a new one is created. This mirrors Dependabot's supersedence behavior and keeps the repository tidy without requiring manual cleanup.

PR supersedence logic

After creating a new Auto-Update PR, the script searches for any existing open PRs with titles matching Auto-Update*. Each superseded PR receives an explanatory comment, is automatically closed, and its branch is deleted. Retry logic handles eventual consistency when retrieving the newly created PR.

The supersedence flow:

  1. New Auto-Update PR is created as before
  2. Script queries for existing open Auto-Update PRs (excluding the new one)
  3. Each older PR is commented, closed, and its branch removed
  4. Only the latest update PR remains open

Repository variable for repo name

A $repoName variable sourced from $env:GITHUB_REPOSITORY is now used consistently for all gh CLI calls, ensuring correct repository targeting.

Documentation

A new scripts/README.md documents the updater's features, PR lifecycle management, manual execution instructions, and troubleshooting guidance.

Copilot AI and others added 4 commits February 8, 2026 11:04
Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
Copilot AI changed the title [WIP] Implement PR supersedence for font data updater Implement PR supersedence for font data updater Feb 8, 2026
@github-actions
Copy link
Contributor

No Significant Changes Detected

This PR does not contain changes to files that would trigger a new release:

Path Description
src/** Module source code
README.md Documentation

Build, test, and publish stages will be skipped for this PR.

If you believe this is incorrect, please verify that your changes are in the correct locations.

@MariusStorhaug Marius Storhaug (MariusStorhaug) changed the title Implement PR supersedence for font data updater 🚀 [Feature]: Implement PR supersedence for font data updater Feb 14, 2026
@MariusStorhaug Marius Storhaug (MariusStorhaug) marked this pull request as ready for review February 14, 2026 21:15
Copilot AI review requested due to automatic review settings February 14, 2026 21:15
@github-actions
Copy link
Contributor

No Significant Changes Detected

This PR does not contain changes to files that would trigger a new release:

Path Description
src/** Module source code
README.md Documentation

Build, test, and publish stages will be skipped for this PR.

If you believe this is incorrect, please verify that your changes are in the correct locations.

@MariusStorhaug Marius Storhaug (MariusStorhaug) changed the title 🚀 [Feature]: Implement PR supersedence for font data updater ⚙️ [Maintenance]: Implement PR supersedence for font data updater Feb 14, 2026
Copy link
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 implements automatic PR supersedence for the font data updater, mirroring Dependabot's behavior. When a new Auto-Update PR is created, the script now automatically closes any existing open Auto-Update PRs with an explanatory comment, deletes their branches, and ensures only the most recent update PR remains open. A repository variable $repoName sourced from $env:GITHUB_REPOSITORY is used for GitHub CLI calls.

Changes:

  • Added PR supersedence logic that closes older Auto-Update PRs after creating a new one
  • Introduced $repoName variable for consistent repository targeting in GitHub CLI commands
  • Added comprehensive documentation in scripts/README.md explaining the updater's features, workflow, and PR lifecycle management

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
scripts/Update-FontsData.ps1 Added $repoName variable and implemented PR supersedence logic with retry mechanism, branch cleanup, and explanatory comments for closed PRs
scripts/README.md New documentation file describing the updater's features, PR lifecycle management, manual execution, and troubleshooting

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Contributor

No Significant Changes Detected

This PR does not contain changes to files that would trigger a new release:

Path Description
src/** Module source code
README.md Documentation

Build, test, and publish stages will be skipped for this PR.

If you believe this is incorrect, please verify that your changes are in the correct locations.

@MariusStorhaug Marius Storhaug (MariusStorhaug) merged commit e9f40e3 into main Feb 14, 2026
63 of 64 checks passed
@MariusStorhaug Marius Storhaug (MariusStorhaug) deleted the copilot/implement-pr-supersedence branch February 14, 2026 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🌞 [Other]: Implement PR Supersedence for Font Data Updater

2 participants