Skip to content

infra: Filter out infrastructure changes from release notes #4

infra: Filter out infrastructure changes from release notes

infra: Filter out infrastructure changes from release notes #4

name: Pull Request Title Modifier
on:
pull_request:
paths-ignore:
- src/**
- static/**
- tailwind.config.*
env:
PREFIX: infra
jobs:
pr-title-modifier:
name: PR Title Modifier
runs-on: ubuntu-latest
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