use define labels in json file and run by executing the script in your logic
Project description
Installation
Example
import github_pr_label
gh_label = github_pr_label.PRLabel()
The Pull Request labels are applied depending on the total lines of code changed (additions + deletions).
label json file
for example label: bot have three status [pass,fail,skip] status: there are three parts to build a label and split by '|' name|colour|description
{
"bot": {
"replace":true,
"pass": "bot:heavy_check_mark:|3CBF00|passed bot test",
"fail": "bot:x:|3CBF00|failed bot test",
"skip": "bot:p:|E50009|bot no required"
},
"size":{
"replace":true,
"XS": "size/XS|3CBF00|<10 lines",
"S": "size/S|5D9801|>10 lines",
"M": "size/M|7F7203|>30 lines",
"L": "size/L|A14C05|>100 lines",
"XL": "size/XL|C32607|>500 lines",
"XXL": "size/XXL|E50009|>1000 lines"
},
}
Size Auto Determination.
Name | Description |
---|---|
size/XS |
Denotes a PR that changes 0-9 lines. |
size/S |
Denotes a PR that changes 10-29 lines. |
size/M |
Denotes a PR that changes 30-99 lines. |
size/L |
Denotes a PR that changes 100-499 lines. |
size/XL |
Denotes a PR that changes 500-999 lines. |
size/XXL |
Denotes a PR that changes 1000+ lines. |
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
github_pr_label-1.0.2.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for github_pr_label-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a274c7a39d60469824f3c83eb6be29469773cd270eb11ffc7ddbee98306e56c1 |
|
MD5 | a70e0d4287634bc22858efcb94dcacbb |
|
BLAKE2b-256 | df14165a1241c62f1a778c9fdb82e6b151851164f8a4b261b1a064891dc2aad6 |