Skip to content

chore(deps): bump Verify from 30.5.0-beta.1 to 31.21.0 #7

chore(deps): bump Verify from 30.5.0-beta.1 to 31.21.0

chore(deps): bump Verify from 30.5.0-beta.1 to 31.21.0 #7

name: Fix Dependabot Commit Casing
on:
pull_request_target:
types: [opened, edited]
permissions:
pull-requests: write
jobs:
fix-commit-description:
if: github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- name: Make commit description commitlint compliant
uses: actions/github-script@v9
with:
script: |
const title = context.payload.pull_request.title;
const lowerTitle = title.replace('Bump', 'bump');
if (title !== lowerTitle) {
await github.rest.pulls.update({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.payload.pull_request.number,
title: lowerTitle
});
}