-
-
Notifications
You must be signed in to change notification settings - Fork 3
31 lines (29 loc) · 908 Bytes
/
dependabot-auto-rename.yml
File metadata and controls
31 lines (29 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Dependabot auto-rename
on:
pull_request:
types:
- opened
- edited
- reopened
branches:
- main
- next
paths:
- 'package.json'
permissions:
pull-requests: write
jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
- name: Rename PR title
env:
GH_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
run: |
gh pr edit '$PR_URL' --title 'build(deps-dev): bump % ${{ steps.dependabot-metadata.outputs.dependency-names }}@${{ steps.dependabot-metadata.outputs.new-version }}'