Skip to content

Commit 3d9903f

Browse files
authored
github-actions(pre-commit): detect merge conflicts and shebangs (#6563) (#6569)
1 parent 8bc7c7b commit 3d9903f

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/workflows/pre-commit.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: pre-commit
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
- 8.*
9+
- 9.*
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
pre-commit:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: elastic/oblt-actions/pre-commit@v1

.pre-commit-config.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.0.1
3+
rev: v4.6.0
44
hooks:
55
- id: check-executables-have-shebangs
66
exclude: (.*/.*.(ps1|bat|bash)$)
77
- id: check-shebang-scripts-are-executable
88
exclude: (.*/.*.(tmpl|tftpl)$)
99
- id: check-merge-conflict
10+
args: ['--assume-in-merge']

0 commit comments

Comments
 (0)