Added the token.
Some checks failed
Auto Maintenance Cycle / pre-commit Autoupdate (push) Failing after 33s

This commit is contained in:
2023-11-19 22:19:17 +01:00
parent 6e3b6c6abb
commit 0119f2dae1
3 changed files with 6 additions and 2 deletions

View File

@ -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`;