-
Notifications
You must be signed in to change notification settings - Fork 1
feat: Initial release #1
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
Conversation
action.yml
Outdated
| description: Response data | ||
|
|
||
| runs: | ||
| using: 'node12' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
node20
action.yml
Outdated
|
|
||
| runs: | ||
| using: 'node12' | ||
| main: 'src/index.js' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use dist
| setFailed('error status: ' + error.status); | ||
| } | ||
|
|
||
| run(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
subscription check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces the initial release of a GitHub Action that updates GitHub variables for repositories and organizations. Key changes include implementation of the core logic in src/index.js, the action metadata in action.yml, and various configuration and workflow files to support CI/CD and release management.
Reviewed Changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/index.js | Implements the logic to update GitHub variables using Octokit and node-fetch. |
| package.json | Declares project metadata, dependencies, and scripts for building and linting. |
| action.yml | Defines the action’s inputs, outputs, and runtime environment. |
| SECURITY.md, README.md, LICENSE, etc. | Provide supporting documentation, licensing, and workflow configurations. |
|
|
||
| return octokit.request(`PATCH /${parameters.base}/${parameters.repository}/actions/variables/${parameters.name}`, { | ||
| value: parameters.value, | ||
| selected_repository_ids: parameters.selectedRepositoryIds, |
Copilot
AI
Jun 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The parameter 'selectedRepositoryIds' is obtained as a string from getInput but is passed directly to the API as selected_repository_ids, which likely expects an array. Consider parsing or converting this input to an array if necessary.
action.yml
Outdated
| description: Response data | ||
|
|
||
| runs: | ||
| using: 'node12' |
Copilot
AI
Jun 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The action specifies using 'node12' as the runtime although the code uses ES module syntax, which may not be fully supported by Node.js 12. Consider updating the runtime to a newer Node version (e.g. node16) to ensure compatibility.
| using: 'node12' | |
| using: 'node16' |
No description provided.