Skip to content

Commit

Permalink
update github api urls
Browse files Browse the repository at this point in the history
  • Loading branch information
dmail committed Oct 4, 2023
1 parent 25da639 commit 54ae647
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/github-check-run/src/start_github_check_run.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const startGithubCheckRun = async ({
let check;
try {
check = await POST({
url: `https://github.com/repos/${repositoryOwner}/${repositoryName}/check-runs`,
url: `https://api.github.com/repos/${repositoryOwner}/${repositoryName}/check-runs`,
githubToken,
headers: {
"accept": "application/vnd.github+json",
Expand Down Expand Up @@ -98,7 +98,7 @@ export const startGithubCheckRun = async ({
let annotationsSent = 0;
const annotationsBatch = annotations.slice(annotationsSent, 50);
await PATCH({
url: `https://github.com/repos/${repositoryOwner}/${repositoryName}/check-runs`,
url: `https://api.github.com/repos/${repositoryOwner}/${repositoryName}/check-runs`,
githubToken,
body: {
head_sha: commitSha,
Expand Down Expand Up @@ -126,7 +126,7 @@ export const startGithubCheckRun = async ({
while (annotationsSent < annotations.length) {
const annotationsBatch = annotations.slice(annotationsSent, 50);
await PATCH({
url: `https://github.com/repos/${repositoryOwner}/${repositoryName}/check-runs`,
url: `https://api.github.com/repos/${repositoryOwner}/${repositoryName}/check-runs`,
githubToken,
body: {
head_sha: commitSha,
Expand Down

0 comments on commit 54ae647

Please sign in to comment.