You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit combines PR [616](github#616) and [646](github#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
0 commit comments