mirror of
https://github.com/konpa/devicon.git
synced 2025-08-22 22:24:43 +02:00
Bugfix/fix in-develop labeler (#1410)
* fix issue not being labeled with in-develop * restrict to only run on merge to develop * Remove Python setup Co-authored-by: Josélio Júnior <76992016+lunatic-fox@users.noreply.github.com> --------- Co-authored-by: Josélio Júnior <76992016+lunatic-fox@users.noreply.github.com> Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
committed by
GitHub
parent
ed1798836c
commit
70df11eef5
6
.github/scripts/in_develop_labeler.py
vendored
6
.github/scripts/in_develop_labeler.py
vendored
@@ -4,8 +4,12 @@ from build_assets import arg_getters, api_handler
|
||||
def main():
|
||||
args = arg_getters.get_in_develop_labeler_args()
|
||||
try:
|
||||
#get pr body
|
||||
pr_body = api_handler.get_pr_by_number(args.token, args.pr_num)["body"]
|
||||
|
||||
# find the issue closing line
|
||||
issue_line = [line for line in args.body.split("\n") if line.startswith("**This PR closes")][0]
|
||||
print(pr_body.split("\n"))
|
||||
issue_line = [line for line in pr_body.split("\n") if line.startswith("**This PR closes")][0]
|
||||
|
||||
print("Issue Line is " + issue_line)
|
||||
issue_pattern = re.compile(r"\d+")
|
||||
|
Reference in New Issue
Block a user