Skip to content

Instantly share code, notes, and snippets.

View phpwalter's full-sized avatar
🏠
Working from home

Walter phpwalter

🏠
Working from home
  • Chicago
View GitHub Profile
@phpwalter
phpwalter / github.milestone.delete
Created February 5, 2026 02:17
Completly deletes all MILESTONES within a given project
/*
Before running:
1. Go to your GitHub Settings > Developer Settings > Personal Access Tokens (classic).
[https://github.com/settings/tokens]
2. GENERATE NEW TOKEN -> GENERATE NEW TOKEN [not classic!]
3. name it "labels"
4. Experation: tommorow
5. Select ONLY SELECT REPOSITORIES: your target repository
6. + ADD PERMISSIONS
7. Select ISSUES
@phpwalter
phpwalter / github.label.import
Last active February 4, 2026 21:28
Import Github Labels
/*
Before running:
1. Go to your GitHub Settings > Developer Settings > Personal Access Tokens (classic).
[https://github.com/settings/tokens]
2. GENERATE NEW TOKEN -> GENERATE NEW TOKEN [not classic!]
3. name it "labels"
4. Experation: tommorow
5. Select ONLY SELECT REPOSITORIES: your target repository
6. + ADD PERMISSIONS
7. Select ISSUES
@phpwalter
phpwalter / github.label.delete.js
Created February 4, 2026 05:30
Completly deletes all LABLELS within a given project
// 1. CONFIGURATION
// Generate a token at: https://github.com/settings/tokens
// Scope required: 'repo' (or 'public_repo' if public)
const CONFIG = {
token: "YOUR_ACCESS_TOKEN_HERE",
owner: "USERNAME_OR_ORG",
repo: "REPOSITORY_NAME"
};
// 2. THE SCRIPT
@phpwalter
phpwalter / github.label.export.js
Last active January 31, 2026 05:17
Export Github Labels
/*
Before running:
1. go to your LABELS page
[yourname/your_project/labels/]
2. Opn browser console
3. paste and run the script
4. Copy results [already in clipboard] into file and save
*/
const rgbToHex = (rgb) => {