Skip to content

Commit

Permalink
Run the no-commit-to-branch check for pull requests only
Browse files Browse the repository at this point in the history
It does not make sense to run it when merging to `main`.
  • Loading branch information
psss committed May 7, 2024
1 parent 142f3d1 commit 88efcb1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: pre-commit

on:
pull_request:
push:
branches: [main]

jobs:
pre-commit:
Expand Down

0 comments on commit 88efcb1

Please sign in to comment.