Skip to content

Commit fc892b6

Browse files
authored
Merge pull request #153 from github/bug-slayer
Fix bug slayer task list
2 parents 07fa762 + fec99ef commit fc892b6

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

.github/actions/replicate/replicate.js

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/actions/replicate/replicate.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ export const generateInternalIssueContentFromPayload = async (payload: WebhookPa
5959
const issue = payload.issue
6060
let result: Issue = {title: 'none', body: 'none', labels: [], bountyType: 'All For One'}
6161
let bountyIssue: boolean = false
62-
let bountyType = ''
6362

6463
if(!issue || !issue.user || !issue.html_url) {
6564
core.debug("Invalid issue payload")
@@ -71,7 +70,7 @@ export const generateInternalIssueContentFromPayload = async (payload: WebhookPa
7170
if(!bountyIssue) {
7271
bountyIssue = BOUNTY_LABELS.includes(element.name)
7372
if(bountyIssue) {
74-
bountyType = element.name
73+
result.bountyType = element.name
7574
}
7675
}
7776
});
@@ -81,7 +80,7 @@ export const generateInternalIssueContentFromPayload = async (payload: WebhookPa
8180
return undefined
8281
}
8382

84-
result.title = `[${bountyType}] ${issue.title}`,
83+
result.title = `[${result.bountyType}] ${issue.title}`,
8584
// In order to differentiate immediately the issues from others in the repo
8685
// And with the current situation, the robot with Read access cannot add labels to the issue
8786
result.body = `Original external [issue](${issue.html_url})

0 commit comments

Comments
 (0)