Added the token.
Some checks failed
Auto Maintenance Cycle / pre-commit Autoupdate (push) Failing after 33s
Some checks failed
Auto Maintenance Cycle / pre-commit Autoupdate (push) Failing after 33s
This commit is contained in:
4
index.js
4
index.js
@ -20,6 +20,10 @@ async function getAndPostPullRequests() {
|
||||
const token = core.getInput("token");
|
||||
let branch = core.getInput("branch");
|
||||
|
||||
if (!token || token.trim() === "") {
|
||||
throw new Error("No token provided. Please provide a valid token.");
|
||||
}
|
||||
|
||||
// Construct the URL for the requests
|
||||
const url = `${baseUrl}/api/v1/repos/${owner}/${repo}/pulls`;
|
||||
|
||||
|
Reference in New Issue
Block a user