Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
polkadot
Commits
573152f2
Unverified
Commit
573152f2
authored
Oct 23, 2020
by
s3krit
Committed by
GitHub
Oct 23, 2020
Browse files
update generate_release_text.rb (#1812)
parent
79bb4e74
Pipeline
#111659
passed with stages
in 22 minutes and 59 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
scripts/github/generate_release_text.rb
View file @
573152f2
...
...
@@ -54,7 +54,10 @@ substrate_cl = Changelog.new(
prefix:
true
)
all_changes
=
polkadot_cl
.
changes
+
substrate_cl
.
changes
# Combine all changes into a single array and filter out companions
all_changes
=
(
polkadot_cl
.
changes
+
substrate_cl
.
changes
).
reject
do
|
c
|
c
[
:title
]
=~
/[Cc]ompanion/
end
# Set all the variables needed for a release
...
...
@@ -62,6 +65,23 @@ misc_changes = Changelog.changes_with_label(all_changes, 'B1-releasenotes')
client_changes
=
Changelog
.
changes_with_label
(
all_changes
,
'B5-clientnoteworthy'
)
runtime_changes
=
Changelog
.
changes_with_label
(
all_changes
,
'B7-runtimenoteworthy'
)
# Add the audit status for runtime changes
runtime_changes
.
each
do
|
c
|
if
c
.
labels
.
any?
{
|
l
|
l
[
:name
]
==
'D1-audited👍'
}
c
[
:pretty_title
]
=
"✅ `audited`
#{
c
[
:pretty_title
]
}
"
next
end
if
c
.
labels
.
any?
{
|
l
|
l
[
:name
]
==
'D9-needsaudit👮'
}
c
[
:pretty_title
]
=
"❌ `AWAITING AUDIT`
#{
c
[
:pretty_title
]
}
"
next
end
if
c
.
labels
.
any?
{
|
l
|
l
[
:name
]
==
'D5-nicetohaveaudit⚠️'
}
c
[
:pretty_title
]
=
"⏳ `pending non-critical audit`
#{
c
[
:pretty_title
]
}
"
next
end
c
[
:pretty_title
]
=
"✅ `trivial`
#{
c
[
:pretty_title
]
}
"
end
release_priority
=
Changelog
.
highest_priority_for_changes
(
all_changes
)
# Pulled from the previous Github step
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment