@rmartz/bot-automerge 1.0.4 → 2.0.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/README.md +1 -2
- package/dist/bin/bot-automerge.js +1 -1
- package/dist/index.d.ts +4 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -26,8 +26,7 @@ through a separate action repo:
|
|
|
26
26
|
|
|
27
27
|
> **Status: implemented.** The `enable` classification — Dependabot `patch`/`minor`
|
|
28
28
|
> bumps and release-please release PRs — shipped in `v0.1.0`, the first release to
|
|
29
|
-
> GitHub Packages.
|
|
30
|
-
> [ai-tools#264](https://github.com/rmartz/ai-tools/issues/264); see
|
|
29
|
+
> GitHub Packages. See
|
|
31
30
|
> [docs/bot-automerge-contract.md](docs/bot-automerge-contract.md) for the
|
|
32
31
|
> eligibility contract.
|
|
33
32
|
|
|
@@ -242,7 +242,7 @@ function errorBotAutomergeVerdict(message) {
|
|
|
242
242
|
// src/bin/bot-automerge.ts
|
|
243
243
|
function usage() {
|
|
244
244
|
console.error(
|
|
245
|
-
"usage:
|
|
245
|
+
"usage: bot-automerge enable --pr <n> [--repo <o/r>] [--update-type <t>] [--json] [--cwd <path>]"
|
|
246
246
|
);
|
|
247
247
|
process.exit(2);
|
|
248
248
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
* it classifies a bot PR and, when eligible, turns on native auto-merge. Unlike
|
|
8
8
|
* merge-safety it posts NO check-run and carries no fleet check-run contract.
|
|
9
9
|
*
|
|
10
|
-
* The classification + enablement implementation (and the `
|
|
10
|
+
* The classification + enablement implementation (and the `bot-automerge` bin)
|
|
11
11
|
* lives alongside it; this module is intentionally the narrow, frozen surface the
|
|
12
|
-
* bot-automerge-action and consumers depend on.
|
|
12
|
+
* bot-automerge-action and consumers depend on.
|
|
13
13
|
*/
|
|
14
14
|
/**
|
|
15
|
-
* The operations the `
|
|
15
|
+
* The operations the `bot-automerge` CLI dispatches:
|
|
16
16
|
* - `enable` — classify one bot PR and, when it is an eligible bot bump, turn on
|
|
17
17
|
* GitHub-native auto-merge (`gh pr merge --auto --squash`).
|
|
18
18
|
*/
|
|
@@ -29,7 +29,7 @@ declare const DEPENDABOT_AUTHOR = "dependabot[bot]";
|
|
|
29
29
|
/**
|
|
30
30
|
* The same Dependabot author login as the `gh` CLI reports it. `gh pr view
|
|
31
31
|
* --json author` surfaces bot logins in `app/<slug>` form, not the REST/GraphQL
|
|
32
|
-
* `<slug>[bot]` form — so the CLI path (`
|
|
32
|
+
* `<slug>[bot]` form — so the CLI path (`bot-automerge enable`, which reads
|
|
33
33
|
* the author via `gh`) sees this, and detection must accept it alongside
|
|
34
34
|
* {@link DEPENDABOT_AUTHOR}. (Missing this form is why every Dependabot PR was
|
|
35
35
|
* misclassified as "not a recognized bot PR" — issue #22.)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rmartz/bot-automerge",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Enables GitHub-native auto-merge for trustworthy bot pull requests (Dependabot patch/minor bumps and release-please release PRs), distributed via rmartz/bot-automerge-action.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ci",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"bin": {
|
|
28
|
-
"
|
|
28
|
+
"bot-automerge": "./dist/bin/bot-automerge.js"
|
|
29
29
|
},
|
|
30
30
|
"files": [
|
|
31
31
|
"dist"
|