Skip to content
Merged
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ GNUmakefile
/tests_extractor
/dtools_*
/dub.selections.json
/token.txt
12 changes: 8 additions & 4 deletions changed.d
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ GithubIssue[] getGithubIssuesRest(const string project, const string repo
HTTP http = HTTP(url);
http.addRequestHeader("Accept", "application/vnd.github+json");
http.addRequestHeader("X-GitHub-Api-Version", "2022-11-28");
http.addRequestHeader("Authorization", bearer);
http.addRequestHeader("Authorization", bearer.startsWith("Bearer ") ? bearer : "Bearer " ~ bearer);

char[] response;
int statusCode;
Expand Down Expand Up @@ -864,12 +864,16 @@ Please supply a bugzilla version
with(changelogStats)
{
auto changelog = changelogEntries > 0 ? "%d major change%s and".format(changelogEntries, changelogEntries > 1 ? "s" : "") : "";
w.put("$(VER) comes with {changelogEntries} {bugzillaIssues} fixed Bugzilla issue{bugzillaIssuesPlural}.
size_t githubIssues;
foreach (repo; githubChanges)
foreach (issues; repo)
githubIssues += issues.length;
w.put("$(VER) comes with {changelogEntries} {githubIssues} fixed GitHub issue{githubIssuesPlural}.
A huge thanks goes to the
$(LINK2 #contributors, {nrContributors} contributor{nrContributorsPlural})
who made $(VER) possible."
.replace("{bugzillaIssues}", bugzillaIssues.text)
.replace("{bugzillaIssuesPlural}", bugzillaIssues != 1 ? "s" : "")
.replace("{githubIssues}", githubIssues.text)
.replace("{githubIssuesPlural}", githubIssues != 1 ? "s" : "")
.replace("{changelogEntries}", changelog)
.replace("{nrContributors}", contributors.text)
.replace("{nrContributorsPlural}", contributors != 1 ? "s" : "")
Expand Down
Loading