Skip to content

📖 [Docs]: Update scripts README documentation#159

Merged
MariusStorhaug merged 1 commit intomainfrom
docs/update-scripts-readme
Feb 14, 2026
Merged

📖 [Docs]: Update scripts README documentation#159
MariusStorhaug merged 1 commit intomainfrom
docs/update-scripts-readme

Conversation

@MariusStorhaug
Copy link
Member

Updates the scripts README with improved accuracy, missing details, and markdown style consistency. The documentation now fully reflects the current behavior of the font data updater, including branch cleanup for superseded PRs.

Branch cleanup documentation

Added missing documentation about branch deletion for superseded PRs. The Update-FontsData.ps1 script deletes branches associated with closed superseded PRs, which was previously undocumented.

Markdown style fixes

  • Fixed line wrapping to comply with the 80-120 character guideline
  • Added blank lines before and after fenced code blocks per markdown conventions
  • Improved readability of long paragraphs by breaking at natural phrase boundaries

@MariusStorhaug MariusStorhaug added the NoRelease Do not create a release label Feb 14, 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 MariusStorhaug marked this pull request as ready for review February 14, 2026 21:21
Copilot AI review requested due to automatic review settings February 14, 2026 21:21
@MariusStorhaug MariusStorhaug self-assigned this Feb 14, 2026
Copy link

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

Updates scripts/README.md to better reflect the current behavior and formatting conventions of the font data updater documentation, including newly documented branch cleanup during PR supersedence (Fixes #158).

Changes:

  • Adds documentation that superseded PR branches are deleted as part of the updater’s supersedence flow.
  • Improves markdown readability via line wrapping and consistent spacing around fenced code blocks.
  • Clarifies/reshapes wording in PR lifecycle and development guidance sections.

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

Comment on lines 25 to +28
5. **PR Supersedence**: After creating a new PR, the script:
- Searches for existing open PRs with titles matching `Auto-Update*` (excluding the newly created PR)
- Closes each superseded PR with a comment referencing the new PR number
- Deletes the branches associated with superseded PRs
Copy link

Copilot AI Feb 14, 2026

Choose a reason for hiding this comment

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

Documentation says the script searches for PR titles matching Auto-Update*, but Update-FontsData.ps1 actually uses gh pr list --search 'Auto-Update in:title', which matches any title containing Auto-Update (not necessarily a prefix/wildcard pattern). Consider rewording to "titles containing 'Auto-Update'" to reflect the actual search behavior.

Copilot uses AI. Check for mistakes.
Comment on lines 35 to 37
- The script first creates the new PR
- Then checks for existing open `Auto-Update*` PRs (excluding the newly created one)
- Each existing PR receives a comment referencing the new PR number:
Copy link

Copilot AI Feb 14, 2026

Choose a reason for hiding this comment

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

Same as above: this section describes checking for existing open Auto-Update* PRs, but the script’s query is Auto-Update in:title (contains match). Rewording this to a contains match would keep the README aligned with the implementation.

Copilot uses AI. Check for mistakes.
```

- All superseded PRs are automatically closed
- Branches for closed PRs are deleted
Copy link

Copilot AI Feb 14, 2026

Choose a reason for hiding this comment

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

"Branches for closed PRs are deleted" is a bit broader than what the script does: it deletes branches for PRs it closes as part of supersedence (existing open Auto-Update PRs). Suggest rephrasing to "Branches for superseded PRs are deleted" (optionally noting deletion is best-effort).

Suggested change
- Branches for closed PRs are deleted
- Branches for superseded PRs are deleted (best-effort)

Copilot uses AI. Check for mistakes.
@MariusStorhaug MariusStorhaug merged commit 663d831 into main Feb 14, 2026
49 of 50 checks passed
@MariusStorhaug MariusStorhaug deleted the docs/update-scripts-readme branch February 14, 2026 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

NoRelease Do not create a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update scripts README documentation

1 participant