mirror of
https://github.com/gitattributes/gitattributes.git
synced 2025-01-22 08:18:50 -05:00
Merge pull request #121 from jimustafa/master
add `pre-commit` workflow for simple commit/PR checking
This commit is contained in:
commit
5f49cd9141
14
.github/workflows/pre-commit.yaml
vendored
Normal file
14
.github/workflows/pre-commit.yaml
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
name: pre-commit
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
pre-commit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
- uses: pre-commit/action@v2.0.0
|
7
.pre-commit-config.yaml
Normal file
7
.pre-commit-config.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v3.3.0
|
||||
hooks:
|
||||
- id: check-yaml
|
||||
- id: end-of-file-fixer
|
||||
- id: trailing-whitespace
|
@ -1,7 +1,7 @@
|
||||
# A Collection of Useful .gitattributes Templates
|
||||
|
||||
Similarly to the [`.gitignore` Templates][gt], we're trying to build
|
||||
templates for `.gitattributes`.
|
||||
Similarly to the [`.gitignore` Templates][gt], we're trying to build
|
||||
templates for `.gitattributes`.
|
||||
|
||||
`Common.gitattributes` contains general exclusions that may apply to any project.
|
||||
Consider including them if they are applicable to your project.
|
||||
|
@ -121,4 +121,4 @@
|
||||
*.unity linguist-generated
|
||||
|
||||
# Spine export file for Unity
|
||||
*.skel.bytes binary
|
||||
*.skel.bytes binary
|
||||
|
Loading…
Reference in New Issue
Block a user