Simply imports in dev github script (#21702)

This commit is contained in:
Jed Cunningham authored and GitHub committed 2022-02-20 22:19:57 +01:00
1 parent a0fb0bbad3
commit a282329682
1 file changed
+2 -11
+2 -11
View File
@@ -25,6 +25,8 @@ import sys
from collections import Counter, defaultdict
from typing import List, Optional
import git
import rich_click as click
from github import Github
from github.Issue import Issue
from github.PullRequest import PullRequest
@@ -33,17 +35,6 @@ GIT_COMMIT_FIELDS = ['id', 'author_name', 'author_email', 'date', 'subject', 'bo
GIT_LOG_FORMAT = '%x1f'.join(['%h', '%an', '%ae', '%ad', '%s', '%b']) + '%x1e'
pr_title_re = re.compile(r".*\((#[0-9]{1,6})\)$")
try:
import rich_click as click
except ImportError:
print("Could not find the click library. Run 'sudo pip install click' to install.")
sys.exit(-1)
try:
import git
except ImportError:
print("Could not import git. Run 'sudo pip install gitpython' to install")
sys.exit(-1)
STATUS_COLOR_MAP = {
'Closed': 'green',