Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Avoid refixing successful template-oss PRs (#146)
<!-- What / Why --> <!-- Describe the request in detail. What it does and why it's being changed. --> `template-oss-fix` previously returned open template-oss PRs regardless of status. If you continued it would force push to green PRs, leading to unnecessary churn and possibly resetting approvals. I opted to make the new option an exclusion list because commits can have a status of `null`, in the case of merge conflicts or the "Post Dependabot" commit not triggering a new CI run. `"null"` is used to indicate the option should be empty. ### Before ``` % npx -p @npmcli/stafftools@latest gh template-oss-fix --author null Running worker "template-oss-fix" which will "Fix failing template-oss pull requests" on the following items: ✅ npm/abbrev-js chore: bump @npmcli/template-oss from 4.22.0 to 4.23.3 ✅ npm/eslint-config chore: bump @npmcli/template-oss from 4.23.2 to 4.23.3 ✅ npm/hosted-git-info chore: bump @npmcli/template-oss from 4.23.1 to 4.23.3 ? npm/hosted-git-info chore: bump @npmcli/template-oss from 4.23.1 to 4.23.3 ✅ npm/ignore-walk chore: bump @npmcli/template-oss from 4.23.1 to 4.23.3 ✅ npm/ini chore: bump @npmcli/template-oss from 4.23.1 to 4.23.3 ❌ npm/map-workspaces chore: bump @npmcli/template-oss from 4.22.0 to 4.23.3 ✅ npm/minify-registry-metadata chore: bump @npmcli/template-oss from 4.22.0 to 4.23.3 ❌ npm/minipass-fetch chore: bump @npmcli/template-oss from 4.22.0 to 4.23.3 ✅ npm/npm-package-arg chore: bump @npmcli/template-oss from 4.23.1 to 4.23.3 ❌ npm/npm-packlist chore: bump @npmcli/template-oss from 4.22.0 to 4.23.3 ❌ npm/npm-pick-manifest chore: bump @npmcli/template-oss from 4.22.0 to 4.23.3 ❌ npm/query chore: bump @npmcli/template-oss from 4.22.0 to 4.23.3 ✅ npm/ssri chore: bump @npmcli/template-oss from 4.22.0 to 4.23.3 ✅ npm/stafftools chore: bump @npmcli/template-oss from 4.23.1 to 4.23.3 ? npm/types chore: bump @npmcli/template-oss from 4.22.0 to 4.23.3 🔄 npm/unique-slug chore: bump @npmcli/template-oss from 4.23.1 to 4.23.3 Press any key to continue or CTRL+C to exit ``` ### After ``` % ./bin/gh.mjs template-oss-fix --author null Running worker "template-oss-fix" which will "Fix failing template-oss pull requests" on the following items: ? npm/cmd-shim chore: bump @npmcli/template-oss from 4.23.1 to 4.23.3 ? npm/hosted-git-info chore: bump @npmcli/template-oss from 4.23.1 to 4.23.3 ❌ npm/map-workspaces chore: bump @npmcli/template-oss from 4.22.0 to 4.23.3 ❌ npm/minipass-fetch chore: bump @npmcli/template-oss from 4.22.0 to 4.23.3 ❌ npm/npm-packlist chore: bump @npmcli/template-oss from 4.22.0 to 4.23.3 ❌ npm/npm-pick-manifest chore: bump @npmcli/template-oss from 4.22.0 to 4.23.3 ❌ npm/query chore: bump @npmcli/template-oss from 4.22.0 to 4.23.3 ? npm/types chore: bump @npmcli/template-oss from 4.22.0 to 4.23.3 Press any key to continue or CTRL+C to exit ``` ## References <!-- Examples: Related to #0 Depends on #0 Blocked by #0 Fixes #0 Closes #0 --> Spotted while working on merging PRs ahead of npm/cli#7754 --------- Co-authored-by: Gar <[email protected]>
- Loading branch information