Skip to content

add support for repository variables (#798) #819

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

Open
wants to merge 3 commits into
base: main-enterprise
Choose a base branch
from

Conversation

tonpatel
Copy link

This PR adds support for repository-level variables that can be used outside of a specific deployment environment.

Fixed find function and unit test from this PR and resubmitted for approval. All credit to @primetheus!

cc: @decyjphr, @primetheus

@decyjphr decyjphr requested a review from Copilot May 14, 2025 01:47
Copy link
Contributor

@Copilot 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

Adds first-class support for repository-level variables, including plugin registration, implementation, and associated tests.

  • Introduces a new Variables plugin for listing, creating, updating, and deleting repo variables
  • Registers the plugin in lib/settings.js
  • Adds unit tests and fixtures for the variables functionality

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
test/unit/lib/plugins/variables.test.js New tests for the Variables plugin’s sync logic
test/fixtures/variables-config.yml Fixture for variables configuration
lib/settings.js Registers variables plugin alongside others
lib/plugins/variables.js Implements the Variables class and its methods

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.

2 participants