mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 09:32:41 +00:00
refactor: omit assigne self reference
This commit is contained in:
@@ -115,6 +115,10 @@ export async function remind(api: Api): Promise<void> {
|
|||||||
// get possible appropers, prefixed with '@' and joined with commas
|
// get possible appropers, prefixed with '@' and joined with commas
|
||||||
const possibleApprovers = maintainerUsernames
|
const possibleApprovers = maintainerUsernames
|
||||||
.filter((username) => {
|
.filter((username) => {
|
||||||
|
if (mergeRequest.assignee.username === username) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (approval.approved_by.length === 0) {
|
if (approval.approved_by.length === 0) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -155,6 +159,9 @@ export async function remind(api: Api): Promise<void> {
|
|||||||
|
|
||||||
// prefix maintainers with '@' and join with commas
|
// prefix maintainers with '@' and join with commas
|
||||||
const possibleMergers = maintainerUsernames
|
const possibleMergers = maintainerUsernames
|
||||||
|
.filter((username) => {
|
||||||
|
return mergeRequest.assignee.username !== username;
|
||||||
|
})
|
||||||
.map((username) => `@${username}`)
|
.map((username) => `@${username}`)
|
||||||
.join(', ');
|
.join(', ');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user