Releases: github/safe-settings
Releases · github/safe-settings
2.1.11-rc.1: Environments tolerate concise configuration (#649)
* decompose unit tests, patch sync for environments * remove logging, combine loops as per review comments * Add NopCommand, log.error, and errors * Allow concise config for Environments This commit combines PR [616](https://github.com/github/safe-settings/pull/616) and [646](https://github.com/github/safe-settings/pull/646) environments.js Add defensive code to prevent the GitHub API from being called with undefined data. In the UI, and API an environment can be added with just an name. Now, safe-settings permits this as well. In the UI, and API an environment can be added without variables. Now, safe-settings permits this as well. In the UI, and API an environment can be added without deployment_protection_rules. Now, safe-settings permits this as well. environments.test.js Add a test case for the scenario when there are zero existing environments Add a test case for an environment name change Add a test case inspired by PR 616 which adds 7 new environments with various attributes Move expect statements out of aftereach() as there is now variability in what is expected across test cases. Specifically, when there is no existing environment, that environment should NOT be queried for variables nor deployment_protection_rules * Update documentation: Environments permissions. Addresses issue: [Environments do not get provisioned for repositories set to internal or private #623](https://github.com/github/safe-settings/issues/623) Adds documentation for permissions required for safe-settings when Environments are used [List Environments](https://docs.github.com/en/rest/deployments/environments?apiVersion=2022-11-28#list-environments) API requires: ``` The fine-grained token must have the following permission set: "Actions" repository permissions (read) ``` [Create an environment variable](https://docs.github.com/en/rest/actions/variables?apiVersion=2022-11-28#create-an-environment-variable) API requires: ``` The fine-grained token must have the following permission set: "Variables" repository permissions (write) and "Environments" repository permissions (write) ``` With permissions added, issue 623 was resolved.
2.1.10: Add code to handle both rename and reassign of default branch (#632)
* Add code to handle both rename and reassign of default branch * reduced log data * Make the code more readable
2.1.10-rc.1
fix up initialization of MergeDeep to account for ignorableFields (#612)
2.1.9: feat: repository custom properties plugin (#626)
* feat: repository custom properties plugin * docs: custom properties
2.1.8
Update create-release.yml (#629)
2.1.7: Add code to revert back repo renames (#617)
* Add to revert back repo renames * add code to rename branch * remove duplicate * add feature flag, add code to create a config file * Update README.md * Update README.md
2.1.6: Ability to create suborgs using custom properties. (#624)
* Add support for suborgs using custom properties * update README and app.yml * upgrade node 18 * upgrade node 18 * reset probot version for Docker build to work * Update README.md * Update README.md
2.1.4
Add note of restricted repo's (#561)
2.1.3: Allow github context in configValidator and overrideValidator (#584)
* init * remove fdic refs in package log * remove test.log * update gitignore to include test.log * fix all mergeDeep tests * revert validator.test.js to main-enterprise * revert public true flag to false * fix formatting for pr --------- Co-authored-by: Sudhansu Shrestha <[email protected]>
2.1.2: Bump probot from 12.3.1 to 12.3.3 (#573)
Bumps [probot](https://github.com/probot/probot) from 12.3.1 to 12.3.3. - [Release notes](https://github.com/probot/probot/releases) - [Commits](https://github.com/probot/probot/compare/v12.3.1...v12.3.3) --- updated-dependencies: - dependency-name: probot dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>