-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from dasmeta/DMVP-tf-init
DMVP-0000: Initial PR
- Loading branch information
Showing
11 changed files
with
99 additions
and
51 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 |
---|---|---|
@@ -1,8 +1,17 @@ | ||
version: 2 | ||
|
||
updates: | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
commit-message: | ||
prefix: feat | ||
|
||
- package-ecosystem: "terraform" | ||
directory: | ||
- "/" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
commit-message: | ||
prefix: feat |
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,14 @@ | ||
name: 'Branch Naming Check' | ||
on: pull_request | ||
|
||
jobs: | ||
branch-naming-rules: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: deepakputhraya/action-branch-name@master | ||
with: | ||
regex: 'DMVP-[0-9]*' # Regex the branch should match. This example enforces grouping | ||
allowed_prefixes: 'DMVP-' # All branches should start with the given prefix | ||
ignore: master,develop # Ignore exactly matching branch names from convention | ||
min_length: 5 # Min length of the branch name | ||
max_length: 30 # Max length of the branch name |
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,16 @@ | ||
name: 'PR Title Checker' | ||
on: | ||
pull_request: | ||
types: [edited, opened, synchronize, reopened] | ||
|
||
jobs: | ||
title-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: deepakputhraya/[email protected] | ||
with: | ||
regex: 'DMVP-[0-9]*:' # Regex the title should match. | ||
allowed_prefixes: 'DMVP-' # title should start with the given prefix | ||
prefix_case_sensitive: false # title prefix are case insensitive | ||
min_length: 5 # Min length of the title | ||
max_length: -1 # Max length of the title |
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,22 @@ | ||
name: Semantic-Release | ||
on: [pull_request, push] | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: write | ||
contents: write | ||
discussions: write | ||
pull-requests: write | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- name: Semantic Release | ||
uses: cycjimmy/semantic-release-action@v4 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
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 |
---|---|---|
@@ -1,41 +1,20 @@ | ||
{ | ||
"convention" : { | ||
"commitTypes": [ | ||
"feat", | ||
"fix", | ||
"perf", | ||
"refactor", | ||
"style", | ||
"test", | ||
"build", | ||
"ops", | ||
"docs", | ||
"merge", | ||
"chore" | ||
], | ||
"commitScopes": [], | ||
"releaseTagGlobPattern": "v[0-9]*.[0-9]*.[0-9]*", | ||
"issueRegexPattern": "(^|\\s)#\\d+(\\s|$)" | ||
}, | ||
"changelog" : { | ||
"commitTypes": [ | ||
"feat", | ||
"fix", | ||
"perf", | ||
"merge" | ||
], | ||
"includeInvalidCommits": true, | ||
"commitScopes": [], | ||
"commitIgnoreRegexPattern": "^WIP ", | ||
"headlines": { | ||
"feat": "Features", | ||
"fix": "Bug Fixes", | ||
"perf": "Performance Improvements", | ||
"merge": "Merged Branches", | ||
"breakingChange": "BREAKING CHANGES" | ||
}, | ||
"commitUrl": "https://github.com/ACCOUNT/REPOSITORY/commit/%commit%", | ||
"commitRangeUrl": "https://github.com/ACCOUNT/REPOSITORY/compare/%from%...%to%?diff=split", | ||
"issueUrl": "https://github.com/ACCOUNT/REPOSITORY/issues/%issue%" | ||
} | ||
} | ||
#!/usr/bin/env bash | ||
# File generated by pre-commit: https://pre-commit.com | ||
# ID: 138fd403232d2ddd5efb44317e38bf03 | ||
|
||
# start templated | ||
INSTALL_PYTHON=/usr/bin/python3 | ||
ARGS=(hook-impl --config=.pre-commit-config.yaml --hook-type=commit-msg) | ||
# end templated | ||
|
||
HERE="$(cd "$(dirname "$0")" && pwd)" | ||
ARGS+=(--hook-dir "$HERE" -- "$@") | ||
|
||
if command -v pre-commit > /dev/null; then | ||
exec pre-commit "${ARGS[@]}" | ||
elif [ -x "$INSTALL_PYTHON" ]; then | ||
exec "$INSTALL_PYTHON" -mpre_commit "${ARGS[@]}" | ||
else | ||
echo '`pre-commit` not found. Did you forget to activate your virtualenv?' 1>&2 | ||
exit 1 | ||
fi |