Skip to content

dependency: Update dependency rebel-compiler to 0.9.3.dev224+g0a53d5ea.prod #2462

dependency: Update dependency rebel-compiler to 0.9.3.dev224+g0a53d5ea.prod

dependency: Update dependency rebel-compiler to 0.9.3.dev224+g0a53d5ea.prod #2462

name: Check PR title
on:
pull_request:
types:
- opened
- reopened
- edited
- synchronize
env:
GITHUB_TOKEN: ${{ secrets.GIT_PAT }}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
permissions:
pull-requests: write
jobs:
title-checker:
name: Check PR title
runs-on: ubuntu-latest-rbln
steps:
- uses: amannn/action-semantic-pull-request@v5
id: lint_pr_title
with:
types: |
release
model
performance
refactor
doc
dependency
other
requireScope: false
- uses: marocchino/sticky-pull-request-comment@v2
# When the previous steps fails, the workflow would stop. By adding this
# condition you can continue the execution with the populated error message.
if: always() && (steps.lint_pr_title.outputs.error_message != null)
with:
header: pr-title-lint-error
message: |
We require pull request titles to follow the [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/) and it looks like your proposed title needs to be adjusted.
type(optional Scope): description
type candidate:
```
${{ steps.lint_pr_title.outputs.error_message }}
```
# Delete a previous comment when the issue has been resolved
- if: ${{ steps.lint_pr_title.outputs.error_message == null }}
uses: marocchino/sticky-pull-request-comment@v2
with:
header: pr-title-lint-error
delete: true