-
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.
Showing
10 changed files
with
595 additions
and
0 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,15 @@ | ||
{ | ||
"extends": ["@joberstein12"], | ||
"rules": { | ||
"scope-enum": [2, "always", [ | ||
"action", | ||
"ci", | ||
"deps", | ||
"docs", | ||
"index", | ||
"setup", | ||
"tests", | ||
"types" | ||
]] | ||
} | ||
} |
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,23 @@ | ||
fail_fast: true | ||
default_install_hook_types: | ||
- pre-commit | ||
- prepare-commit-msg | ||
- commit-msg | ||
repos: | ||
- repo: https://github.com/milin/giticket | ||
rev: v1.4 | ||
hooks: | ||
- id: giticket | ||
stages: | ||
- prepare-commit-msg | ||
args: | ||
- "--regex=#\\d+" | ||
- "--format={commit_msg}\n\nCloses {ticket}" | ||
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook | ||
rev: v9.0.0 | ||
hooks: | ||
- id: commitlint | ||
stages: | ||
- commit-msg | ||
additional_dependencies: | ||
- '@joberstein12/commitlint-config' |
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 @@ | ||
{ | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
"@semantic-release/github" | ||
] | ||
} |
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,29 @@ | ||
name: Validate Commits | ||
description: Validate commits with commitlint using Github Actions. | ||
author: Jesse Oberstein | ||
runs: | ||
using: 'node16' | ||
pre: 'dist/setup.js' | ||
main: 'dist/index.js' | ||
inputs: | ||
commitlint_version: | ||
description: The version of commitlint to use. If unspecified, the latest version will be installed. | ||
|
||
config_path: | ||
description: The relative path to the commitlint config file. | ||
|
||
event: | ||
description: The Github event that triggered the workflow that uses this action. | ||
required: true | ||
|
||
base_ref: | ||
description: The source of pull request that triggered this workflow (required for pull requests). | ||
|
||
head_ref: | ||
description: The destination of the pull request that triggered this workflow (required for pull requests). | ||
|
||
target_ref: | ||
description: The commit sha of the event that triggered this workflow (required for push). | ||
|
||
extra_config: | ||
description: A newline-separated list of commitlint-config npm packages to install. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,30 @@ | ||
{ | ||
"name": "actions-commitlint-validation", | ||
"version": "1.0.0", | ||
"description": "A Github action that validates commits on different events.", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"build": "tsc" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/joberstein/actions-commitlint-validation.git" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/joberstein/actions-commitlint-validation/issues" | ||
}, | ||
"homepage": "https://github.com/joberstein/actions-commitlint-validation#readme", | ||
"dependencies": { | ||
"@actions/core": "^1.10.0", | ||
"@commitlint/config-angular": "^17.4.2", | ||
"@commitlint/config-conventional": "^17.4.2" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^18.11.19", | ||
"typescript": "^4.9.5" | ||
} | ||
} |
Oops, something went wrong.