Skip to content

ci(deps): bump googleapis/release-please-action from 4.2.0 to 4.3.0 in the ci-patch-minor group #28

ci(deps): bump googleapis/release-please-action from 4.2.0 to 4.3.0 in the ci-patch-minor group

ci(deps): bump googleapis/release-please-action from 4.2.0 to 4.3.0 in the ci-patch-minor group #28

name: Retitle Dependabot PRs for test deps
on:
pull_request:
types: [opened, edited, synchronize]
jobs:
retitle:
if: github.actor == 'dependabot[bot]' && contains(github.head_ref, 'test-dependencies')
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
script: |
const pr = context.payload.pull_request;
const base = pr.title.replace(/^[^:]+:\s*/, ''); // drop existing prefix
const newTitle = `test(deps): ${base}`;
if (pr.title !== newTitle) {
await github.rest.pulls.update({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: pr.number,
title: newTitle
});
}