gitlab-username_bot_identifier 1.0.2 → 1.0.4
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: 9935b476a0772606b980aeef481ec29270bde310311333b2bdb79fee9a24f73e
|
4
|
+
data.tar.gz: f0de479d4e5e0ed51514f65dc6b9ca7b48747bf87742211597b55286ef8d83bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d08e1a0b66ea8e6cbeb69d5ad7d33a109e5d2ab7980921cdc72d6fe79a78e7a1b8981d4a22f176ec77c67b320970b3720f7629c89ec88a39ebff345a2a5ca8f4
|
7
|
+
data.tar.gz: f7caddf751e71b6356d7a92a952c623711d3e1bbf43db15c7d4199754918df369a89f20e8812fe3e4f9e2152f14fd9c9f38a45d58b796a559caa678e464f6a08
|
@@ -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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lee Tickett
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|