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
5 changes: 2 additions & 3 deletions .github/actions/replicate/replicate.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions .github/actions/replicate/replicate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export const generateInternalIssueContentFromPayload = async (payload: WebhookPa
const issue = payload.issue
let result: Issue = {title: 'none', body: 'none', labels: [], bountyType: 'All For One'}
let bountyIssue: boolean = false
let bountyType = ''

if(!issue || !issue.user || !issue.html_url) {
core.debug("Invalid issue payload")
Expand All @@ -71,7 +70,7 @@ export const generateInternalIssueContentFromPayload = async (payload: WebhookPa
if(!bountyIssue) {
bountyIssue = BOUNTY_LABELS.includes(element.name)
if(bountyIssue) {
bountyType = element.name
result.bountyType = element.name
}
}
});
Expand All @@ -81,7 +80,7 @@ export const generateInternalIssueContentFromPayload = async (payload: WebhookPa
return undefined
}

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