This file contains hidden or 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
| /* | |
| 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 |
This file contains hidden or 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
| /* | |
| 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 |
This file contains hidden or 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
| // 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 |
This file contains hidden or 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
| /* | |
| 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) => { |