Skip to content

Commit

Permalink
Eliminate non-top-level await.
Browse files Browse the repository at this point in the history
  • Loading branch information
hanbings committed Jun 15, 2024
1 parent d973ae9 commit b9cfef2
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/compat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,18 +176,19 @@ jobs:
runs.data.check_runs.filter(check => names.includes(check.name)).forEach(run => {
console.log(run);
let result = await github.rest.checks.listAnnotations({
github.rest.checks.listAnnotations({
owner: context.repo.owner,
repo: context.repo.repo,
check_run_id: run.id
});
console.log(result);
console.log(result.data);
}).then(result => {
console.log(result);
console.log(result.data);
result.data.forEach(annotation => {
annotations.data.push({
run: run.name,
annotation: annotation
result.data.forEach(annotation => {
annotations.data.push({
run: run.name,
annotation: annotation
});
});
});
});
Expand Down

0 comments on commit b9cfef2

Please sign in to comment.