Apparently it has to be treated like an issue and not a pull request :/ (#157)

This commit is contained in:
Firepup650 2025-12-30 21:54:05 -06:00 committed by GitHub
parent d7b00f0cc3
commit d187240762
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,7 +49,7 @@ const pull_number = process.env.PR_NUMBER;
const commentError = async (message) => { const commentError = async (message) => {
console.debug("#commentError"); console.debug("#commentError");
await simpleApiReq( await simpleApiReq(
`repos/${owner}/${repo}/pulls/${pull_number}/comments`, `repos/${owner}/${repo}/issues/${pull_number}/comments`,
"POST", "POST",
{ {
body: `members.json is invalid:\n${message}`, body: `members.json is invalid:\n${message}`,
@ -105,7 +105,7 @@ const pull_number = process.env.PR_NUMBER;
}, 5 * 1000); }, 5 * 1000);
} else { } else {
await simpleApiReq( await simpleApiReq(
`repos/${owner}/${repo}/pulls/${pull_number}/comments`, `repos/${owner}/${repo}/issues/${pull_number}/comments`,
"POST", "POST",
{ {
body: "members.json is valid", body: "members.json is valid",