Skip to content

Commit

Permalink
Create annotations for errors first
Browse files Browse the repository at this point in the history
  • Loading branch information
ocean90 committed Apr 23, 2022
1 parent dc650fa commit e449389
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 @@ -1867,7 +1867,7 @@ const { capitalizeFirstLetter } = __nccwpck_require__(9321);
*/
async function createCheck(linterName, sha, context, lintResult, neutralCheckOnWarning, summary) {
let annotations = [];
for (const level of ["warning", "error"]) {
for (const level of ["error", "warning"]) {
annotations = [
...annotations,
...lintResult[level].map((result) => ({
Expand Down
2 changes: 1 addition & 1 deletion src/github/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const { capitalizeFirstLetter } = require("../utils/string");
*/
async function createCheck(linterName, sha, context, lintResult, neutralCheckOnWarning, summary) {
let annotations = [];
for (const level of ["warning", "error"]) {
for (const level of ["error", "warning"]) {
annotations = [
...annotations,
...lintResult[level].map((result) => ({
Expand Down

0 comments on commit e449389

Please sign in to comment.