Skip to content

Commit

Permalink
Merge pull request #9 from premiscale/update-readme
Browse files Browse the repository at this point in the history
update-readme: Update README
  • Loading branch information
emmeowzing authored Apr 8, 2023
2 parents 3c3200e + 75d8845 commit 54b4451
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
3 changes: 1 addition & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ workflows:
jobs:
- dynamic/continue:
context: circleci
modules: |
/scripts
auto-detect: true

- general/github-release:
context: github
Expand Down
6 changes: 0 additions & 6 deletions .circleci/scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ workflows:
scripts:
jobs:
- shellcheck/check:
matrix:
parameters:
dir:
- scripts/
- hooks/
alias: shellcheck
exclude: SC2148
filters:
branches:
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@ A collection of organization-maintained pre-commit hooks.
rev: <latest rev>
hooks:
- id: msg-issue-prefix
- id: cloud-init-schema
args:
- user-data1
- user-data2
```
## Hooks
- `msg-issue-prefix` - prefix Git commit messages with the branch name.
- `msg-issue-prefix` - prefix Git commit messages with the branch name.
- `cloud-init-schema` - validate cloud-init user data files in a repository.
4 changes: 2 additions & 2 deletions hooks/cloud-init-schema.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ fi

for cfg in "$@"; do
if ! cloud-init schema --config-file "$cfg"; then
exit "$?"
exit 1
fi
done
done

0 comments on commit 54b4451

Please sign in to comment.