Skip to content

Commit

Permalink
Nicer PR message
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Oct 26, 2022
1 parent 8a8494b commit 5c44cdd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/send-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ jobs:
working-directory: ./phpstan-src
run: "composer install --no-interaction --no-progress --no-suggest"

- name: "Get old version"
working-directory: ./phpstan-src
id: old-version
run: echo "version=$(composer info phpstan/php-8-stubs --format json | jq --raw-output '.versions[0]')" >> $GITHUB_OUTPUT

- name: "Change composer.json"
working-directory: ./phpstan-src
run: "composer require phpstan/php-8-stubs:${{ github.ref_name }}"
Expand All @@ -40,7 +45,7 @@ jobs:
path: ./phpstan-src
branch-suffix: random
delete-branch: true
title: "Update PHP 8 stubs"
body: "Update PHP 8 stubs to ${{ github.ref_name }}"
title: "Update PHP 8 stubs to ${{ github.ref_name }}"
body: "Update PHP 8 stubs to ${{ github.ref_name }}: https://github.com/phpstan/php-8-stubs/compare/${{ steps.old-version.outputs.version }}...${{ github.ref_name }}"
committer: "phpstan-bot <[email protected]>"
commit-message: "Update PHP 8 stubs"

0 comments on commit 5c44cdd

Please sign in to comment.