Skip to content

feat(cloud-bpmn): add variable outline tab #742

feat(cloud-bpmn): add variable outline tab

feat(cloud-bpmn): add variable outline tab #742

name: COMMENT_DEVELOP_FIX
on:
pull_request:
types:
- opened
branches:
- develop
permissions:
pull-requests: write
jobs:
comment-on-fix-to-develop:
runs-on: ubuntu-latest
steps:
- name: Check for fix commits
env:
COMMITS_URL: ${{ github.event.pull_request.commits_url }}
run: |
echo "Checking commits via $COMMITS_URL"
if [[ $(curl $COMMITS_URL) =~ ."\"message\": \"fix".* ]]
then
echo "FIX_COMMITS_PRESENT=true" >> $GITHUB_ENV
else
echo "FIX_COMMITS_PRESENT=false" >> $GITHUB_ENV
fi
- name: Create comment
if: ${{ env.FIX_COMMITS_PRESENT == 'true' }}
uses: peter-evans/create-or-update-comment@842a986c495c2be92af382b61e07ab71e1448c4c
with:
issue-number: ${{ github.event.number }}
body: |
This Pull Request targets `develop` branch, but contains `fix` commits.
Consider targeting `main` instead.