GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — feat: add `client-id` input and deprecate `app-id` by Copilot · Pull Request #353 · actions/create-github-app-token Conversation
|
There was an error while loading. Please reload this page.
|
@copilot Let's also add a new |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-authored-by: parkerbxyz <[email protected]>
Implemented in 37f42c5: added |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
app-id inputclient-id input and deprecate app-id
There was an error while loading. Please reload this page.
Co-authored-by: Copilot <[email protected]>
Override console.error to log only the error message (not the full stack trace) in main-missing-client-and-app-id.test.js. The stack trace contains environment-specific paths and ANSI codes that differ between local and CI environments, causing snapshot mismatches. Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This PR updates the action to support GitHub App authentication via a new client-id input while keeping app-id for backwards compatibility (now deprecated), and makes the runtime + docs prefer client-id.
Changes:
client-id input, deprecate app-id, and update action metadata accordingly.client-id, fallback to app-id, and error when neither is set.Copilot reviewed 8 out of 9 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| tests/main-missing-client-and-app-id.test.js | Adds coverage for the new “neither ID provided” failure path and snapshots its output. |
| tests/main-client-id.test.js | Adds a regression test ensuring a client-ID-shaped value works via client-id. |
| tests/index.js.snapshot | Updates snapshots to capture new stdout/stderr behavior and deprecated-input output. |
| tests/README.md | Updates test-writing guidance to point to the new missing-ID test as the “expected error” template. |
| main.js | Prefers client-id over app-id and adds explicit validation when neither is provided. |
| lib/main.js | Renames the first parameter to clientId and wires it into auth creation. |
| dist/main.cjs | Rebuild output reflecting the new input parsing and renamed parameter. |
| action.yml | Adds client-id, makes app-id optional, and marks app-id deprecated via deprecationMessage. |
| README.md | Updates docs and examples to recommend client-id, and documents precedence + deprecation. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This PR updates the action to support GitHub App Client ID as a first-class input (client-id), while keeping app-id as a deprecated fallback for backwards compatibility.
Changes:
client-id to action.yml, marks app-id as optional + deprecated, and updates runtime input parsing to prefer client-id.client-id and describe precedence/validation behavior.| File | Description |
|---|---|
action.yml |
Adds client-id, deprecates and un-requires app-id. |
main.js |
Prefers client-id, falls back to app-id, errors if neither provided. |
lib/main.js |
Renames the identifier parameter and wires it into createAppAuth. |
dist/main.cjs |
Bundled output reflecting the input and auth changes. |
README.md |
Updates recommended configuration and examples to use client-id. |
tests/main-client-id.test.js |
Adds coverage that client-id input flows through execution. |
tests/main-missing-client-and-app-id.test.js |
Adds coverage for the missing-ID validation/error behavior. |
tests/index.js.snapshot |
Updates snapshots for new tests and deprecation output. |
tests/README.md |
Updates guidance to point to the new “expected error” test. |
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Renameapp-id input to client-id or app-client-id
There was an error while loading. Please reload this page.