@osdlc/repo-cleaner 0.19.0 → 0.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +9 -9
- package/dist/sweep.js +1 -1
- package/dist/version.generated.d.ts +1 -1
- package/dist/version.generated.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @osdlc/repo-cleaner
|
|
2
2
|
|
|
3
|
+
## 0.19.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- bfac1ae: The note that suggests `--provider none` now names what the provider lists ("if this remote has no PRs", or "no merge requests" for GitLab) instead of "if this remote has no forge", and the README drops "forge" the same way.
|
|
8
|
+
|
|
3
9
|
## 0.19.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -597,7 +597,7 @@ a failed fetch costs the whole repository.
|
|
|
597
597
|
| What failed | What you get |
|
|
598
598
|
| --- | --- |
|
|
599
599
|
| `gh pr list` / `glab api` (the PR listing) | Every row is judged on git evidence. Remote branches with no known PR need `--allow confirm-open-pr` to delete. One note on the repository. |
|
|
600
|
-
| `gh` / `glab` not installed or not signed in | The provider is never asked, so this is treated like a failed listing: every row is judged on git evidence, remote branches with no known PR need `--allow confirm-open-pr` to delete, and a note on the repository says why. Pass `--provider none` if the remote has no
|
|
600
|
+
| `gh` / `glab` not installed or not signed in | The provider is never asked, so this is treated like a failed listing: every row is judged on git evidence, remote branches with no known PR need `--allow confirm-open-pr` to delete, and a note on the repository says why. Pass `--provider none` if the remote has no pull requests, so there is nothing to check. |
|
|
601
601
|
| `git ls-remote`, after a fetch that worked | Remote branches are read from the refs that fetch just wrote. A note on the repository and on each remote row. |
|
|
602
602
|
| `git ls-remote`, in `clean`'s re-check of an `--offline` plan | The run is refused before anything runs. The refs on disk are what the re-check is there to replace, and `clean` does not delete on a remote it cannot ask. |
|
|
603
603
|
| `git fetch` | The repository is an error with no rows. Every row would otherwise be judged against an older default branch than the one you asked for. |
|
|
@@ -630,7 +630,7 @@ $ repo-cleaner --remote --offline
|
|
|
630
630
|
2 to delete, 0 to review, across 1 repository.
|
|
631
631
|
```
|
|
632
632
|
|
|
633
|
-
When the remote may
|
|
633
|
+
When the remote may have no pull requests at all, the note also suggests
|
|
634
634
|
`--provider none`: for a host `auto` could only guess was GitHub, or a local
|
|
635
635
|
path swept with `--provider github`. Under `auto`, a local path gets no
|
|
636
636
|
provider in the first place.
|
|
@@ -656,8 +656,8 @@ status: complete
|
|
|
656
656
|
The local branch went; the remote branch stayed. To go on, pick one:
|
|
657
657
|
|
|
658
658
|
- Fix the lookup (install `gh`, sign in, check the remote URL) and run again.
|
|
659
|
-
- Pass `--provider none` if this remote has no
|
|
660
|
-
|
|
659
|
+
- Pass `--provider none` if this remote has no pull requests at all, so there
|
|
660
|
+
is none to lose.
|
|
661
661
|
- Check for open pull requests yourself, then pass `--allow confirm-open-pr`.
|
|
662
662
|
|
|
663
663
|
The same happens when `gh` is not installed or not signed in. Nothing was
|
|
@@ -675,8 +675,8 @@ $ repo-cleaner --remote --offline
|
|
|
675
675
|
2 to delete, 0 to review, across 1 repository.
|
|
676
676
|
```
|
|
677
677
|
|
|
678
|
-
`--provider none` is how you say the remote has no
|
|
679
|
-
lookup, no note and no gate.
|
|
678
|
+
`--provider none` is how you say the remote has no pull requests: then there
|
|
679
|
+
is no lookup, no note and no gate.
|
|
680
680
|
|
|
681
681
|
### `--offline` reads what is already on disk
|
|
682
682
|
|
|
@@ -707,7 +707,7 @@ $ repo-cleaner --remote --offline --provider none # now
|
|
|
707
707
|
`--provider none` to judge with no network at all.
|
|
708
708
|
|
|
709
709
|
The refs on disk can be stale. A remote-tracking ref stays until the next
|
|
710
|
-
`git fetch --prune`, so a branch the
|
|
710
|
+
`git fetch --prune`, so a branch the host deleted after its pull request
|
|
711
711
|
merged still shows in the report, and a branch someone pushed to since shows
|
|
712
712
|
its old tip. That is fine for a report, but `clean` deletes on the remote, so
|
|
713
713
|
before it does, its re-check asks the remote itself with `git ls-remote`. A
|
|
@@ -779,7 +779,7 @@ is allowed.
|
|
|
779
779
|
|
|
780
780
|
A `PrProvider` you write reports a failure by returning `null` or by
|
|
781
781
|
throwing; either becomes `listError` and a note. Return an empty list only
|
|
782
|
-
when the
|
|
782
|
+
when the provider answered and there are no pull requests.
|
|
783
783
|
|
|
784
784
|
The decision behind this is
|
|
785
785
|
[D-UVUH](docs/planning/decisions/D-UVUH-failed-lookups.md).
|
|
@@ -967,7 +967,7 @@ Not done yet:
|
|
|
967
967
|
|
|
968
968
|
`git` on `PATH`, and `gh` (or `glab` for GitLab) for pull request evidence.
|
|
969
969
|
Without it, deleting a remote branch needs `--allow confirm-open-pr`, or
|
|
970
|
-
`--provider none` for a remote with no
|
|
970
|
+
`--provider none` for a remote with no pull requests (see
|
|
971
971
|
[When a lookup fails](#when-a-lookup-fails)). Authentication is the CLI's
|
|
972
972
|
own — this package reads no token.
|
|
973
973
|
|
package/dist/sweep.js
CHANGED
|
@@ -182,7 +182,7 @@ function providerNote(repo, kinds, choice) {
|
|
|
182
182
|
// is a forge: there the cause is access, not the provider.
|
|
183
183
|
const hint = status.host === null ||
|
|
184
184
|
(choice === 'auto' && status.name === 'github' && status.host !== 'github.com')
|
|
185
|
-
?
|
|
185
|
+
? ` Pass \`--provider none\` if this remote has no ${status.noun}s.`
|
|
186
186
|
: '';
|
|
187
187
|
if (unchecked.kind === 'list-failed') {
|
|
188
188
|
return `Listing ${status.noun}s with \`${status.listing}\` failed (${status.listError}); judged on git evidence alone.${hint}`;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** This package's version, from its package.json when it was built. */
|
|
2
|
-
export declare const VERSION = "0.19.
|
|
2
|
+
export declare const VERSION = "0.19.1";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osdlc/repo-cleaner",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.1",
|
|
4
4
|
"description": "What has been merged into the default branch, and what can go away. Inventories local branches, worktrees and remote branches across one repository or many, classifying each with the evidence behind the verdict and the command that would act on it. Plans and applies approved deletes, compare-and-swap.",
|
|
5
5
|
"license": "MIT OR Apache-2.0",
|
|
6
6
|
"author": "sksizer",
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"zod": "^4.6.6",
|
|
52
|
-
"@osdlc/
|
|
52
|
+
"@osdlc/command-seam": "^0.14.0",
|
|
53
53
|
"@osdlc/path-guard": "^0.3.1",
|
|
54
|
+
"@osdlc/cli-tool": "^0.17.0",
|
|
54
55
|
"@osdlc/typed-gh": "^0.16.1",
|
|
55
|
-
"@osdlc/command-seam": "^0.14.0",
|
|
56
56
|
"@osdlc/ux": "^0.1.1",
|
|
57
57
|
"@osdlc/typed-git": "^0.13.0"
|
|
58
58
|
},
|