mirror of
https://github.com/Aviortheking/codestats-readme.git
synced 2025-07-29 07:19:51 +00:00
fix: Theme preview script (#318)
* chore: testing theme preview script * fix: workflow * test current pr * comment on pr script * fix: preview theme script * fix: preview theme * fix: token fix * test: theme * fix: conflict
This commit is contained in:
@ -15,7 +15,8 @@ const parsePullRequestId = (githubRef) => {
|
||||
|
||||
async function run() {
|
||||
try {
|
||||
const octokit = github.getOctokit(process.env.PERSONAL_TOKEN);
|
||||
const token = core.getInput("token");
|
||||
const octokit = github.getOctokit(token || process.env.PERSONAL_TOKEN);
|
||||
const pullRequestId = parsePullRequestId(process.env.GITHUB_REF);
|
||||
|
||||
let res = await octokit.pulls.get({
|
||||
|
Reference in New Issue
Block a user