Refactor pull request creation command in workflow

This commit is contained in:
lucas lelievre
2025-11-17 20:25:13 +01:00
committed by GitHub
parent 81879afa32
commit c580aecb11

View File

@@ -17,5 +17,5 @@ jobs:
env:
GH_TOKEN: ${{ secrets.PONTOON_BOT_KEY }}
run: |
gh_pr_up() { gh pr create "$@" || gh pr edit "$@"; }
gh_pr_up --title "New Pontoon translations" --body "Please don't squash me 🥺" --label "Area: Translation" --base main
gh_pr_up() { gh pr create "$@" --label "Area: Translation" --base main || gh pr edit "$@"; }
gh_pr_up --title "New Pontoon translations" --body "Please don't squash me 🥺"