Skip to content

Commit

Permalink
Deprecate python version (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
at-wat authored Aug 3, 2020
1 parent 8243c71 commit 363fed6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions gh_pr_comment/comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@


def post_main():
color_start = '\033[31m' if sys.stderr.isatty() else ''
color_end = '\033[0m' if sys.stderr.isatty() else ''
sys.stderr.write(
color_start
+ '**********************************************\n'
+ ' DEPRECATION WARNING\n'
+ ' gh-pr-comment on PyPi (pip) is deprecated!\n'
+ ' Please use the new version of gh-pr-comment.\n'
+ ' See https://github.com/at-wat/gh-pr-comment/\n'
+ '**********************************************'
+ color_end + '\n\n')

argv = sys.argv
if len(argv) < 3:
sys.stderr.write(
Expand Down
12 changes: 12 additions & 0 deletions gh_pr_comment/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@


def post_main():
color_start = '\033[31m' if sys.stderr.isatty() else ''
color_end = '\033[0m' if sys.stderr.isatty() else ''
sys.stderr.write(
color_start
+ '**********************************************\n'
+ ' DEPRECATION WARNING\n'
+ ' gh-pr-upload on PyPi (pip) is deprecated!\n'
+ ' Please use the new version of gh-pr-upload.\n'
+ ' See https://github.com/at-wat/gh-pr-comment/\n'
+ '**********************************************'
+ color_end + '\n\n')

argv = sys.argv
if len(argv) < 2:
sys.stderr.write('usage: gh-pr-upload filename\n')
Expand Down

0 comments on commit 363fed6

Please sign in to comment.