Martaf/cherries #19
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
name: Check-commit-messages-workflow | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, edited] | |
jobs: | |
Check-commit-messages: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Check the commit message(s) | |
uses: mristin/opinionated-commit-message@v2.2.0 | |
with: | |
path-to-additional-verbs: src/AdditionalVerbsInImperativeMood.txt | |
- name: READ HERE ON FAILURE FOR MORE INSTRUCTIONS | |
if: ${{ failure() }} | |
run: | | |
Write-Host ( | |
"The title and the description of your pull request do not fit our style guide. " + | |
"Please inspect carefully the error messages above and edit the pull request. " + | |
"Since we are always squashing before merge, you can leave the commit messages as-are.`n`n" + | |
"See the following page for more information about the style guide: " + | |
"https://admin-shell-io.github.io/aasx-package-explorer/devdoc/getting-started/development-workflow.html#pull-requests" | |
) |