mirror of
https://github.com/System-End/riceathon.git
synced 2026-04-19 16:28:27 +00:00
Apparently it has to be treated like an issue and not a pull request :/ (#157)
This commit is contained in:
parent
d7b00f0cc3
commit
d187240762
1 changed files with 2 additions and 2 deletions
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue