Skip to content

When a new issue assigned or any comments coming, the assignee should also be emailed. #4220

@yourchanges

Description

@yourchanges

When a new issue assigned or any comments coming, the assignee should also be emailed.

before https://github.com/gogits/gogs/blob/master/models/issue_mail.go#L123 , add following code:

//keep the Assignee as the same role as the watchers
	if issue.Assignee != nil {
		if com.IsSliceContainsStr(names, issue.Assignee.Name) == false {
			tos = append(tos, issue.Assignee.Email)
			names = append(names, issue.Assignee.Name)
		}
	}

any mistake or omission?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions