Skip to content

Commit

Permalink
Add reporter and assignee
Browse files Browse the repository at this point in the history
  • Loading branch information
skyrising committed Nov 11, 2021
1 parent 1eb9221 commit b170701
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions eigenbot.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,11 @@ async function sendEmbed (interaction, issue) {
const categories = issue.fields.customfield_11901.map(c => c.value)
descriptionString += ` | **${categories.length === 1 ? 'Category' : 'Categories'}:** ` + categories.join(', ')
}
descriptionString += '\n**Reporter:** ' + issue.fields.reporter.displayName
if (issue.fields.assignee) {
descriptionString += ' | **Assignee:** ' + issue.fields.assignee.displayName
}

// Generate the message
// Pick a color based on the status
let color = config.colors[issue.fields.status.name]
Expand Down

0 comments on commit b170701

Please sign in to comment.