by default skip projects that have had tags applied
There is no need to show the contents of a release if the tag has already been applied. Provide a command line option to be used when running the tool interactively to disable this behavior, just in case. Change-Id: I0db8075a750cba76eef40eb7a5656307ffe78992 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
f570dec981
commit
c69d3b5fc8
@ -196,6 +196,13 @@ def main():
|
||||
action='store_false',
|
||||
help='do not remove temporary files',
|
||||
)
|
||||
parser.add_argument(
|
||||
'--no-shortcut',
|
||||
dest='shortcut',
|
||||
default=True,
|
||||
action='store_false',
|
||||
help='if a tag has been applied, skip the repo',
|
||||
)
|
||||
parser.add_argument(
|
||||
'input',
|
||||
nargs='*',
|
||||
@ -319,6 +326,9 @@ def main():
|
||||
if tag_exists:
|
||||
print('%s %s exists on git server already' %
|
||||
(project['repo'], new_release['version']))
|
||||
if args.shortcut:
|
||||
print('skipping further processing')
|
||||
continue
|
||||
|
||||
# Start by checking out master, always. We need the repo
|
||||
# checked out before we can tell if the stable branch
|
||||
|
Loading…
Reference in New Issue
Block a user