fastlane-plugin-wpmreleasetoolkit 12.3.0 → 12.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bd7622da309b11a1d3f03e67692147361bc620cd3b9ecb0fa6d9b923cd5e8c15
4
- data.tar.gz: 662c4964c041947dd71506cee2aeb6c01bfaf2ae35281ff41192ab1231c82201
3
+ metadata.gz: 29b49bd4df79d18988c3e1b1b87fa0abaea61430ca6a8a0167d298d39812e52c
4
+ data.tar.gz: b926ccff2acbb0bfd97e334ea3734247320910253dc55de9711fa0bfc6c1d80c
5
5
  SHA512:
6
- metadata.gz: 891584b03637c76ea99ef7843db8639a8154565efd90e9339167f8edf40d7e24fc53c371c42f8e0de06f32fb6050010288b367920b326d9c34beec60d78fb9b4
7
- data.tar.gz: 3e8d0bc1db3db2e76c64ed79285113d63fdad4ffcd08cc7444c741aedf62611a194c47f73ea0c35246320855e5cc3e77e302fbf789c86f3de0378adb4682261e
6
+ metadata.gz: 4ed448099a4ed93e613cd076178c406c2f7f20dcb85d5c8e6a4df76e9aa5a12527e88a31ea4c5293e7db21d02f950c27cab72925ca70c7578854c76e2b6127ae
7
+ data.tar.gz: 293e5690ff3f8cd488d8128b45f2d96f1ebda0ac02a67b9fceee2779c098ee75913e6b96287498183d311f0a585d93b7447cf9f356e11db7783edd51aedc9ee4
@@ -9,8 +9,10 @@ module Fastlane
9
9
  version = params[:version]
10
10
  assets = params[:release_assets]
11
11
  release_notes = params[:release_notes_file_path].nil? ? '' : File.read(params[:release_notes_file_path])
12
- # Replace full URLS to PRs/Issues with shorthand, because GitHub does not render them properly otherwise.
13
- release_notes.gsub!(%r{https://github.com/([^/]*/[^/]*)/(pulls?|issues?)/([0-9]*)}, '\1#\3')
12
+ # Replace full URLs to PRs/Issues that are in `[https://some-url]` brackets with shorthand, because GitHub does not render them properly otherwise.
13
+ # That syntax is sometimes used by devs in `RELEASE-NOTES.txt` when pointing to a PR to another repo (e.g. Gutenberg PR from WP repo).
14
+ # We should NOT transform URLs to PRs/Issues that are in `[text](url)` form (those are valid), only the ones directly in `[]` brackets.
15
+ release_notes.gsub!(%r{\[https://github.com/([^/]*/[^/]*)/(pulls?|issues?)/([0-9]*)\]}, '[\1#\3]')
14
16
  prerelease = params[:prerelease]
15
17
  is_draft = params[:is_draft]
16
18
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Fastlane
4
4
  module Wpmreleasetoolkit
5
- VERSION = '12.3.0'
5
+ VERSION = '12.3.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-wpmreleasetoolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.3.0
4
+ version: 12.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Automattic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-31 00:00:00.000000000 Z
11
+ date: 2024-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport