Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
387 changes: 387 additions & 0 deletions doc/changelogs/v1.21.md

Large diffs are not rendered by default.

17 changes: 16 additions & 1 deletion scripts/github-changelog.cr
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@
# GITHUB_TOKEN: Access token for the GitHub API (required)
require "http/client"
require "json"
require "colorize"

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

MISSING_TOPICS = Set(PullRequest).new

case ARGV.size
when 0
abort "Missing <milestone> argument"
Expand Down Expand Up @@ -141,6 +144,10 @@ record PullRequest,
io << "[#" << number << "]"
end

def ==(other : self)
number == other.number
end

def <=>(other : self)
sort_tuple <=> other.sort_tuple
end
Expand Down Expand Up @@ -173,7 +180,7 @@ record PullRequest,

def topic
topics.fetch(0) do
STDERR.puts "Missing topic for ##{number}"
MISSING_TOPICS.add(self)
nil
end
end
Expand Down Expand Up @@ -495,3 +502,11 @@ SECTION_TITLES.each do |id, title|
end
end
end

if MISSING_TOPICS.present?
Colorize.enabled = true
STDERR.puts "Missing topics:"
MISSING_TOPICS.each do |pr|
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(", ")})"
end
end
2 changes: 0 additions & 2 deletions scripts/update-changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ if [ ! -f "$changelog_path" ]; then
git add "doc/changelogs/README.md"
fi

printf '\n' >>"$current_changelog"

if grep --silent -E "^## \[$VERSION\]" "$changelog_path"; then
echo "Replacing section in $changelog_path"
sed -i -E "/^## \[$VERSION\]/,/^## /{
Expand Down
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: crystal
version: 1.21.0-dev
version: 1.21.0

authors:
- Crystal Core Team <crystal@manas.tech>
Expand Down
1 change: 1 addition & 0 deletions src/SOURCE_DATE_EPOCH
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1784160000
2 changes: 1 addition & 1 deletion src/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.21.0-dev
1.21.0
Loading