Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .changeset/catalog-issue-admin.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/catalog-lifecycle.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/catalog-pr-lock.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/catalog-read.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/catalog-reopen.md

This file was deleted.

13 changes: 0 additions & 13 deletions .changeset/primary-dispatch.md

This file was deleted.

19 changes: 19 additions & 0 deletions packages/client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# gcb-client

## 0.5.0

### Minor Changes

- [#81](https://github.com/code-vaults/git-credential-broker/pull/81) [`93889a4`](https://github.com/code-vaults/git-credential-broker/commit/93889a430f5b906fec6d57b2bcbe1251ce8e9791) Thanks [@JounQin](https://github.com/JounQin)! - Dispatch catalogued `pr` and `issue` subcommands through one primary adapter. `gh` remains the
default; `GCB_PRIMARY` selects the adapter and an unsupported name fails closed.
`gcb issue` is now the same catalog shell as `gcb gh issue`, so its separate host-submit module is
gone; the host login form is `gcb gh issue ... --as-user <login>`. `--body-file -` reads the
body from standard input, matching `gh`. `gcb gh` accepts both `--as-user` forms: bare for actions the app broker
can run as a person, and a login for the catalogued action through the host broker. The host request carries the action
name and typed values; the broker rebuilds argv from the catalog.

The host-broker channel is named consistently now: `GCB_HOST_TIMEOUT_MS` replaces `GCB_OPENER_TIMEOUT_MS`, the marker file is `host-broker.json`, the channel directory is `gcb/host-broker`, and the core helpers are `readHostBroker`/`writeHostBroker`/`clearHostBroker`; the `gcb-core` result type is now `HostResult`, not `HostOpenResult`. Client and host must be upgraded together; the host program override is `GCB_HOST_COMMAND`.

### Patch Changes

- Updated dependencies [[`51f0a65`](https://github.com/code-vaults/git-credential-broker/commit/51f0a65babcb9585a9ef56a5eeb754c9adc54bf0), [`5dedb25`](https://github.com/code-vaults/git-credential-broker/commit/5dedb25dbb47fd61f85bed444f1744214addcc22), [`705c139`](https://github.com/code-vaults/git-credential-broker/commit/705c13916643a4951476240b84f732feb236b964), [`e5bd34e`](https://github.com/code-vaults/git-credential-broker/commit/e5bd34ecabda5510763eef6e8689f6c3c14b0316), [`914535b`](https://github.com/code-vaults/git-credential-broker/commit/914535be1fb6223a0f055c2730fcaf304d976991)]:
- gcb-core@0.5.0

## 0.4.0

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gcb-client",
"version": "0.4.0",
"version": "0.5.0",
"description": "Container-side gcb client: credential helper, setup, and socket-backed commands.",
"license": "MIT",
"author": "JounQin <admin@1stg.me>",
Expand Down Expand Up @@ -28,7 +28,7 @@
}
},
"dependencies": {
"gcb-core": "0.4.0"
"gcb-core": "0.5.0"
},
"publishConfig": {
"access": "public",
Expand Down
32 changes: 32 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
# gcb-core

## 0.5.0

### Minor Changes

- [#95](https://github.com/code-vaults/git-credential-broker/pull/95) [`51f0a65`](https://github.com/code-vaults/git-credential-broker/commit/51f0a65babcb9585a9ef56a5eeb754c9adc54bf0) Thanks [@JounQin](https://github.com/JounQin)! - Add `issue:lock`, `issue:unlock`, `issue:pin` and `issue:unpin` to the action catalog. Lock takes an
optional `--reason`; all four use `issues: write` and set `appUser`, so bare `--as-user` works through
the app broker. `issue:pin` and `issue:unpin` declare `target: issue` so a pull request number is refused by the
preflight instead of reaching the GraphQL mutation or returning an unpin no-op.

- [#91](https://github.com/code-vaults/git-credential-broker/pull/91) [`5dedb25`](https://github.com/code-vaults/git-credential-broker/commit/5dedb25dbb47fd61f85bed444f1744214addcc22) Thanks [@JounQin](https://github.com/JounQin)! - Add `pr:ready`, `run:cancel` and `run:rerun` to the action catalog. `pr:ready` toggles draft state
with `--undo`; `run:cancel` supports `--force`; `run:rerun` accepts exactly one of a run id or
`--job`, and rejects `--failed` with `--job` because gh ignores the failed flag in job mode.
`run:cancel` and `run:rerun` set `appUser`, so bare `--as-user` works through the app broker;
`pr:ready` stays host-account only for that form, like `pr:close`/`pr:reopen`.

- [#97](https://github.com/code-vaults/git-credential-broker/pull/97) [`705c139`](https://github.com/code-vaults/git-credential-broker/commit/705c13916643a4951476240b84f732feb236b964) Thanks [@JounQin](https://github.com/JounQin)! - Add `pr:lock` and `pr:unlock` to the action catalog. Lock takes an optional `--reason`; both use
`pull_requests: write`. The permission was verified with a token limited to `pull_requests: write`,
and an `issues: write` token was refused.

- [#89](https://github.com/code-vaults/git-credential-broker/pull/89) [`e5bd34e`](https://github.com/code-vaults/git-credential-broker/commit/e5bd34ecabda5510763eef6e8689f6c3c14b0316) Thanks [@JounQin](https://github.com/JounQin)! - Add the read-side actions `pr:checks`, `pr:status`, `issue:view` and `issue:list` to the action
catalog. They use read-only permissions and are available through the ordinary client, host action
and allowlist routes. The unused `hostUser` catalog field is removed; the named-account host route
accepts any catalogued action.

- [#88](https://github.com/code-vaults/git-credential-broker/pull/88) [`914535b`](https://github.com/code-vaults/git-credential-broker/commit/914535be1fb6223a0f055c2730fcaf304d976991) Thanks [@JounQin](https://github.com/JounQin)! - Add `pr:reopen`, `issue:close` and `issue:reopen` to the action catalog. All three use a 60-second
timeout. `pr:reopen` is host-account only, like `pr:close`; `issue:close`/`issue:reopen` also set
`appUser`, so bare `--as-user` works through the app broker. The two issue actions also verify that
the number is an issue, not a pull request, before executing; gh's issue close would otherwise close
a PR. The comment flags for close and reopen were left out: a closing comment is prose like an
action body, and gh has no `--comment-file`, so callers use the existing issue/pull-request comment
actions instead.

## 0.4.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gcb-core",
"version": "0.4.0",
"version": "0.5.0",
"description": "Shared command runtime and protocol for gcb-client and gcb-host.",
"license": "MIT",
"author": "JounQin <admin@1stg.me>",
Expand Down
7 changes: 7 additions & 0 deletions packages/host/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# gcb-host

## 0.5.0

### Patch Changes

- Updated dependencies [[`51f0a65`](https://github.com/code-vaults/git-credential-broker/commit/51f0a65babcb9585a9ef56a5eeb754c9adc54bf0), [`5dedb25`](https://github.com/code-vaults/git-credential-broker/commit/5dedb25dbb47fd61f85bed444f1744214addcc22), [`705c139`](https://github.com/code-vaults/git-credential-broker/commit/705c13916643a4951476240b84f732feb236b964), [`e5bd34e`](https://github.com/code-vaults/git-credential-broker/commit/e5bd34ecabda5510763eef6e8689f6c3c14b0316), [`914535b`](https://github.com/code-vaults/git-credential-broker/commit/914535be1fb6223a0f055c2730fcaf304d976991)]:
- gcb-core@0.5.0

## 0.4.0

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/host/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gcb-host",
"version": "0.4.0",
"version": "0.5.0",
"description": "Host-side gcb broker, configuration, providers and administration commands.",
"license": "MIT",
"author": "JounQin <admin@1stg.me>",
Expand Down Expand Up @@ -28,7 +28,7 @@
}
},
"dependencies": {
"gcb-core": "0.4.0",
"gcb-core": "0.5.0",
"node-fetch-native": "^1.6.7",
"x-fetch": "^0.3.0",
"yaml": "^2.9.1"
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -477,13 +477,13 @@ __metadata:
version: 0.0.0-use.local
resolution: "gcb-client@workspace:packages/client"
dependencies:
gcb-core: "npm:0.4.0"
gcb-core: "npm:0.5.0"
bin:
gcb: ./bin/gcb.js
languageName: unknown
linkType: soft

"gcb-core@npm:0.4.0, gcb-core@workspace:packages/core":
"gcb-core@npm:0.5.0, gcb-core@workspace:packages/core":
version: 0.0.0-use.local
resolution: "gcb-core@workspace:packages/core"
languageName: unknown
Expand All @@ -493,7 +493,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "gcb-host@workspace:packages/host"
dependencies:
gcb-core: "npm:0.4.0"
gcb-core: "npm:0.5.0"
node-fetch-native: "npm:^1.6.7"
x-fetch: "npm:^0.3.0"
yaml: "npm:^2.9.1"
Expand Down
Loading