Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 713afcd

Browse files
authored
New template for a full unfiltered list of PRs (#6692)
1 parent 06aec1e commit 713afcd

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

scripts/ci/changelog/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,15 @@ By default, if the changelog data from Github is already present, the calls to t
6666
and the local version of the data will be used. This is much faster.
6767
If you know that some labels have changed in Github, you will want to refresh the data.
6868
You can then either delete manually the `<chain>.json` file or `export NO_CACHE=1` to force refreshing the data.
69+
70+
## Full PR list
71+
72+
At times, it may be useful to get a raw full PR list.
73+
In order to produce this list, you first need to fetch the the latest `context.json` from the `release-notes-context` artifacts you can find [here](https://github.com/paritytech/polkadot/actions/workflows/release-30_publish-draft-release.yml). You may store this `context.json` under `scripts/ci/changelog`.
74+
75+
Using the `full_pr_list.md.tera` template, you can generate the `raw` list of changes:
76+
77+
```
78+
cd scripts/ci/changelog
79+
tera --env --env-key env --template templates/full_pr_list.md.tera context.json
80+
```
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{# This is a helper template to get the FULL PR list #}
2+
{# It is not used in the release notes #}
3+
4+
# PR list
5+
6+
## substrate
7+
8+
{%- for change in substrate.changes %}
9+
- [S] [`{{ change.number }}`]({{ change.html_url }}) - {{ change.title }}
10+
{%- endfor %}
11+
12+
## polkadot
13+
14+
{%- for change in polkadot.changes %}
15+
- [P] [`{{ change.number }}`]({{ change.html_url }}) - {{ change.title }}
16+
{%- endfor %}

0 commit comments

Comments
 (0)