7676 if : steps.local.outputs.tag != steps.latest.outputs.tag
7777 run : git --no-pager diff --color=always
7878
79+ - name : PR summary
80+ id : prsummary
81+ if : steps.local.outputs.tag != steps.latest.outputs.tag
82+ # Needs to be a single line string
83+ # https://trstringer.com/github-actions-multiline-strings/#option-1---string-substitution
84+ run : |
85+ pip install github
86+ PR_LIST=$(./scripts/get-prs.py {{matrix.repository}} {{steps.local.outputs.tag}} {{steps.latest.outputs.tag}})
87+ PR_LIST="${PR_LIST//$'\n'/'%0A'}"
88+ echo "::set-output name=prs::$PR_LIST"
89+
7990 # ref: https://github.com/peter-evans/create-pull-request
8091 - name : Create a PR
8192 uses :
peter-evans/[email protected] 93104 body : |
94105 Updates mybinder to depend on the `${{ matrix.registry }}/${{ matrix.repository }}` image version `${{ steps.latest.outputs.tag }}` from version `${{ steps.local.outputs.tag }}`.
95106
107+ ## Merged PRs:
108+ ${{ steps.prsummary.outputs.prs }}
109+
96110 ## Related
97111
98112 - Source code: ${{ matrix.source_url }}
@@ -119,30 +133,35 @@ jobs:
119133 chart_dep_app_changelog_url : " https://github.com/jupyterhub/binderhub/blob/master/CHANGES.md"
120134 chart_dep_source_url : " https://github.com/jupyterhub/binderhub/tree/master/helm-chart"
121135 chart_dep_devel_flag : " --devel"
136+ github_repo : jupyterhub/binderhub
122137
123138 - chart_dep_name : ingress-nginx
124139 chart_dep_chart_changelog_url : " https://github.com/kubernetes/ingress-nginx/tree/main/charts/ingress-nginx#upgrading-chart"
125140 chart_dep_app_changelog_url : " https://github.com/kubernetes/ingress-nginx/blob/master/Changelog.md"
126141 chart_dep_source_url : " https://github.com/kubernetes/ingress-nginx/tree/master/charts/ingress-nginx"
127142 chart_dep_devel_flag : " "
143+ github_repo : " "
128144
129145 - chart_dep_name : prometheus
130146 chart_dep_chart_changelog_url : " https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus#upgrading-chart"
131147 chart_dep_app_changelog_url : " https://github.com/prometheus/prometheus/blob/master/CHANGELOG.md"
132148 chart_dep_source_url : https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus
133149 chart_dep_devel_flag : " "
150+ github_repo : " "
134151
135152 - chart_dep_name : grafana
136153 chart_dep_chart_changelog_url : " https://github.com/grafana/helm-charts/tree/main/charts/grafana#upgrading-an-existing-release-to-a-new-major-version"
137154 chart_dep_app_changelog_url : " https://github.com/grafana/grafana/blob/master/CHANGELOG.md"
138155 chart_dep_source_url : " https://github.com/grafana/helm-charts/tree/main/charts/grafana"
139156 chart_dep_devel_flag : " "
157+ github_repo : " "
140158
141159 - chart_dep_name : cryptnono
142160 chart_dep_chart_changelog_url : " "
143161 chart_dep_app_changelog_url : " "
144162 chart_dep_source_url : " https://github.com/yuvipanda/cryptnono/"
145163 chart_dep_devel_flag : " --devel"
164+ github_repo : " "
146165
147166 steps :
148167 - uses : actions/checkout@v3
@@ -185,6 +204,17 @@ jobs:
185204 - name : git diff
186205 run : git --no-pager diff --color=always
187206
207+ - name : PR summary
208+ id : prsummary
209+ if : matrix.github_repo && (steps.local.outputs.version != steps.latest.outputs.version)
210+ # Needs to be a single line string
211+ # https://trstringer.com/github-actions-multiline-strings/#option-1---string-substitution
212+ run : |
213+ pip install github
214+ PR_LIST=$(./scripts/get-prs.py {{matrix.github_repo}} {{steps.local.outputs.tag}} {{steps.latest.outputs.tag}})
215+ PR_LIST="${PR_LIST//$'\n'/'%0A'}"
216+ echo "::set-output name=prs::$PR_LIST"
217+
188218 # ref: https://github.com/peter-evans/create-pull-request
189219 - name : Create a PR
190220 uses :
peter-evans/[email protected] @@ -207,6 +237,9 @@ jobs:
207237 Chart.yaml's version | `${{ steps.local.outputs.version }}` | `${{ steps.latest.outputs.version }}`
208238 Chart.yaml's appVersion | `${{ steps.local.outputs.appVersion }}` | `${{ steps.latest.outputs.appVersion }}`
209239
240+ ## Merged PRs:
241+ ${{ steps.prsummary.outputs.prs }}
242+
210243 ## Related
211244
212245 - Chart source code: ${{ matrix.chart_dep_source_url }}
0 commit comments