Skip to content

Commit

Permalink
Merge pull request #229 from Xerkus/feature/pr-autocloser
Browse files Browse the repository at this point in the history
Fix wrong PR url from GHA context. Improve close comment verbiage
  • Loading branch information
Xerkus authored Nov 4, 2024
2 parents 28a9e73 + 85666af commit 9e55266
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/pr-autocloser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ jobs:
steps:
- name: Comment and close PR
run: |
gh pr close "${{ github.event.pull_request.url }}"
--comment "Pull requests to the live branch are not allowed. Use staging branch. Publish via workflow dispatch to Publish to live workflow"
gh pr close "${PR_NUMBER}" \
--repo "${GH_REPO}" \
--comment "Pull requests to the master branch are not allowed. Use staging branch. Maintainer can publish staging branch using workflow dispatch at https://github.com/laminas/getlaminas.org/actions/workflows/publish.yml"
env:
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}

0 comments on commit 9e55266

Please sign in to comment.