Skip to content

Commit b25b9a7

Browse files
jay4ayDaniel Kiss
and
Daniel Kiss
authored
Always allow assigning author (#744)
Fixes #359 Co-authored-by: Daniel Kiss <dkiss1@bloomberg.net>
1 parent a675dcf commit b25b9a7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/changelog.rst

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
CHANGELOG
22
=====================================
3+
| April 29, 2024: fix: Always allow assigning author `#744 <https://github.com/mergeability/mergeable/pull/744>`_
34
| Mar 11, 2024: fix: bump dependencies probot, jest and nock to latest versions and update ci workflow to use node 20 `#738 <https://github.com/mergeability/mergeable/pull/738>`_
45
| Feb 27, 2024: fix: search and replace of special annotations `#735 <https://github.com/mergeability/mergeable/pull/735>`_
56
| May 12, 2023: fix: Loading teams for team option of author filter/validator `#713 <https://github.com/mergeability/mergeable/pull/713>`_

lib/actions/assign.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ class Assign extends Action {
1717
const payload = this.getPayload(context)
1818
const issueNumber = payload.number
1919
const assignees = settings.assignees.map(assignee => searchAndReplaceSpecialAnnotations(assignee, payload))
20-
const checkResults = await Promise.all(assignees.map(assignee => this.githubAPI.checkUserCanBeAssigned(context, issueNumber, assignee)))
20+
const checkResults = await Promise.all(assignees.map(
21+
assignee => assignee === payload.user.login
22+
? assignee
23+
: this.githubAPI.checkUserCanBeAssigned(context, issueNumber, assignee)))
2124

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

0 commit comments

Comments
 (0)