-
-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
πππππ restore GH actions ongπππππ
- Loading branch information
1 parent
31613e0
commit 4e4b251
Showing
2 changed files
with
137 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: π¨π― Emoji Check π‘π‘ | ||
|
||
on: [pull_request, pull_request_target, push, workflow_dispatch] | ||
|
||
jobs: | ||
check-emoji: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
|
||
- name: Install dependencies | ||
run: npm install emoji-regex | ||
|
||
- name: Check PR title for Emojis π | ||
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target' | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
const emojiRegex = require('emoji-regex'); | ||
const regex = emojiRegex(); | ||
try { | ||
const title = context.payload.pull_request.title; | ||
if (!regex.test(title)) { | ||
core.setFailed('PR title must include an emoji! Examples: "β¨ New feature", "π Fix bug", "π¨ Update styles"'); | ||
} else { | ||
console.log(`β PR title "${title}" contains an emoji - good job! π`); | ||
} | ||
} catch (error) { | ||
core.setFailed(`Error checking emoji: ${error.message}`); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
name: π₯ Rizz Check π― | ||
|
||
on: [pull_request, pull_request_target, push, workflow_dispatch] | ||
|
||
jobs: | ||
check-rizz: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
|
||
- name: Rizz Check π | ||
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target' | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
const slangWords = [ | ||
// Original words | ||
'fanum', | ||
'ohio', | ||
'rizz', | ||
'rizzler', | ||
'gyatt', | ||
'ong', | ||
// Internet/Gaming terms | ||
'brain rot', | ||
'skibidi', | ||
'sigma', | ||
'sus', | ||
'noob', | ||
'yeet', | ||
'simp', | ||
'og', | ||
// Personality/Characteristics | ||
'mewing', | ||
'aura', | ||
'delulu', | ||
'savage', | ||
'pookie', | ||
'chad alpha', | ||
'mog', | ||
// Common expressions | ||
'bruh', | ||
'salty', | ||
'ate', | ||
'zang', | ||
'bet', | ||
'lit', | ||
'low key', | ||
'bop', | ||
'ick', | ||
'cringe', | ||
'opp', | ||
'twin', | ||
'sheesh', | ||
'vibe', | ||
'bussin', | ||
'glaze', | ||
'dog water', | ||
'slay', | ||
'fam', | ||
'yapping', | ||
'yap' | ||
// Compound terms | ||
'skibidi ohio rizz', | ||
'skibidi rizz', | ||
'what the sigma', | ||
'fanum tax', | ||
'negative aura', | ||
'mad lit', | ||
'just put the fries in the bag', | ||
'hits different', | ||
// Truth/Lie related | ||
'cap', | ||
'no cap', | ||
// Style/Status | ||
'drip', | ||
'flex', | ||
'tea', | ||
'goat', | ||
'its giving' | ||
]; | ||
try { | ||
const title = context.payload.pull_request.title.toLowerCase(); | ||
const hasSlangWord = slangWords.some(word => title.includes(word.toLowerCase())); | ||
if (!hasSlangWord) { | ||
core.setFailed('β PR title has no rizz'); | ||
} else { | ||
console.log(`β PR title "${title}" is goated ong fr fr no cap`); | ||
} | ||
} catch (error) { | ||
core.setFailed(`Error checking slang words: ${error.message}`); | ||
} |