Skip to content

Commit

Permalink
πŸŽ‰πŸŽ‰πŸŽ‰πŸŽ‰πŸŽ‰ restore GH actions ongπŸŽ‰πŸŽ‰πŸŽ‰πŸŽ‰πŸŽ‰
Browse files Browse the repository at this point in the history
  • Loading branch information
lofimichael committed Jan 4, 2025
1 parent 31613e0 commit 4e4b251
Show file tree
Hide file tree
Showing 2 changed files with 137 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/emoji-check.yml
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}`);
}
103 changes: 103 additions & 0 deletions .github/workflows/rizz-check.yml
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}`);
}

0 comments on commit 4e4b251

Please sign in to comment.