-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Added Auto Changelog & Commit Linting (#36)
* build: added auto changelog & commit linting To automate the creation process of CHANGELOG.md entries, `auto-changelog` was introduced Additonally, to enforce conventional commit standards, `commitlint` was introduced Lastly, basic PR checks were added to github actions via `danger` * ci: changed branches to include develop on PRs * ci: added dependency install step * ci: added option to install only devDependencies & proper danger filename * ci: improved dangerfile check output * ci: fix list item mapping in collapsible * ci: removed backticks around commit sha for violating commits * ci: revert ignoring PRs when determining violating commits * ci: changed formatting of invalid commits * ci: more minor style changes to malformed commit message * ci: remove merge requests from violating commits list * ci: added file size check to danger action & simplified collapsible list genration * ci: added total file change sizes to danger action * ci: improved size change comparison and total value calculation * ci: added note about excluding pnpm-lock.yaml and better formatting of total * ci: added links to summary files also * docs: changed TabMerger description & updated changelog template TabMerger's README needed to have a more up-to-date description The CHANGELOG needed to include compare links and looks cleaner without horizontal lines
- Loading branch information
Showing
14 changed files
with
1,460 additions
and
74 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
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,32 @@ | ||
name: Danger JS | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
pr-checks: | ||
runs-on: windows-2022 | ||
|
||
strategy: | ||
matrix: | ||
node: [12, 14, 16] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: pnpm/[email protected] | ||
with: | ||
version: latest | ||
|
||
- name: Use NodeJS ${{ matrix.node }} & Cache | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
cache: "pnpm" | ||
|
||
- name: Install Dependencies | ||
run: pnpm i --only=dev | ||
|
||
- name: Danger Checks | ||
run: pnpm exec danger ci | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
pnpm commitlint --edit "$1" |
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,10 @@ | ||
build | ||
coverage | ||
dist | ||
node_modules | ||
|
||
**/*.hbs | ||
|
||
# Cache | ||
.eslintcache | ||
.stylelintcache |
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,7 @@ | ||
{ | ||
"template": "./templates/changelog-template.hbs", | ||
"startingDate": "2022-01-01", | ||
"commitLimit": false, | ||
"sortCommits": "date-desc", | ||
"unreleased": true | ||
} |
Oops, something went wrong.