Preview action fix (#2561)

* Fix error

* refactor: remove unused code

---------

Co-authored-by: Rick Staa <rick.staa@outlook.com>
This commit is contained in:
Zohan Subhash
2023-03-02 22:51:39 +05:30
committed by GitHub
parent 9ec2c8367a
commit 7bc8f19a7f
+2 -2
View File
@@ -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);
/**
@@ -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)}`);