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
2 changes: 1 addition & 1 deletion source/dlangbot/github.d
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public import dlangbot.github_api;
void printBugList(W)(W app, in IssueRef[] refs, in Issue[] descs)
{
auto combined = zip(refs.map!(r => r.id), refs.map!(r => r.fixed), descs.map!(d => d.desc));
app.put("Fix | Bugzilla | Description\n");
app.put("Auto-close | Bugzilla | Description\n");
app.put("--- | --- | ---\n");
foreach (num, closed, desc; combined)
{
Expand Down
10 changes: 5 additions & 5 deletions test/comments.d
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ unittest
auto expectedComment =
`### Bugzilla references

Fix | Bugzilla | Description
Auto-close | Bugzilla | Description
--- | --- | ---
✗ | [8573](%s/show_bug.cgi?id=8573) | A simpler Phobos function that returns the index of the mix or max item
`.format(bugzillaURL);
Expand Down Expand Up @@ -47,7 +47,7 @@ unittest
auto expectedComment =
`### Bugzilla references

Fix | Bugzilla | Description
Auto-close | Bugzilla | Description
--- | --- | ---
✗ | [8573](%s/show_bug.cgi?id=8573) | A simpler Phobos function that returns the index of the mix or max item
`.format(bugzillaURL);
Expand Down Expand Up @@ -79,7 +79,7 @@ unittest
assert(req.method == HTTPMethod.PATCH);
auto body_= req.json["body"].get!string;
assert(body_.canFind("@andralex"));
assert(!body_.canFind("Fix | Bugzilla"), "Shouldn't contain bug header");
assert(!body_.canFind("Auto-close | Bugzilla"), "Shouldn't contain bug header");
assert(!body_.canFind("/show_bug.cgi?id="), "Shouldn't contain a Bugzilla reference");
}
);
Expand Down Expand Up @@ -107,7 +107,7 @@ unittest
assert(req.method == HTTPMethod.PATCH);
auto body_= req.json["body"].get!string;
assert(body_.canFind("@andralex"));
assert(!body_.canFind("Fix | Bugzilla"), "Shouldn't contain bug header");
assert(!body_.canFind("Auto-close | Bugzilla"), "Shouldn't contain bug header");
assert(!body_.canFind("/show_bug.cgi?id="), "Shouldn't contain a Bugzilla reference");
}
);
Expand Down Expand Up @@ -240,7 +240,7 @@ unittest
auto expectedComment =
"### Bugzilla references

Fix | Bugzilla | Description
Auto-close | Bugzilla | Description
--- | --- | ---
✗ | [8573](%s/show_bug.cgi?id=8573) | A simpler Phobos function that returns the index of the mix or max item

Expand Down