Skip to content

Commit

Permalink
fix(initiate-deployment): add auto_merge parameter (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
pongraczl authored Jan 31, 2022
1 parent 4e35671 commit ca2240b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/420.index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/420.index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/helpers/initiate-deployment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const initiateDeployment = async ({
const { data } = await octokit.repos.createDeployment({
ref: sha,
environment,
auto_merge: false,
required_contexts: [],
...context.repo,
...GITHUB_OPTIONS
Expand Down
2 changes: 2 additions & 0 deletions test/helpers/initiate-deployment.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ describe('initiateDeployment', () => {
const environment = 'env';
const description = 'desc';
const target_url = 'url';
const auto_merge = false;

beforeEach(() => {
initiateDeployment({
Expand All @@ -56,6 +57,7 @@ describe('initiateDeployment', () => {
expect(octokit.repos.createDeployment).toHaveBeenCalledWith({
ref: sha,
environment,
auto_merge,
required_contexts: [],
...context.repo,
...GITHUB_OPTIONS
Expand Down

0 comments on commit ca2240b

Please sign in to comment.