From 4e4b251068b84c401611ce16d8ead116fc757458 Mon Sep 17 00:00:00 2001 From: Michael Kirsanov <94795502+lofimichael@users.noreply.github.com> Date: Sat, 4 Jan 2025 11:42:58 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=89=F0=9F=8E=89=F0=9F=8E=89?= =?UTF-8?q?=F0=9F=8E=89=F0=9F=8E=89=20restore=20GH=20actions=20ong?= =?UTF-8?q?=F0=9F=8E=89=F0=9F=8E=89=F0=9F=8E=89=F0=9F=8E=89=F0=9F=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/emoji-check.yml | 34 ++++++++++ .github/workflows/rizz-check.yml | 103 ++++++++++++++++++++++++++++++ 2 files changed, 137 insertions(+) create mode 100644 .github/workflows/emoji-check.yml create mode 100644 .github/workflows/rizz-check.yml 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