Skip to content

Commit

Permalink
chore: Make cherry-pick PR title semantically correct (#16632)
Browse files Browse the repository at this point in the history
  • Loading branch information
atomrc authored Jan 25, 2024
1 parent 4761f78 commit 94040ed
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/rename-cherry-pick-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: rename-auto-cherry-pick-pr
on: pull_request

permissions:
pull-requests: write
contents: write

# This job will remove the AUTO: prefix from the PR title
jobs:
rename-auto-cherry-pick-pr:
runs-on: ubuntu-latest
if: startsWith(github.event.pull_request.title, 'AUTO:')
steps:
- name: Make title semantic
run: |
TITLE="${{github.event.pull_request.title}}"
SEMANTIC_TITLE="${TITLE/AUTO: /}"
echo "new semantic title: $SEMANTIC_TITLE"
gh pr edit ${{github.event.pull_request.id}} --title "$SEMANTIC_TITLE"

0 comments on commit 94040ed

Please sign in to comment.