Skip to content

Commit 2831c99

Browse files
filter labels in release diff (#566)
1 parent 15a220f commit 2831c99

File tree

1 file changed

+111
-2
lines changed

1 file changed

+111
-2
lines changed

.github/workflows/TagBot.yml

Lines changed: 111 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,93 @@ jobs:
3131
token: ${{ secrets.GITHUB_TOKEN }}
3232
ssh: ${{ secrets.DOCUMENTER_KEY }}
3333
subdir: GraphNeuralNetworks
34+
changelog: |
35+
{% if previous_release %}
36+
[Diff since {{ previous_release }}]({{ compare_url }})
37+
{% endif %}
38+
39+
{% if custom %}
40+
{{ custom }}
41+
{% endif %}
42+
43+
{% if backport %}
44+
This release has been identified as a backport.
45+
Automated changelogs for backports tend to be wildly incorrect.
46+
Therefore, the list of issues and pull requests is hidden.
47+
<!--
48+
{% endif %}
49+
{% if pulls %}
50+
**Merged pull requests:**
51+
{% for pull in pulls %}
52+
{% if "gnnlib" in pull.labels or "gnngraphs" in pull.labels or "flux" in pull.labels %}
53+
- {{ pull.title }} (#{{ pull.number }}) (@{{ pull.author.username }})
54+
{% endif %}
55+
{% endfor %}
56+
{% endif %}
57+
58+
{% if issues %}
59+
**Closed issues:**
60+
{% for issue in issues %}
61+
{% if "gnnlib" in issue.labels or "gnngraphs" in issue.labels or "flux" in issue.labels %}
62+
- {{ issue.title }} (#{{ issue.number }})
63+
{% endif %}
64+
{% endfor %}
65+
{% endif %}
66+
67+
{% if backport %}
68+
-->
69+
{% endif %}
70+
3471
- name: Tag GNNlib
3572
uses: JuliaRegistries/TagBot@v1
3673
with:
3774
token: ${{ secrets.GITHUB_TOKEN }}
3875
ssh: ${{ secrets.DOCUMENTER_KEY }}
3976
subdir: GNNlib
77+
changelog: |
78+
{% if previous_release %}
79+
[Diff since {{ previous_release }}]({{ compare_url }})
80+
{% endif %}
81+
82+
{% if custom %}
83+
{{ custom }}
84+
{% endif %}
85+
86+
{% if backport %}
87+
This release has been identified as a backport.
88+
Automated changelogs for backports tend to be wildly incorrect.
89+
Therefore, the list of issues and pull requests is hidden.
90+
<!--
91+
{% endif %}
92+
{% if pulls %}
93+
**Merged pull requests:**
94+
{% for pull in pulls %}
95+
{% if "gnnlib" in pull.labels %}
96+
- {{ pull.title }} (#{{ pull.number }}) (@{{ pull.author.username }})
97+
{% endif %}
98+
{% endfor %}
99+
{% endif %}
100+
101+
{% if issues %}
102+
**Closed issues:**
103+
{% for issue in issues %}
104+
{% if "gnnlib" in issue.labels %}
105+
- {{ issue.title }} (#{{ issue.number }})
106+
{% endif %}
107+
{% endfor %}
108+
{% endif %}
109+
110+
{% if backport %}
111+
-->
112+
{% endif %}
113+
40114
- name: Tag GNNGraphs
41115
uses: JuliaRegistries/TagBot@v1
42116
with:
43117
token: ${{ secrets.GITHUB_TOKEN }}
44118
ssh: ${{ secrets.DOCUMENTER_KEY }}
45119
subdir: GNNGraphs
46120
changelog: |
47-
## {{ package }} {{ version }}
48-
49121
{% if previous_release %}
50122
[Diff since {{ previous_release }}]({{ compare_url }})
51123
{% endif %}
@@ -81,9 +153,46 @@ jobs:
81153
{% if backport %}
82154
-->
83155
{% endif %}
156+
84157
- name: Tag GNNLux
85158
uses: JuliaRegistries/TagBot@v1
86159
with:
87160
token: ${{ secrets.GITHUB_TOKEN }}
88161
ssh: ${{ secrets.DOCUMENTER_KEY }}
89162
subdir: GNNLux
163+
changelog: |
164+
{% if previous_release %}
165+
[Diff since {{ previous_release }}]({{ compare_url }})
166+
{% endif %}
167+
168+
{% if custom %}
169+
{{ custom }}
170+
{% endif %}
171+
172+
{% if backport %}
173+
This release has been identified as a backport.
174+
Automated changelogs for backports tend to be wildly incorrect.
175+
Therefore, the list of issues and pull requests is hidden.
176+
<!--
177+
{% endif %}
178+
{% if pulls %}
179+
**Merged pull requests:**
180+
{% for pull in pulls %}
181+
{% if "gnnlib" in pull.labels or "gnngraphs" in pull.labels or "lux" in pull.labels %}
182+
- {{ pull.title }} (#{{ pull.number }}) (@{{ pull.author.username }})
183+
{% endif %}
184+
{% endfor %}
185+
{% endif %}
186+
187+
{% if issues %}
188+
**Closed issues:**
189+
{% for issue in issues %}
190+
{% if "gnnlib" in issue.labels or "gnngraphs" in issue.labels or "lux" in issue.labels %}
191+
- {{ issue.title }} (#{{ issue.number }})
192+
{% endif %}
193+
{% endfor %}
194+
{% endif %}
195+
196+
{% if backport %}
197+
-->
198+
{% endif %}

0 commit comments

Comments
 (0)