Skip to content

Commit

Permalink
Make a new action to suggest changes to PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
75efb6 authored Jan 7, 2025
1 parent cd90d6b commit 9f11209
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/black_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: black-action-pr
on: pull_request
jobs:
linter_name:
name: runner / black
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check files using the black formatter
uses: rickstaa/action-black@v1
id: action_black
with:
black_args: "."
- name: Annotate diff changes using reviewdog
if: steps.action_black.outputs.is_formatted == 'true'
uses: reviewdog/action-suggester@v1
with:
tool_name: blackfmt

0 comments on commit 9f11209

Please sign in to comment.