Skip to content

chore: ensure that the PR title follows "Conventional Commits" #224

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ updates:
versioning-strategy: increase
rebase-strategy: "disabled"
commit-message:
prefix: "[INFRA] deps -"
prefix-development: "[INFRA] dev -"
prefix: "chore(deps)"
prefix-development: "chore(deps-dev)"
labels:
- dependencies
- javascript
Expand All @@ -27,7 +27,7 @@ updates:
open-pull-requests-limit: 2
rebase-strategy: "disabled"
commit-message:
prefix: "[INFRA] gha -"
prefix: "chore(gha)"
labels:
- dependencies
- github_actions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ jobs:
uses: peter-evans/[email protected]
with:
token: ${{ secrets.GH_RELEASE_TOKEN }}
commit-message: "[INFRA] Update bpmn-visualization version to ${{ env.VERSION }}"
commit-message: "chore(deps): update bpmn-visualization version to ${{ env.VERSION }}"
committer: "${{ vars.PA_BOT_NAME }} <${{ vars.PA_BOT_EMAIL }}>"
author: "${{ vars.PA_BOT_NAME }} <${{ vars.PA_BOT_EMAIL }}>"
branch: "infra/update_bpmn_visualization_to_${{ env.VERSION }}"
delete-branch: true
base: "master"
title: "[INFRA] Update bpmn-visualization version to ${{ env.VERSION }}"
title: "chore(deps): update bpmn-visualization version to ${{ env.VERSION }}"
body: "https://cdn.statically.io/gh/process-analytics/bpmn-visualization-examples/infra/update_bpmn_visualization_to_${{ env.VERSION }}/examples/index.html"
labels: "enhancement"
team-reviewers: pa-collaborators
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ jobs:
uses: peter-evans/[email protected]
with:
token: ${{ secrets.GH_RELEASE_TOKEN }}
commit-message: "[INFRA] Bump bpmn-visualization from ${{ env.OLD_VERSION }} to ${{ env.VERSION }}"
commit-message: "chore(deps): bump bpmn-visualization from ${{ env.OLD_VERSION }} to ${{ env.VERSION }}"
committer: "${{ vars.PA_BOT_NAME }} <${{ vars.PA_BOT_EMAIL }}>"
author: "${{ vars.PA_BOT_NAME }} <${{ vars.PA_BOT_EMAIL }}>"
branch: "infra/bump_bpmn_visualization_from_${{ env.OLD_VERSION }}_to_${{ env.VERSION }}"
delete-branch: true
base: "master"
title: "[INFRA] Bump bpmn-visualization from ${{ env.OLD_VERSION }} to ${{ env.VERSION }}"
title: "chore(deps): bump bpmn-visualization from ${{ env.OLD_VERSION }} to ${{ env.VERSION }}"
body: "Perform what we have to do to update bpmn-visualization-js in the bpmn-visualization-R package. bpmn-visualization is updated from https://cdn.jsdelivr.net/npm/bpmn-visualization@${{ env.VERSION }}/dist/bpmn-visualization.min.js."
labels: "dependencies"
team-reviewers: pa-collaborators
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/pr-metadata-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Check Pull Request Metadata
on:
pull_request_target:
# trigger when the PR title changes
types: [opened, edited, reopened]

jobs:
pr-title:
runs-on: ubuntu-22.04
permissions:
pull-requests: write # post comments when the PR title doesn't match the "Conventional Commits" rules
steps:
- name: Check Pull Request title
uses: bonitasoft/actions/packages/pr-title-conventional-commits@v2
6 changes: 3 additions & 3 deletions .github/workflows/release-R.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ jobs:
run: |
git add README.md
git add DESCRIPTION
git commit -m "[RELEASE] Set the release version to ${{ steps.release_version.outputs.version }}"
git commit -m "chore(release): set the release version to ${{ steps.release_version.outputs.version }}"

- name: Tag ${{ steps.release_version.outputs.version }}
run: |
git tag -a ${{ steps.release_version.outputs.version_tag }} -m "[RELEASE] ${{ steps.release_version.outputs.version }}"
git tag -a ${{ steps.release_version.outputs.version_tag }} -m "chore(release): ${{ steps.release_version.outputs.version }}"

- name: Update with the development version
run: |-
Expand All @@ -68,7 +68,7 @@ jobs:
- name: Commit with the development version
run: |
git add DESCRIPTION
git commit -m "[RELEASE] Set the development version to ${{ steps.release_version.outputs.version }}.9000"
git commit -m "chore(release): set the development version to ${{ steps.release_version.outputs.version }}.9000"

- name: Push commits and tags
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-bpmn_visualization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Checkout master
run: git checkout master && git pull --tags
- name: Bump Version
run: npm version ${{ github.event.inputs.type }} --message "[RELEASE] %s"
run: npm version ${{ github.event.inputs.type }} --message "chore(release) %s"
- name: Push Version
run: git push && git push --tags

Expand Down