Skip to content

Releases: github/safe-settings

2.1.11-rc.2

23 Aug 17:08
fc5b693
Compare
Choose a tag to compare

What's Changed

  • fix: add or update fields in the existing environment or rulesets by @luvsaxena1 in #665
  • Add Actions workflow to delete old releases by @decyjphr in #667

New Contributors

Full Changelog: 2.1.11-rc.1...2.1.11-rc.2

2.1.11-rc.1: Environments tolerate concise configuration (#649)

15 Aug 16:03
19e2691
Compare
Choose a tag to compare
* 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)

22 May 19:55
f1193c2
Compare
Choose a tag to compare
* Add code to handle both rename and reassign of default branch

* reduced log data

* Make the code more readable

2.1.10-rc.1

15 May 17:38
f382e35
Compare
Choose a tag to compare
fix up initialization of MergeDeep to account for ignorableFields (#612)

2.1.9: feat: repository custom properties plugin (#626)

15 May 02:24
678b02e
Compare
Choose a tag to compare
* feat: repository custom properties plugin

* docs: custom properties

2.1.8

15 May 01:18
b6afb1a
Compare
Choose a tag to compare
Update create-release.yml (#629)

2.1.7: Add code to revert back repo renames (#617)

14 May 23:32
c00eb5f
Compare
Choose a tag to compare
* 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)

02 May 11:24
8a83354
Compare
Choose a tag to compare
* 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

28 Feb 15:18
ac784e6
Compare
Choose a tag to compare
Add note of restricted repo's (#561)

2.1.3: Allow github context in configValidator and overrideValidator (#584)

05 Feb 22:30
6c297f2
Compare
Choose a tag to compare
* 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]>