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
#!/bin/bash | |
current_branch=$(git rev-parse --abbrev-ref HEAD) | |
base_branch=$(git show-branch -a | grep '\*' | grep -v "$(git rev-parse --abbrev-ref HEAD)" | head -n1 | sed 's/[\^~].*/\]/' | sed 's/.*\[\(.*\)\].*/\1/') | |
msg_regex="(^(feat|fix|chore|docs|style|refactor|perf|test|build|ci)(\(([^)]*)\))?: (.+))|(^Merge (branch|pull request) .+)|(^Revert .+)" | |
commit_messages=$(git log --pretty="%s" "$base_branch..$current_branch") | |
IFS=$'\n' | |
for commit_msg in $commit_messages; do |
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
[pytest] | |
pythonpath = . | |
addopts = -ra -s -v -p no:cacheprovider | |
testpaths = . |