Skip to content

Commit

Permalink
Update title of edited PRs only if base ref changed
Browse files Browse the repository at this point in the history
Also:
- Update title of reopened PRs too.
- Don't unnecessarily checkout the repo.
  • Loading branch information
nsoranzo committed Nov 21, 2024
1 parent 46c1dcd commit 80e76da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr-title-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ name: Update PR title

on:
pull_request_target:
types: [opened, edited]
types: [opened, edited, reopened]
branches:
- "release_**"

jobs:
update-title:
if: github.event.action != 'edited' || github.event.changes.base.ref.from != ''
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Update PR title
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 80e76da

Please sign in to comment.