generated from shanilhirani/seed
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(pre-commit): adding pre-commit for better devex (#5)
* ci(pre-commit): adding pre-commit for better devex a local pre-commit step will run `make run` ensuring that existing ci/cd is utilised * ci(workflow-and-repo-settings): updating workflow triggers testing out settings.yaml
- Loading branch information
1 parent
88ca913
commit 4ac22c0
Showing
10 changed files
with
169 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
repository: | ||
name: "go-credly" | ||
description: "Go Credly - Programmatically fetch your Credly badges for use with Portfolio" | ||
topics: "credly,go" | ||
private: false | ||
has_issues: true | ||
has_projects: false | ||
has_wiki: false | ||
has_downloads: false | ||
default_branch: main | ||
allow_squash_merge: true | ||
allow_merge_commit: true | ||
allow_rebase_merge: true | ||
delete_branch_on_merge: true | ||
|
||
branches: | ||
- name: main | ||
protection: | ||
required_pull_request_reviews: | ||
required_approving_review_count: 1 | ||
dismiss_stale_reviews: true | ||
require_code_owner_reviews: false | ||
required_status_checks: | ||
strict: true | ||
contexts: | ||
- ci | ||
enforce_admins: true | ||
restrictions: null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
args: | ||
- "--markdown-linebreak-ext=md" | ||
- id: mixed-line-ending | ||
args: | ||
- "--fix=auto" | ||
- id: check-case-conflict | ||
- id: check-merge-conflict | ||
- id: check-json | ||
exclude: ^.vscode/ | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
- id: detect-private-key | ||
- id: no-commit-to-branch | ||
- repo: "https://github.com/pre-commit/mirrors-prettier" | ||
rev: v3.0.0 | ||
hooks: | ||
- id: prettier | ||
stages: [commit] | ||
- repo: https://github.com/commitizen-tools/commitizen | ||
rev: v3.5.3 | ||
hooks: | ||
- id: commitizen | ||
- id: commitizen-branch | ||
stages: [push] | ||
- repo: local | ||
hooks: | ||
- id: make-all | ||
name: make-all | ||
description: this will run `make all` | ||
entry: .pre-commit-scripts/make_all.sh | ||
language: script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
set -ev | ||
|
||
echo "Initiate Make All" | ||
make all | ||
echo "Make finished" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
commitizen: | ||
name: cz_conventional_commits | ||
version: 0.0.1 | ||
tag_format: $version | ||
style: | ||
- - qmark | ||
- fg:#ff9d00 bold | ||
- - question | ||
- bold | ||
- - answer | ||
- fg:#ff9d00 bold | ||
- - pointer | ||
- fg:#ff9d00 bold | ||
- - highlighted | ||
- fg:#ff9d00 bold | ||
- - selected | ||
- fg:#cc5454 | ||
- - separator | ||
- fg:#cc5454 | ||
- - instruction | ||
- "" | ||
- - text | ||
- "" | ||
- - disabled | ||
- fg:#858585 italic |