-
Notifications
You must be signed in to change notification settings - Fork 157
feat: support full repository names in repositories input
#372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
parkerbxyz
merged 8 commits into
main
from
parkerbxyz/fix-repositories-github-repository
May 11, 2026
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
7890ff1
Support full repository names
parkerbxyz a13b8e8
Merge branch 'main' into parkerbxyz/fix-repositories-github-repository
parkerbxyz 69ff067
Clarify repositories input description
parkerbxyz 8a29374
Simplify repositories input wording
parkerbxyz af6e6ec
Tighten repositories example
parkerbxyz 7989b94
Cover non-current full repository names
parkerbxyz 76ebc96
Document repository input shapes
parkerbxyz daaf3b9
Keep repositories metadata concise
parkerbxyz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| import { test } from "./main.js"; | ||
|
|
||
| // Verify `main` successfully obtains a token when the `owner` and `repositories` inputs are set, and `repositories` contains a full repository name. | ||
| await test(() => { | ||
| process.env.INPUT_OWNER = process.env.GITHUB_REPOSITORY_OWNER; | ||
| process.env.INPUT_REPOSITORIES = process.env.GITHUB_REPOSITORY; | ||
| }); | ||
|
|
13 changes: 13 additions & 0 deletions
13
tests/main-token-get-owner-set-repo-invalid-format.test.js
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| import { DEFAULT_ENV } from "./main.js"; | ||
|
|
||
| // Verify `main` exits with an error when a repository entry is neither a repository name nor an owner/repository name. | ||
| for (const [key, value] of Object.entries(DEFAULT_ENV)) { | ||
| process.env[key] = value; | ||
| } | ||
|
|
||
| process.env.INPUT_OWNER = process.env.GITHUB_REPOSITORY_OWNER; | ||
| process.env.INPUT_REPOSITORIES = "octocat/hello-world/extra"; | ||
|
|
||
| const { default: promise } = await import("../main.js"); | ||
| await promise; | ||
|
|
12 changes: 12 additions & 0 deletions
12
tests/main-token-get-owner-set-repo-non-current-full-name.test.js
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| import { DEFAULT_ENV, test } from "./main.js"; | ||
|
|
||
| // Verify `main` normalizes full repository names before installation lookup and token scoping. | ||
| await test( | ||
| () => {}, | ||
| { | ||
| ...DEFAULT_ENV, | ||
| INPUT_OWNER: DEFAULT_ENV.GITHUB_REPOSITORY_OWNER, | ||
| INPUT_REPOSITORIES: `${DEFAULT_ENV.GITHUB_REPOSITORY_OWNER}/toolkit,checkout`, | ||
| }, | ||
| ); | ||
|
|
13 changes: 13 additions & 0 deletions
13
tests/main-token-get-owner-set-repo-owner-mismatch.test.js
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| import { DEFAULT_ENV } from "./main.js"; | ||
|
|
||
| // Verify `main` exits with an error when a full repository name does not match the `owner` input. | ||
| for (const [key, value] of Object.entries(DEFAULT_ENV)) { | ||
| process.env[key] = value; | ||
| } | ||
|
|
||
| process.env.INPUT_OWNER = process.env.GITHUB_REPOSITORY_OWNER; | ||
| process.env.INPUT_REPOSITORIES = "octocat/hello-world"; | ||
|
|
||
| const { default: promise } = await import("../main.js"); | ||
| await promise; | ||
|
|
8 changes: 8 additions & 0 deletions
8
tests/main-token-get-owner-unset-repo-full-name-and-bare.test.js
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| import { test } from "./main.js"; | ||
|
|
||
| // Verify `main` successfully obtains a token when `owner` is omitted and `repositories` mixes a full repository name with bare repository names. | ||
| await test(() => { | ||
| delete process.env.INPUT_OWNER; | ||
| process.env.INPUT_REPOSITORIES = `${process.env.GITHUB_REPOSITORY},toolkit`; | ||
| }); | ||
|
|
13 changes: 13 additions & 0 deletions
13
tests/main-token-get-owner-unset-repo-owner-mismatch.test.js
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| import { DEFAULT_ENV } from "./main.js"; | ||
|
|
||
| // Verify `main` exits with an error when a full repository name does not match the default owner. | ||
| for (const [key, value] of Object.entries(DEFAULT_ENV)) { | ||
| process.env[key] = value; | ||
| } | ||
|
|
||
| delete process.env.INPUT_OWNER; | ||
| process.env.INPUT_REPOSITORIES = "octocat/hello-world"; | ||
|
|
||
| const { default: promise } = await import("../main.js"); | ||
| await promise; | ||
|
|
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.