Replies: 10 comments
-
crictical (#8b0000) |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
enhancement - For indicating improvements. (#FFD700) |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
These are the labels that are considered to be common to all repos. If there are other labels that you think will be suitable for the general public, please contact us. |
Beta Was this translation helpful? Give feedback.
-
With this python script, you can add labels to your repos faster Prerequisites:Before running this script, you need to obtain a Personal Access Token (PAT) from GitHub to perform operations via the GitHub API. This token must have the appropriate permissions to manage repositories. Below are the step-by-step instructions on how to obtain your token:
This token will be used in the script above to perform the specified operations. import requests
import json
# Your GitHub username and repo name.
username = "octoposprime"
repo = "<your-tem's-repo-name>"
# repo = "op-fe-shared" (e.g.)
# Your access token from GitHub.
token = "your-token-here"
# Add your tags here. I added a few tags as an example.
labels = [
{
"label": "feature",
"description": "Proposal or implementation of new features",
"color": "28a745"
},
{
"label": "ui/ux",
"description": "Improvements to user interface or experience",
"color": "B32F99"
},
{
"label": "performance",
"description": "Enhancements to system performance",
"color": "6f42c1"
},
{
"label": "security",
"description": "Identification or resolution of security concerns",
"color": "d73a49"
},
{
"label": "research",
"description": "Investigation or exploration of new concepts, techniques, or approaches",
"color": "6a737d"
},
{
"label": "fix",
"description": "Identification and resolution of bugs",
"color": "2BBB8D"
},
{
"label": "style",
"description": "Improvements to overall readability and consistency",
"color": "a61e4d"
},
{
"label": "config",
"description": "Updates or changes to system configurations",
"color": "fd7e14"
},
{
"label": "monitoring",
"description": "System monitoring or metrics collection",
"color": "28a745"
},
{
"label": "refactor",
"description": "Improvements or restructuring of existing functionality",
"color": "bba612"
},
{
"label": "build",
"description": "Configuration or setup related to the build process",
"color": "6a737d"
},
{
"label": "integration",
"description": "Tasks related to integrating with other systems or services",
"color": "6f42c1"
},
{
"label": "change",
"description": "Changes or enhancements to existing features",
"color": "60AD72"
},
{
"label": "cross team",
"description": "Collaboration required between teams",
"color": "56AB5F"
},
{
"label": "not reproducible",
"description": "Issues unable to be reproduced again",
"color": "f9d0c4"
},
{
"label": "parent issue",
"description": "Issue with sub-tasks",
"color": "595068"
},
{
"label": "sub-issue",
"description": "Sub-task within a larger task",
"color": "118F8E"
},
{
"label": "testing",
"description": "Tasks or issues for testing system functionality and reporting any identified issues",
"color": "D3CCF8"
},
{
"label": "internal feedback",
"description": "Feedback identified internally",
"color": "D7478D"
},
{
"label": "user feedback",
"description": "Feedback reported by users or stakeholders",
"color": "9A5F9F"
},
{
"label": "planning",
"description": "Issues or tasks in the planning phase",
"color": "d4d4d4"
},
{
"label": "development",
"description": "Issues or tasks currently in active development",
"color": "2cbe4e"
},
{
"label": "deployment",
"description": "Issues or tasks related to deployment to production or release",
"color": "007bff"
},
{
"label": "critical",
"description": "Issues requiring immediate attention",
"color": "8b0000"
},
{
"label": "high priority",
"description": "Urgent issues needing immediate attention",
"color": "C61700"
},
{
"label": "medium priority",
"description": "Important issues to be addressed soon",
"color": "D93F0B"
},
{
"label": "low priority",
"description": "Minor issues, can be addressed later",
"color": "FDCC21"
},
{
"label": "scalability",
"description": "Enhancements to system scalability and capacity",
"color": "20B2AA"
},
{
"label": "compliance",
"description": "Ensuring adherence to standards and regulations",
"color": "9370DB"
},
{
"label": "analysis",
"description": "Data analysis or exploration for insights",
"color": "00FFFF"
},
{
"label": "deployment-strategy",
"description": "Planning and implementing deployment strategies",
"color": "FF6347"
},
{
"label": "formatting",
"description": "Improvements to content readability and organization",
"color": "6495ED"
},
{
"label": "configuration",
"description": "Updates or changes to system settings and configurations",
"color": "FFA500"
},
{
"label": "performance-optimization",
"description": "Optimizing system performance and efficiency",
"color": "FF69B4"
}
]
# GitHub API URL
url = f"https://api.github.com/repos/{username}/{repo}/labels"
# Process each label in a loop and add it to GitHub.
for label in labels:
# Convert the label data to JSON format.
data = json.dumps({
"name": label["label"],
"description": label["description"],
"color": label["color"]
})
# Make the POST request.
response = requests.post(url, data=data, headers={
"Authorization": f"token {token}",
"Accept": "application/vnd.github.v3+json"
})
# Check the response.
if response.status_code == 201:
print(f'Label added successfully: {label["label"]}')
else:
print(f'Error adding label: {label["label"]}. Error: {response.content}')
|
Beta Was this translation helpful? Give feedback.
-
Below are the labels we created for the design team. These labels cover 2D and 3D in a common way. We only labeled 2D and 3D to determine which drawing program the design belongs to.
|
Beta Was this translation helpful? Give feedback.
-
Balance (Changes or fixes related to balance): (#ff6347) |
Beta Was this translation helpful? Give feedback.
-
Here is Labels for op-em-solid Repository
|
Beta Was this translation helpful? Give feedback.
-
How about adding the following to the label section?
@octoposprime/design
@octoposprime/design-jr
@octoposprime/design-tl
@octoposprime/be
@octoposprime/be-jr
@octoposprime/be-tl
@octoposprime/mo
@octoposprime/mo-jr
@octoposprime/mo-tl
@octoposprime/devops
@octoposprime/devops-jr
@octoposprime/devops-tl
@octoposprime/game
@octoposprime/game-jr
@octoposprime/game-tl
@octoposprime/em
@octoposprime/em-jr
@octoposprime/em-tl
@octoposprime/web
@octoposprime/web-jr
@octoposprime/web-tl
@octoposprime/fe
@octoposprime/fe-jr
@octoposprime/fe-tl
@octoposprime/docs
@octoposprime/docs-jr
@octoposprime/docs-tl
@octoposprime/arc
@octoposprime/arc-jr
@octoposprime/arc-tl
Beta Was this translation helpful? Give feedback.
All reactions