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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a1ec1995af9897eecdcddd45731213309d8f5c7787501a206d648d9704141a7
4
- data.tar.gz: 78fcce866f8cfffda2d3bb5eafad4f915c20e7de778368a04a09553a99307aea
3
+ metadata.gz: 9935b476a0772606b980aeef481ec29270bde310311333b2bdb79fee9a24f73e
4
+ data.tar.gz: f0de479d4e5e0ed51514f65dc6b9ca7b48747bf87742211597b55286ef8d83bd
5
5
  SHA512:
6
- metadata.gz: b0e6ae879e8b3f764353b060bf2ab0274cdad602456bb39a52db128a70bc212c15ba9b4fe0a934df3d6612c927767b7a76d89095a8c9f28abdd7f5c250f8db16
7
- data.tar.gz: d0dd071912d5aa683493fee244c70e759bbb45c2a55c02663c96d8fac8930d82c462563d56c48e5c0afff449dcb7cf50ed09e396f85a859c6822f612e6564769
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
- gitLab-llm-Bot
15
+ gitlab-llm-bot
16
16
  gitlab-qa
17
17
  gitlab-release-tools-bot
18
- gitLab-security-bot
19
- gitLabreviewerrecommenderbot
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?(@username)
48
+ KNOWN_GITLAB_COM_BOT_USERNAMES.include?(username)
45
49
  end
46
50
 
47
51
  def ghost?
48
- @username == GHOST_ACCOUNT
52
+ username == GHOST_ACCOUNT
49
53
  end
50
54
 
51
55
  def service_account?
52
- @username.match?(SERVICE_ACCOUNT_REGEX)
56
+ username.match?(SERVICE_ACCOUNT_REGEX)
53
57
  end
54
58
 
55
59
  def project_access_token?
56
- @username.match?(PROJECT_ACCESS_TOKEN_REGEX)
60
+ username.match?(PROJECT_ACCESS_TOKEN_REGEX)
57
61
  end
58
62
 
59
63
  def group_access_token?
60
- @username.match?(GROUP_ACCESS_TOKEN_REGEX)
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.2
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: 2023-11-02 00:00:00.000000000 Z
11
+ date: 2024-01-10 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: