gitlab-username_bot_identifier 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a1ec1995af9897eecdcddd45731213309d8f5c7787501a206d648d9704141a7
4
- data.tar.gz: 78fcce866f8cfffda2d3bb5eafad4f915c20e7de778368a04a09553a99307aea
3
+ metadata.gz: 3ba564c178ecd9e50331631d14f87f4dac9358c69e553adf244e538cc85d9b5a
4
+ data.tar.gz: 8a8dfae7a2549d2fa51a5b5f6dc3e2d50829ac7ef444bfa1c318b44f0e543539
5
5
  SHA512:
6
- metadata.gz: b0e6ae879e8b3f764353b060bf2ab0274cdad602456bb39a52db128a70bc212c15ba9b4fe0a934df3d6612c927767b7a76d89095a8c9f28abdd7f5c250f8db16
7
- data.tar.gz: d0dd071912d5aa683493fee244c70e759bbb45c2a55c02663c96d8fac8930d82c462563d56c48e5c0afff449dcb7cf50ed09e396f85a859c6822f612e6564769
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
- 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.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-02 00:00:00.000000000 Z
11
+ date: 2023-11-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: