aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/gitlab
diff options
context:
space:
mode:
authorHenrik Buestad <henrik.buestad@macgregor.com>2023-01-13 15:25:07 +0100
committerHenrik Buestad <henrik.buestad@macgregor.com>2023-01-13 15:25:07 +0100
commit119fdeefc43c1e5f13879da3ffae48055abfc3fc (patch)
tree98005f383081372cd55dc153e0ddd6d985f6c491 /bridge/gitlab
parent9c50a359704f4edd2f33df6d256e032feae3a576 (diff)
downloadgit-bug-119fdeefc43c1e5f13879da3ffae48055abfc3fc.tar.gz
added EventMentionedInCommit
Diffstat (limited to 'bridge/gitlab')
-rw-r--r--bridge/gitlab/event.go4
-rw-r--r--bridge/gitlab/import.go3
2 files changed, 6 insertions, 1 deletions
diff --git a/bridge/gitlab/event.go b/bridge/gitlab/event.go
index 483af921..0653269d 100644
--- a/bridge/gitlab/event.go
+++ b/bridge/gitlab/event.go
@@ -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
}
diff --git a/bridge/gitlab/import.go b/bridge/gitlab/import.go
index 5947fb60..e4330b4c 100644
--- a/bridge/gitlab/import.go
+++ b/bridge/gitlab/import.go
@@ -324,7 +324,8 @@ func (gi *gitlabImporter) ensureIssueEvent(repo *cache.RepoCache, b *cache.BugCa
EventLocked,
EventUnlocked,
EventMentionedInIssue,
- EventMentionedInMergeRequest:
+ EventMentionedInMergeRequest,
+ EventMentionedInCommit:
return nil