Change summary
bridge/gitlab/event.go | 4 ++++
bridge/gitlab/import.go | 3 ++-
2 files changed, 6 insertions(+), 1 deletion(-)
Detailed changes
@@ -40,6 +40,7 @@ const (
EventRemoveLabel
EventMentionedInIssue
EventMentionedInMergeRequest
+ EventMentionedInCommit
)
var _ Event = &NoteEvent{}
@@ -97,6 +98,9 @@ func (n NoteEvent) Kind() EventKind {
case strings.HasPrefix(n.Body, "mentioned in merge request"):
return EventMentionedInMergeRequest
+ case strings.HasPrefix(n.Body, "mentioned in commit"):
+ return EventMentionedInCommit
+
default:
return EventUnknown
}
@@ -324,7 +324,8 @@ func (gi *gitlabImporter) ensureIssueEvent(repo *cache.RepoCache, b *cache.BugCa
EventLocked,
EventUnlocked,
EventMentionedInIssue,
- EventMentionedInMergeRequest:
+ EventMentionedInMergeRequest,
+ EventMentionedInCommit:
return nil