Skip to content

Commit

Permalink
feat: BREAKING CHANGE auto merge is now false by default on deploymen…
Browse files Browse the repository at this point in the history
…t creation
  • Loading branch information
Sébastien HOUZÉ committed Sep 6, 2019
1 parent 3f3006d commit 337c746
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
id=$(github deployment create --autoMerge=false --productionEnvironment=false --environment staging $GITHUB_REF)
id=$(github deployment create --productionEnvironment=false --environment staging $GITHUB_REF)
github deployment_status create $id in_progress
echo "##[set-output name=deployment_id;]$id"
- env:
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
id=$(github deployment create --autoMerge=false $GITHUB_REF)
id=$(github deployment create $GITHUB_REF)
echo "##[set-output name=deployment_id;]$id"
# #-----------------------------8<----------------------------------------
# # here: some job(s) to add for example a deploy button/process
Expand Down
2 changes: 1 addition & 1 deletion cmd/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func init() {

deployment.AddCommand(deploymentCreateCmd)
deploymentCreateCmd.PersistentFlags().StringP("task", "t", "deploy", "Specifies a task to execute (e.g., deploy or deploy:migrations).")
deploymentCreateCmd.PersistentFlags().BoolP("autoMerge", "a", true, "Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch.")
deploymentCreateCmd.PersistentFlags().BoolP("autoMerge", "a", false, "Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch.")
deploymentCreateCmd.PersistentFlags().StringSliceP("requiredContexts", "c", []string{}, "The status contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts.")
deploymentCreateCmd.PersistentFlags().StringP("payload", "p", "", "JSON payload with extra information about the deployment.")
deploymentCreateCmd.PersistentFlags().StringP("environment", "e", "production", "Name for the target deployment environment (e.g., production, staging, qa).")
Expand Down

0 comments on commit 337c746

Please sign in to comment.