Skip to content

Commit 5c44cdd

Browse files
committed
Nicer PR message
1 parent 8a8494b commit 5c44cdd

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/send-pr.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ jobs:
2828
working-directory: ./phpstan-src
2929
run: "composer install --no-interaction --no-progress --no-suggest"
3030

31+
- name: "Get old version"
32+
working-directory: ./phpstan-src
33+
id: old-version
34+
run: echo "version=$(composer info phpstan/php-8-stubs --format json | jq --raw-output '.versions[0]')" >> $GITHUB_OUTPUT
35+
3136
- name: "Change composer.json"
3237
working-directory: ./phpstan-src
3338
run: "composer require phpstan/php-8-stubs:${{ github.ref_name }}"
@@ -40,7 +45,7 @@ jobs:
4045
path: ./phpstan-src
4146
branch-suffix: random
4247
delete-branch: true
43-
title: "Update PHP 8 stubs"
44-
body: "Update PHP 8 stubs to ${{ github.ref_name }}"
48+
title: "Update PHP 8 stubs to ${{ github.ref_name }}"
49+
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 }}"
4550
committer: "phpstan-bot <[email protected]>"
4651
commit-message: "Update PHP 8 stubs"

0 commit comments

Comments
 (0)