Skip to content

Commit 309dc37

Browse files
committed
Create a pull request summary
1 parent 38afd8d commit 309dc37

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

.github/workflows/update_contributors.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
lfs: false
6666
timeout-minutes: 10
6767

68-
# Run the makefile target for updating the contributors list:
68+
# Update the contributors list:
6969
- name: 'Update contributors list'
7070
id: update-contributors
7171
run: |
@@ -78,11 +78,11 @@ jobs:
7878
echo "changed=true" >> $GITHUB_OUTPUT
7979
fi
8080
81-
# Create a pull request with the updated contributors list:
81+
# Create a pull request:
8282
- name: 'Create pull request'
83-
id: cpr
84-
uses: peter-evans/create-pull-request@v4
8583
if: steps.update-contributors.outputs.changed == 'true'
84+
uses: peter-evans/create-pull-request@v4
85+
id: cpr
8686
with:
8787
title: 'Update list of contributors'
8888
body: |
@@ -99,3 +99,12 @@ jobs:
9999
stdlib-reviewers
100100
branch: update-contributors
101101
delete-branch: true
102+
103+
# Create a pull request summary:
104+
- name: 'Create summary'
105+
run: |
106+
echo "# :tada: Pull Request created! :tada:" >> $GITHUB_STEP_SUMMARY
107+
echo "" >> $GITHUB_STEP_SUMMARY
108+
echo "Pull request ${{ steps.cpr.outputs.pull-request-number }} was successfully ${{ steps.cpr.outputs.pull-request-operation }}."
109+
echo ":link: [${{ steps.cpr.outputs.pull-request-url }}](${{ steps.cpr.outputs.pull-request-url }})." >> $GITHUB_STEP_SUMMARY
110+
echo "Head SHA: [${{ steps.cpr.outputs.pull-request-head-sha }}](${{ steps.cpr.outputs.pull-request-url }}/commits/${{ steps.cpr.outputs.pull-request-head-sha }})." >> $GITHUB_STEP_SUMMARY

.github/workflows/update_repl_docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
run: |
9999
rm -rf .git/hooks
100100
101-
# Create a pull request with the updated documentation:
101+
# Create a pull request:
102102
- name: 'Create pull request'
103103
id: cpr
104104
uses: peter-evans/create-pull-request@v4

0 commit comments

Comments
 (0)