-
Notifications
You must be signed in to change notification settings - Fork 0
📖 [Docs]: Update scripts README documentation #159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -4,7 +4,8 @@ This directory contains scripts for automating the maintenance of the GoogleFont | |||||
|
|
||||||
| ## Update-FontsData.ps1 | ||||||
|
|
||||||
| This script automatically updates the `src/FontsData.json` file with the latest font metadata from Google Fonts API. | ||||||
| This script automatically updates the `src/FontsData.json` file with the latest font metadata from | ||||||
| Google Fonts API. | ||||||
|
|
||||||
| ### Features | ||||||
|
|
||||||
|
|
@@ -24,6 +25,7 @@ This script automatically updates the `src/FontsData.json` file with the latest | |||||
| 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 | ||||||
| - Ensures only the latest update PR remains open | ||||||
|
|
||||||
| ### PR Lifecycle Management | ||||||
|
|
@@ -33,20 +35,25 @@ The font data updater implements PR supersedence similar to Dependabot. When a n | |||||
| - 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: | ||||||
|
Comment on lines
35
to
37
|
||||||
|
|
||||||
| ```text | ||||||
| This PR has been superseded by #[NEW_PR_NUMBER] and will be closed automatically. | ||||||
|
|
||||||
| The font data has been updated in the newer PR. Please refer to #[NEW_PR_NUMBER] for the most current changes. | ||||||
| ``` | ||||||
|
|
||||||
| - All superseded PRs are automatically closed | ||||||
| - Branches for closed PRs are deleted | ||||||
|
||||||
| - Branches for closed PRs are deleted | |
| - Branches for superseded PRs are deleted (best-effort) |
There was a problem hiding this comment.
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*, butUpdate-FontsData.ps1actually usesgh pr list --search 'Auto-Update in:title', which matches any title containingAuto-Update(not necessarily a prefix/wildcard pattern). Consider rewording to "titles containing 'Auto-Update'" to reflect the actual search behavior.