github: add gateway code-review workflow#10910
Merged
saubyk merged 2 commits intoJun 19, 2026
Merged
Conversation
Opt-in review bot invoked via /gateway review PR comments (maintainer-gated). Thin shim onto the public lightninglabs/gateway-action (SHA-pinned to v0.4.3); the review runtime stays private. Comment-commands only, so fork PRs never spawn failing runs.
|
Note Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported. |
|
PR Severity: LOW | CI/CD configuration | 1 file | 42 lines changed. This PR adds .github/workflows/gateway.yml (42 lines). Files under .github/* are LOW severity. No production code changed. No bump triggered (1 file, 42 lines). To override: severity-override-{critical,high,medium,low} label. <!-- pr-severity-bot --> |
calvinrzachman
left a comment
Collaborator
There was a problem hiding this comment.
Gateway makes it's debut on lnd 🚀 Had a couple small q's, but this looks good to me.
calvinrzachman
approved these changes
Jun 19, 2026
- Gate the job on a /gateway command in the comment body so unrelated PR comments don't spin up no-op runners. Use contains() (not startsWith) since the runtime accepts the command at column 0 of any line, incl. multi-line. - Pin runtime_ref to the gateway commit SHA so runtime upgrades require an lnd PR rather than a moved tag, matching the action SHA-pin.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds an opt-in code-review bot, gateway.
What
/gateway <command>comment on a PR (e.g./gateway review). Review/approve commands are gated to maintainers (write access).lightninglabs/gateway-action(SHA-pinned to v0.4.3); it mints an App token and checks out the gateway runtime at execution time. The review runtime stays private — only this entry point is public.Scope / safety
pull_requesttriggers — so fork PRs (which receive no secrets) never spawn failing runs.permissions: contents: readon the shim; the action mints its own scoped App installation token internally./gateway ….