Skip to content

Commit

Permalink
requesting the json data from the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
karlcow committed Jul 11, 2014
1 parent e9281be commit e2a13e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion import.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import argparse
import sys
from importer import validate_json, print_labels
from importer import validate_json, print_labels, create_issue, get_as_json, format_issue

if __name__ == '__main__':
parser = argparse.ArgumentParser()
Expand All @@ -23,7 +24,9 @@
parser.add_argument('-d', '--dry-run', action='store_true',
help='No modifications, just testing')
args = parser.parse_args()
# Printing the list of existing labels on Github
if args.labels:
print_labels()
sys.exit(0)
validate_json(args.issue_file, args.force)
# Let's get the data
json_data = get_as_json(args.issue_file)

0 comments on commit e2a13e3

Please sign in to comment.