diff --git a/.github/workflows/emoji-check.yml b/.github/workflows/emoji-check.yml new file mode 100644 index 00000000..0cbbd1d0 --- /dev/null +++ b/.github/workflows/emoji-check.yml @@ -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}`); + } \ No newline at end of file diff --git a/.github/workflows/rizz-check.yml b/.github/workflows/rizz-check.yml new file mode 100644 index 00000000..14304b24 --- /dev/null +++ b/.github/workflows/rizz-check.yml @@ -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}`); + } \ No newline at end of file