Skip to content

Commit 57cf7da

Browse files
Changelog for 1.21.0 (#17095)
1 parent 382a7df commit 57cf7da

6 files changed

Lines changed: 425 additions & 5 deletions

File tree

doc/changelogs/v1.21.md

Lines changed: 406 additions & 0 deletions
Large diffs are not rendered by default.

scripts/github-changelog.cr

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@
1414
# GITHUB_TOKEN: Access token for the GitHub API (required)
1515
require "http/client"
1616
require "json"
17+
require "colorize"
1718

1819
abort "Missing GITHUB_TOKEN env variable" unless ENV["GITHUB_TOKEN"]?
1920
api_token = ENV["GITHUB_TOKEN"]
2021

22+
MISSING_TOPICS = Set(PullRequest).new
23+
2124
case ARGV.size
2225
when 0
2326
abort "Missing <milestone> argument"
@@ -141,6 +144,10 @@ record PullRequest,
141144
io << "[#" << number << "]"
142145
end
143146

147+
def ==(other : self)
148+
number == other.number
149+
end
150+
144151
def <=>(other : self)
145152
sort_tuple <=> other.sort_tuple
146153
end
@@ -173,7 +180,7 @@ record PullRequest,
173180

174181
def topic
175182
topics.fetch(0) do
176-
STDERR.puts "Missing topic for ##{number}"
183+
MISSING_TOPICS.add(self)
177184
nil
178185
end
179186
end
@@ -495,3 +502,11 @@ SECTION_TITLES.each do |id, title|
495502
end
496503
end
497504
end
505+
506+
if MISSING_TOPICS.present?
507+
Colorize.enabled = true
508+
STDERR.puts "Missing topics:"
509+
MISSING_TOPICS.each do |pr|
510+
STDERR.puts "\e]8;;https://github.com/crystal-lang/crystal/pull/#{pr.number}\e\\#{pr.title.colorize(:white)} (#{pr.number.to_s.colorize(:light_gray)})\e]8;;\e\\ (#{pr.labels.join(", ")})"
511+
end
512+
end

scripts/update-changelog.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ if [ ! -f "$changelog_path" ]; then
6464
git add "doc/changelogs/README.md"
6565
fi
6666

67-
printf '\n' >>"$current_changelog"
68-
6967
if grep --silent -E "^## \[$VERSION\]" "$changelog_path"; then
7068
echo "Replacing section in $changelog_path"
7169
sed -i -E "/^## \[$VERSION\]/,/^## /{

shard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: crystal
2-
version: 1.21.0-dev
2+
version: 1.21.0
33

44
authors:
55
- Crystal Core Team <crystal@manas.tech>

src/SOURCE_DATE_EPOCH

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1784160000

src/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.21.0-dev
1+
1.21.0

0 commit comments

Comments
 (0)