Skip to content

Commit b1bd7c1

Browse files
committed
async function writeGithubIssues()
Signed-off-by: Vedansh Saini <[email protected]>
1 parent 1250768 commit b1bd7c1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/scripts/scrumHelper.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,10 @@ function allIncluded(outputTarget = 'email') {
165165

166166
if (!items.showOpenLabel) {
167167
showOpenLabel = false;
168-
pr_open_button = '';
168+
pr_unmerged_button = '';
169169
issue_opened_button = '';
170+
pr_merged_button = '';
171+
issue_closed_button = '';
170172
}
171173
if (items.githubCache) {
172174
githubCache.data = items.githubCache.data;
@@ -848,7 +850,7 @@ ${userReason}`;
848850
}
849851
}
850852

851-
function writeGithubIssuesPrs() {
853+
async function writeGithubIssuesPrs() {
852854
let items = githubIssuesData.items;
853855
lastWeekArray = [];
854856
nextWeekArray = [];
@@ -921,7 +923,7 @@ ${userReason}`;
921923
if (isDraft) {
922924
li = `<li><i>(${project})</i> - Made PR (#${number}) - <a href='${html_url}'>${title}</a> ${pr_draft_button}</li>`;
923925
} else if (item.state === 'open') {
924-
li = `<li><i>(${project})</i> - Made PR (#${number}) - <a href='${html_url}'>${title}</a> ${pr_unmerged_button}`;
926+
li = `<li><i>(${project})</i> - Made PR (#${number}) - <a href='${html_url}'>${title}</a> ${pr_open_button}`;
925927
if (showCommits && item._lastCommits && item._lastCommits.length) {
926928
item._lastCommits = item._allCommits.slice(0, numCommits);
927929
item._lastCommits.forEach(commit => {

0 commit comments

Comments
 (0)