This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new a282329 Simply imports in dev github script (#21702)
a282329 is described below
commit a2823296820dbb73443ff57c784c52dfd007bd08
Author: Jed Cunningham <[email protected]>
AuthorDate: Sun Feb 20 14:19:57 2022 -0700
Simply imports in dev github script (#21702)
---
dev/airflow-github | 13 ++-----------
1 file changed, 2 insertions(+), 11 deletions(-)
diff --git a/dev/airflow-github b/dev/airflow-github
index d99dc80..9669824 100755
--- a/dev/airflow-github
+++ b/dev/airflow-github
@@ -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',