Skip to content

Commit

Permalink
Mark annotations check complete when there are none left to submit.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgillick committed Dec 5, 2022
1 parent d766996 commit c9e4351
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9677,7 +9677,7 @@ async function saveAnnotations(annotations, accessToken) {
const batch = annotations.splice(0, ANNOTATION_BATCH);
let status = "in_progress";
let conclusion = undefined;
if (annotations.length) {
if (!annotations.length) {
status = "completed";
conclusion = "success";
}
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ async function saveAnnotations(annotations: Annotation[], accessToken: string) {

let status = "in_progress";
let conclusion: string | undefined = undefined;
if (annotations.length) {
if (!annotations.length) {
status = "completed";
conclusion = "success";
}
Expand Down

0 comments on commit c9e4351

Please sign in to comment.