Reworked to use a custom token.
Some checks failed
Auto Maintenance Cycle / pre-commit Autoupdate (push) Failing after 38s
Some checks failed
Auto Maintenance Cycle / pre-commit Autoupdate (push) Failing after 38s
This commit is contained in:
6
index.js
6
index.js
@ -17,7 +17,7 @@ async function getAndPostPullRequests() {
|
||||
const labelsInput = core.getInput("labels");
|
||||
const dueDate = core.getInput("due_date");
|
||||
const milestone = core.getInput("milestone");
|
||||
const githubToken = core.getInput("github_token");
|
||||
const token = core.getInput("token");
|
||||
let branch = core.getInput("branch");
|
||||
|
||||
// Construct the URL for the requests
|
||||
@ -25,10 +25,10 @@ async function getAndPostPullRequests() {
|
||||
|
||||
// Headers with Authorization
|
||||
const headers = {
|
||||
Authorization: `token ${githubToken}`,
|
||||
Authorization: `token ${token}`,
|
||||
"Content-Type": "application/json",
|
||||
};
|
||||
core.info(`token ${githubToken}`);
|
||||
core.info(`token ${token}`);
|
||||
// Logic for current branch
|
||||
if (!branch) {
|
||||
const ref = process.env.GITHUB_REF;
|
||||
|
Reference in New Issue
Block a user