Open gjtorikian opened 1 year ago
I had to change the inputs
logic a bit here:
""
or []
: skip all required contexts"*"
: require all (default) contexts"test,lint": require the
testand
lint` contextsThanks for the contribution - if you're still interested in landing this, could you resolve the conflicts and remove the extraneous docs formatting changes? Thank you!
Sure, I've done that, and run prettier.
This PR extends the action to provide more configuration options when creating a deploy, by providing input support for
auto_merge
andrequired_contexts
. More details can be found in the GitHub API docs: https://docs.github.com/en/rest/deployments/deployments?apiVersion=2022-11-28#create-a-deploymentauto_merge
is fairly straightforward. It is currently defaulting tofalse
, and we can preserve that in this change for backwards compatibility.required_contexts
, on the other hand, has three states:["test", "lint"]
, which is a specific list of contexts to run[]
, which ignores all the contextsundefined
, which means, "run the default list of contexts"Currently,
required_contexts
is set to[]
. In order to preserve backwards compatibility, users will have to pass an explicit"null"
string for this input (supporting case 3). Omitting this input will skip all the required checks (case 2, the current case). Providing a multiline string covers case 1: