mirror of
https://github.com/anuraghazra/github-readme-stats.git
synced 2025-03-07 15:08:07 +08:00
Preview action fix (#2561)
* Fix error * refactor: remove unused code --------- Co-authored-by: Rick Staa <rick.staa@outlook.com>
This commit is contained in:
parent
9ec2c8367a
commit
7bc8f19a7f
@ -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)}`);
|
||||
|
Loading…
Reference in New Issue
Block a user