GitLab...stants(3pm)

πŸ’– GitLab::API::v4::Constants β€” the manual page, but make it slay πŸ’–

okay so bestie, welcome to GitLab::API::v4::Constants β€” it's the constants page for the GitLab API v4 Perl library, it lives in section 3pm (that's User Contributed Perl Documentation, for the uninitiated), and honestly? It's giving ✨ very organized ✨. No drama, no tricks, just a bunch of numbers and strings that the rest of the library wants you to use instead of typing raw magic values like a feral little gremlin. 🧚


🌸 SYNOPSIS 🌸

Here's the vibe in three lines. Look at it. Obsessed.

use GitLab::API::v4::Constants qw( :all );

print $GITLAB_ACCESS_LEVEL_GUEST; # 10

So you pull in :all β€” every constant, all at once, main character energy β€” and then $GITLAB_ACCESS_LEVEL_GUEST prints out 10. Simple. Clean. Ate. πŸ’…


πŸ‘‘ CONSTANTS πŸ‘‘

πŸ”₯ $GITLAB_ACCESS_LEVEL_NO_ACCESS

0

That's the "you shall not pass" tier, bestie. Zero. Nothing. Not a single crumb of access. 😭

🫢 $GITLAB_ACCESS_LEVEL_GUEST

10

Guest! You're here, you're cute, you can look but don't touch too much. Lowkey the vibe of a plus-one at a party. ✨

🌸 $GITLAB_ACCESS_LEVEL_REPORTER

20

Reporter level. You can see stuff and report stuff. Very "I'm telling the group chat" energy. πŸ“

πŸ’œ $GITLAB_ACCESS_LEVEL_DEVELOPER

30

Developer! Now we're cooking. You write code, you push things, you're in your era. πŸ’»

🌈 $GITLAB_ACCESS_LEVEL_MASTER

40

Master level. Big permissions, big responsibility, fr fr. πŸ‘‘

πŸŽ€ $GITLAB_ACCESS_LEVEL_OWNER

50

Owner. The literal final boss. This is your repo, your rules, periodt. πŸ’…

⭐ @GITLAB_ACCESS_LEVELS

An array holding all of the values above, in order: $GITLAB_ACCESS_LEVEL_NO_ACCESS, $GITLAB_ACCESS_LEVEL_GUEST, $GITLAB_ACCESS_LEVEL_REPORTER, $GITLAB_ACCESS_LEVEL_DEVELOPER, $GITLAB_ACCESS_LEVEL_MASTER, and $GITLAB_ACCESS_LEVEL_OWNER. So if you ever need to loop over every access level instead of hardcoding six of them like a menace β€” this is her. πŸ¦‹


πŸ”’ $GITLAB_SNIPPET_VISIBILITY_LEVEL_PRIVATE

"private"

Just for you. Locked down. Not sharing, not explaining. πŸ™ˆ

🏠 $GITLAB_SNIPPET_VISIBILITY_LEVEL_INTERNAL

"internal"

Not public, not fully private β€” the "it's complicated" setting. For the people inside the house. 😌

🌍 $GITLAB_SNIPPET_VISIBILITY_LEVEL_PUBLIC

"public"

Out in the world. Everyone can see it. Main character move, no cap. ✨

πŸ¦‹ @GITLAB_SNIPPET_VISIBILITY_LEVELS

An array containing the values for $GITLAB_SNIPPET_VISIBILITY_LEVEL_PRIVATE, $GITLAB_SNIPPET_VISIBILITY_LEVEL_INTERNAL, and $GITLAB_SNIPPET_VISIBILITY_LEVEL_PUBLIC. All three visibility levels, chilling in one array, iconic behavior. πŸŽ€


🫢 SUPPORT 🫢

The support deets live over in "SUPPORT" in GitLab::API::v4 β€” go check the big page, bestie, that's where the help is. πŸ’–

πŸ’œ AUTHORS πŸ’œ

Who made this? See "AUTHORS" in GitLab::API::v4. Credit where credit is due. 🌟

πŸ“œ LICENSE πŸ“œ

The legal tea is in "LICENSE" in GitLab::API::v4. Go read it, be responsible, iykyk. 🌈


πŸŽ€ and that's the whole page, no notes β€” perl v5.36.0, dated 2023-06-13, signed off with love from your favorite manual, GitLab::API::v4::Constants (3pm). bye bestie, go write some slay Perl πŸ’…βœ¨
πŸ“¦ where this page comes from