Skip to content

Commit 738663d

Browse files
hardingbitschmidty
authored andcommitted
Linkers: add version to allow deprecation of old references
Fixes an issue reported by Steve Lee (thanks!)
1 parent f019b9f commit 738663d

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

_includes/linkers/issues.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ issues.md: creates Markdown reference-style links to issues, pull
44
requests, and other templated URLs.
55
66
Input:
7+
- v: (integer) version number for backwards-incompatible changes
78
- issues: (CSV) the issue numbers to create links for separated by
89
commas with no spaces. For a given number, a separate link will
910
be created for *all* supported repositories
@@ -31,10 +32,14 @@ requests, and other templated URLs.
3132
[bips #{{_issue}}]: https://github.com/bitcoin/bips/issues/{{_issue}}
3233
[bolts #{{_issue}}]: https://github.com/lightning/bolts/issues/{{_issue}}
3334
[rust bitcoin #{{_issue}}]: https://github.com/rust-bitcoin/rust-bitcoin/issues/{{_issue}}
34-
[rust-lightning #{{_issue}}]: https://github.com/rust-bitcoin/rust-lightning/issues/{{_issue}}
35-
[ldk #{{_issue}}]: https://github.com/lightningdevkit/rust-lightning/issues/{{_issue}}
3635
[review club #{{_issue}}]: https://bitcoincore.reviews/{{_issue}}
3736
[hwi #{{_issue}}]: https://github.com/bitcoin-core/HWI/issues/{{_issue}}
3837
[btcpay server #{{_issue}}]: https://github.com/btcpayserver/btcpayserver/issues/{{_issue}}
3938
[bdk #{{_issue}}]: https://github.com/bitcoindevkit/bdk/issues/{{_issue}}
39+
40+
{% if include.v > 0 %}
41+
[ldk #{{_issue}}]: https://github.com/lightningdevkit/rust-lightning/issues/{{_issue}}
42+
{% else %}
43+
[rust-lightning #{{_issue}}]: https://github.com/rust-bitcoin/rust-lightning/issues/{{_issue}}
44+
{% endif %}
4045
{% endfor %}

_posts/en/newsletters/2022-01-19-newsletter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Proposals (BIPs)][bips repo], and [Lightning BOLTs][bolts repo].*
126126
(["nulldummy"][bip147]) in the PSBT.
127127

128128
{% include references.md %}
129-
{% include linkers/issues.md issues="2063,912,1013,6006,590,591,669,950" %}
129+
{% include linkers/issues.md v=1 issues="2063,912,1013,6006,590,591,669,950" %}
130130
[poelstra nulldummy]: https://github.com/rust-bitcoin/rust-bitcoin/pull/669#issuecomment-1008021007
131131
[dmw legal]: https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2022-January/019741.html
132132
[todd ctv]: https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2022-January/019738.html

_posts/ja/newsletters/2022-01-19-newsletter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ lang: ja
101101
署名をしたくない署名者が空のバイト列(["nulldummy"][bip147])をPSBTに入れるべきかどうかという[興味深いコメント][poelstra nulldummy]もありました。
102102

103103
{% include references.md %}
104-
{% include linkers/issues.md issues="2063,912,1013,6006,590,591,669,950" %}
104+
{% include linkers/issues.md v=1 issues="2063,912,1013,6006,590,591,669,950" %}
105105
[poelstra nulldummy]: https://github.com/rust-bitcoin/rust-bitcoin/pull/669#issuecomment-1008021007
106106
[dmw legal]: https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2022-January/019741.html
107107
[todd ctv]: https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2022-January/019738.html

0 commit comments

Comments
 (0)