Skip to content

Commit

Permalink
Preview action fix (#2561)
Browse files Browse the repository at this point in the history
* Fix error

* refactor: remove unused code

---------

Co-authored-by: Rick Staa <rick.staa@outlook.com>
  • Loading branch information
Zo-Bro-23 and rickstaa authored Mar 2, 2023
1 parent 9ec2c83 commit 7bc8f19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/preview-theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const INVALID_REVIEW_COMMENT = (commentUrl) =>

// Retrieve octokit instance.
const OCTOKIT = github.getOctokit(getGithubToken());
const PULL_REQUEST_ID = prNumber ? prNumber : getPrNumber();
const PULL_REQUEST_ID = getPrNumber();
const { OWNER, REPO } = getRepoInfo(github.context);

/**
Expand Down Expand Up @@ -308,7 +308,7 @@ const DRY_RUN = process.env.DRY_RUN === "true" || false;
/**
* Main function.
*/
export const run = async (prNumber) => {
export const run = async () => {
try {
debug("Retrieve action information from context...");
debug(`Context: ${inspect(github.context)}`);
Expand Down

0 comments on commit 7bc8f19

Please sign in to comment.