Skip to content

chore(deps): update npm #80

chore(deps): update npm

chore(deps): update npm #80

name: Pull Request Title Modifier
on:
pull_request:
paths-ignore:
- src/**
- static/**
- tailwind.config.*
- package.json
env:
PREFIX: infra
jobs:
pr-title-modifier:
name: PR Title Modifier
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]'
permissions:
pull-requests: write
steps:
- name: 📂 Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: 📝 Modify PR Title
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
current_title=$(gh pr view --json title --jq '.title')
if [[ $current_title != "${{ env.PREFIX }}: "* ]]; then
gh pr edit --title "${{ env.PREFIX }}: $current_title"
fi