Skip to content

Commit

Permalink
fix: attempt to fix the mergeable_state issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacku committed Nov 6, 2023
1 parent 6c533cc commit fdf36b1
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions dist/action.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/action.js.map

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

2 changes: 1 addition & 1 deletion dist/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/index.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/main.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/main.js.map

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

2 changes: 1 addition & 1 deletion dist/pull-request.js.map

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

2 changes: 2 additions & 0 deletions src/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ async function action(
const tracker = getInput('tracker', { required: true });
await trackerController.adapter.getIssueDetails(tracker);

await pr.initialize();

if (pr.draft || pr.currentLabels.includes(config.labels['dont-merge'])) {
err.push(
`🔴 Pull Request is marked as draft or has \`${config.labels['dont-merge']}\` label`
Expand Down
1 change: 0 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ const checkRunID = (

try {
const pr = new PullRequest(prMetadata, commitSha, owner, repo, octokit);
await pr.initialize();
const message = await action(octokit, owner, repo, pr);

await updateStatusCheck(
Expand Down
2 changes: 1 addition & 1 deletion src/pull-request.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getInput, debug } from '@actions/core';
import { debug } from '@actions/core';

import { CustomOctokit } from './octokit';

Expand Down

0 comments on commit fdf36b1

Please sign in to comment.