We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30a5df6 commit b0fc84fCopy full SHA for b0fc84f
scripts/preview-theme.js
@@ -46,7 +46,7 @@ const INVALID_REVIEW_COMMENT = (commentUrl) =>
46
47
// Retrieve octokit instance.
48
const OCTOKIT = github.getOctokit(getGithubToken());
49
-const PULL_REQUEST_ID = prNumber ? prNumber : getPrNumber();
+const PULL_REQUEST_ID = getPrNumber();
50
const { OWNER, REPO } = getRepoInfo(github.context);
51
52
/**
@@ -308,7 +308,7 @@ const DRY_RUN = process.env.DRY_RUN === "true" || false;
308
309
* Main function.
310
*/
311
-export const run = async (prNumber) => {
+export const run = async () => {
312
try {
313
debug("Retrieve action information from context...");
314
debug(`Context: ${inspect(github.context)}`);
0 commit comments