Skip to content

Conversation

@amanstep
Copy link
Contributor

No description provided.

action.yml Outdated
description: Response data

runs:
using: 'node12'
Copy link
Member

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'
Copy link
Member

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();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

subscription check

@varunsh-coder varunsh-coder requested a review from Copilot June 11, 2025 05:32
Copy link

Copilot AI left a 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,
Copy link

Copilot AI Jun 11, 2025

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.

Copilot uses AI. Check for mistakes.
action.yml Outdated
description: Response data

runs:
using: 'node12'
Copy link

Copilot AI Jun 11, 2025

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.

Suggested change
using: 'node12'
using: 'node16'

Copilot uses AI. Check for mistakes.
@amanstep amanstep merged commit 6096aff into main Jun 12, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants