gitlab-username_bot_identifier 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gitlab/username_bot_identifier.rb +12 -8
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ba564c178ecd9e50331631d14f87f4dac9358c69e553adf244e538cc85d9b5a
|
4
|
+
data.tar.gz: 8a8dfae7a2549d2fa51a5b5f6dc3e2d50829ac7ef444bfa1c318b44f0e543539
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afdc1f881890a9c3d5b019fcd64b16d22a0709b4cabe79852ceff9d845133fb9e3db1586158c2543081503783e991cf016671d0619519b32db6cdaa78ee8c45b
|
7
|
+
data.tar.gz: 4f2841f5fafc9a7d6ed49075e9c7214dc34afe76250d97696d59ccf21975a90f7351ec7bdc0b20af51622053ac544720bdf7a89834ed3b44d3fde802c12da29c
|
@@ -12,11 +12,11 @@ module Gitlab
|
|
12
12
|
gitlab-dependency-update-bot
|
13
13
|
gitlab-infra-mgmt-bot
|
14
14
|
gitlab-jh-bot
|
15
|
-
|
15
|
+
gitlab-llm-bot
|
16
16
|
gitlab-qa
|
17
17
|
gitlab-release-tools-bot
|
18
|
-
|
19
|
-
|
18
|
+
gitlab-security-bot
|
19
|
+
gitlabreviewerrecommenderbot
|
20
20
|
gl-infra-danger-bot
|
21
21
|
glrenovatebot
|
22
22
|
gl-support-bot
|
@@ -40,24 +40,28 @@ module Gitlab
|
|
40
40
|
@username = username
|
41
41
|
end
|
42
42
|
|
43
|
+
def username
|
44
|
+
@username.downcase
|
45
|
+
end
|
46
|
+
|
43
47
|
def known_bot?
|
44
|
-
KNOWN_GITLAB_COM_BOT_USERNAMES.include?(
|
48
|
+
KNOWN_GITLAB_COM_BOT_USERNAMES.include?(username)
|
45
49
|
end
|
46
50
|
|
47
51
|
def ghost?
|
48
|
-
|
52
|
+
username == GHOST_ACCOUNT
|
49
53
|
end
|
50
54
|
|
51
55
|
def service_account?
|
52
|
-
|
56
|
+
username.match?(SERVICE_ACCOUNT_REGEX)
|
53
57
|
end
|
54
58
|
|
55
59
|
def project_access_token?
|
56
|
-
|
60
|
+
username.match?(PROJECT_ACCESS_TOKEN_REGEX)
|
57
61
|
end
|
58
62
|
|
59
63
|
def group_access_token?
|
60
|
-
|
64
|
+
username.match?(GROUP_ACCESS_TOKEN_REGEX)
|
61
65
|
end
|
62
66
|
|
63
67
|
def project_or_group_access_token?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab-username_bot_identifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lee Tickett
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-11-
|
11
|
+
date: 2023-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|