diff --git a/.github/workflows/lint_commit.yml b/.github/workflows/lint_commit.yml index f4292dc5c..4c9a6ec53 100644 --- a/.github/workflows/lint_commit.yml +++ b/.github/workflows/lint_commit.yml @@ -47,10 +47,7 @@ jobs: const commits = await github.paginate(opts); const errors = []; - for (const { sha, commit: { message }, author } of commits) { - if (author !== null) { - continue; - } + for (const { sha, commit: { message } } of commits) { const commitErrors = []; for (const { pattern, error } of rules) { if (!pattern.test(message)) { @@ -66,9 +63,10 @@ jobs: if (errors.length > 0) { core.setFailed(`One or more of the commits in this PR do not match the code submission policy:\n\n${errors.join("\n")}`); } + - name: Comment on PR if: ${{ failure() && !github.event.pull_request.draft }} - uses: unsplash/comment-on-pr@a9bf050e744c8282dee4bb0dbcf063186d8316c4 + uses: IdanHo/comment-on-pr@63ea2bf352997c66e524b8b5be7a79163fb3a88a env: GITHUB_TOKEN: ${{ secrets.LINT_COMMIT_TOKEN }} with: