Skip to content

Commit

Permalink
Debugging linter with printf-like method
Browse files Browse the repository at this point in the history
  • Loading branch information
dacap committed Jun 6, 2024
1 parent 45fbae4 commit 4c8b8d0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/lint_commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand All @@ -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:
Expand Down

0 comments on commit 4c8b8d0

Please sign in to comment.