You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
gcb-client@0.5.0
Minor Changes
#8193889a4 Thanks @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.
#9551f0a65 Thanks @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.
#915dedb25 Thanks @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.
#97705c139 Thanks @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.
#89e5bd34e Thanks @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.
#88914535b Thanks @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.
Added support for catalogued pull request and issue actions, including viewing status and checks, managing issue and pull request locks, pinning issues, and changing issue or pull request state.
Added actions to mark pull requests ready and cancel or rerun workflow runs.
Added primary-adapter selection for pull request and issue commands, updated account options, and support for reading body text from standard input.
The client and host now require a coordinated upgrade.
No actionable comments were generated in the recent review.
Walkthrough
The release updates gcb-client, gcb-core, and gcb-host to version 0.5.0. It adds changelog entries, updates the client and host gcb-core dependencies, and removes five changesets.
Changes: 0.5.0 Package Release
Layer / File(s)
Summary
Release notes and changeset consolidation packages/client/CHANGELOG.md, packages/core/CHANGELOG.md, packages/host/CHANGELOG.md, .changeset/*
The changelogs record 0.5.0 release details. Five changesets are removed.
Package version alignment packages/client/package.json, packages/core/package.json, packages/host/package.json
All three package versions and the client and host gcb-core dependencies are updated to 0.5.0.
Architecture concerns
No architecture-level concerns identified.
Review details
Systems and components
observed — packages/client (library) was modified; 2 changed files map to changed impact.
observed — packages/core (library) was modified; 2 changed files map to changed impact.
observed — packages/host (library) was modified; 2 changed files map to changed impact.
Before / after behavior
observed — Modified behavior in packages/client/package.json: The package version changes from 0.4.0 to 0.5.0.
observed — Modified behavior in packages/client/package.json: The gcb-core dependency changes from 0.4.0 to 0.5.0.
observed — Modified behavior in packages/core/package.json: The package version is updated from 0.4.0 to 0.5.0.
observed — Modified behavior in packages/host/package.json: The package version changes from 0.4.0 to 0.5.0.
Pre-merge checks: 5
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title accurately and concisely identifies the main change: releasing the project packages.
Docstring Coverage
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (3 skipped: 3 unsupported.)
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 010895b3-4ac9-4983-9799-cc35daac6dfe
Commits
Reviewing files that changed from the base of the PR and between 4350dc9 and 4cba223.
Files ignored due to path filters: 1
yarn.lock is excluded by !**/yarn.lock, !**/*.lock
Files selected for processing: 4
.changeset/catalog-pr-lock.md
packages/client/CHANGELOG.md
packages/core/CHANGELOG.md
packages/host/CHANGELOG.md
Files with no reviewable changes: 1
.changeset/catalog-pr-lock.md
Files skipped from review as they are similar to previous changes: 2
packages/host/CHANGELOG.md
packages/client/CHANGELOG.md
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
gcb-client@0.5.0
Minor Changes
#81
93889a4Thanks @JounQin! - Dispatch cataloguedprandissuesubcommands through one primary adapter.ghremains thedefault;
GCB_PRIMARYselects the adapter and an unsupported name fails closed.gcb issueis now the same catalog shell asgcb gh issue, so its separate host-submit module isgone; the host login form is
gcb gh issue ... --as-user <login>.--body-file -reads thebody from standard input, matching
gh.gcb ghaccepts both--as-userforms: bare for actions the app brokercan 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_MSreplacesGCB_OPENER_TIMEOUT_MS, the marker file ishost-broker.json, the channel directory isgcb/host-broker, and the core helpers arereadHostBroker/writeHostBroker/clearHostBroker; thegcb-coreresult type is nowHostResult, notHostOpenResult. Client and host must be upgraded together; the host program override isGCB_HOST_COMMAND.Patch Changes
51f0a65,5dedb25,705c139,e5bd34e,914535b]:gcb-core@0.5.0
Minor Changes
#95
51f0a65Thanks @JounQin! - Addissue:lock,issue:unlock,issue:pinandissue:unpinto the action catalog. Lock takes anoptional
--reason; all four useissues: writeand setappUser, so bare--as-userworks throughthe app broker.
issue:pinandissue:unpindeclaretarget: issueso a pull request number is refused by thepreflight instead of reaching the GraphQL mutation or returning an unpin no-op.
#91
5dedb25Thanks @JounQin! - Addpr:ready,run:cancelandrun:rerunto the action catalog.pr:readytoggles draft statewith
--undo;run:cancelsupports--force;run:rerunaccepts exactly one of a run id or--job, and rejects--failedwith--jobbecause gh ignores the failed flag in job mode.run:cancelandrun:rerunsetappUser, so bare--as-userworks through the app broker;pr:readystays host-account only for that form, likepr:close/pr:reopen.#97
705c139Thanks @JounQin! - Addpr:lockandpr:unlockto the action catalog. Lock takes an optional--reason; both usepull_requests: write. The permission was verified with a token limited topull_requests: write,and an
issues: writetoken was refused.#89
e5bd34eThanks @JounQin! - Add the read-side actionspr:checks,pr:status,issue:viewandissue:listto the actioncatalog. They use read-only permissions and are available through the ordinary client, host action
and allowlist routes. The unused
hostUsercatalog field is removed; the named-account host routeaccepts any catalogued action.
#88
914535bThanks @JounQin! - Addpr:reopen,issue:closeandissue:reopento the action catalog. All three use a 60-secondtimeout.
pr:reopenis host-account only, likepr:close;issue:close/issue:reopenalso setappUser, so bare--as-userworks through the app broker. The two issue actions also verify thatthe 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 commentactions instead.
gcb-host@0.5.0
Patch Changes
51f0a65,5dedb25,705c139,e5bd34e,914535b]:Summary by CodeRabbit