Commit 250c5e8 1 parent 1efcab1 commit 250c5e8 Copy full SHA for 250c5e8
File tree 3 files changed +11
-9
lines changed
3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 1
1
package config
2
2
3
- type Actor struct {
4
- Username string
5
- Email * string
6
- IsBot bool
7
- }
3
+ import "github.com/jippi/scm-engine/pkg/scm"
8
4
9
5
type IgnoreActivityFrom struct {
10
6
IsBot bool `yaml:"bots"`
11
7
Usernames []string `yaml:"usernames"`
12
8
Emails []string `yaml:"emails"`
13
9
}
14
10
15
- func (i IgnoreActivityFrom ) Matches (actor Actor ) bool {
11
+ func (i IgnoreActivityFrom ) Matches (actor scm. Actor ) bool {
16
12
// If actor is bot and we ignore bot activity
17
13
if actor .IsBot && i .IsBot {
18
14
return true
Original file line number Diff line number Diff line change 1
1
package gitlab
2
2
3
- import "github.com/jippi/scm-engine/pkg/config "
3
+ import "github.com/jippi/scm-engine/pkg/scm "
4
4
5
- func (u ContextUser ) ToActor () config .Actor {
6
- return config .Actor {
5
+ func (u ContextUser ) ToActor () scm .Actor {
6
+ return scm .Actor {
7
7
Username : u .Username ,
8
8
IsBot : u .Bot ,
9
9
Email : u .PublicEmail ,
Original file line number Diff line number Diff line change @@ -9,6 +9,12 @@ import (
9
9
"github.com/jippi/scm-engine/pkg/types"
10
10
)
11
11
12
+ type Actor struct {
13
+ Username string
14
+ Email * string
15
+ IsBot bool
16
+ }
17
+
12
18
// Label represents a GitLab label.
13
19
//
14
20
// GitLab API docs: https://docs.gitlab.com/ee/api/labels.html
You can’t perform that action at this time.
0 commit comments