Skip to content

Commit

Permalink
Always allow assigning author
Browse files Browse the repository at this point in the history
Fixes #359
  • Loading branch information
Daniel Kiss committed Apr 29, 2024
1 parent a675dcf commit c92c9fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/actions/assign.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ class Assign extends Action {
const payload = this.getPayload(context)
const issueNumber = payload.number
const assignees = settings.assignees.map(assignee => searchAndReplaceSpecialAnnotations(assignee, payload))
const checkResults = await Promise.all(assignees.map(assignee => this.githubAPI.checkUserCanBeAssigned(context, issueNumber, assignee)))
const checkResults = await Promise.all(assignees.map(
assignee => assignee === payload.user.login
? assignee
: this.githubAPI.checkUserCanBeAssigned(context, issueNumber, assignee)))

const authorizedAssignees = checkResults.filter(assignee => assignee !== null)

Expand Down

0 comments on commit c92c9fe

Please sign in to comment.