Skip to content

Commit

Permalink
return pr.initialize() back to main.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacku committed Nov 7, 2023
1 parent 4fccf92 commit ead8eed
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion 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: 1 addition & 0 deletions 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: 0 additions & 2 deletions src/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ 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: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ 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

0 comments on commit ead8eed

Please sign in to comment.