Skip to content

chore: chore(deps): bump actions/checkout from 6.0.3 to 7.0.1 #552

chore: chore(deps): bump actions/checkout from 6.0.3 to 7.0.1

chore: chore(deps): bump actions/checkout from 6.0.3 to 7.0.1 #552

name: Prefix Dependabot PR Titles
on:
pull_request:
types: [opened, edited, synchronize]
permissions:
pull-requests: write
jobs:
prefix-title:
runs-on: ubuntu-latest
steps:
- name: Prefix PR title if needed
if: ${{ github.actor == 'dependabot[bot]' }}
uses: actions/github-script@v9
with:
script: |
const prefix = "chore: ";
const title = context.payload.pull_request.title;
if (!title.startsWith(prefix)) {
await github.rest.pulls.update({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.payload.pull_request.number,
title: prefix + title
});
}