Skip to content

Commit 3d4cbfc

Browse files
committed
override git tag
1 parent 006c0f6 commit 3d4cbfc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

codecov/__init__.py

+4
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ def main(*argv, **kwargs):
200200
advanced.add_argument('--branch', '-b', default=None, help="Branch name")
201201
advanced.add_argument('--build', default=None, help="Specify a custom build number to distinguish ci jobs, provided automatically for supported ci companies")
202202
advanced.add_argument('--pr', default=None, help="Specify a custom pr number, provided automatically for supported ci companies")
203+
advanced.add_argument('--tag', default=None, help="Git tag")
203204

204205
enterprise = parser.add_argument_group('======================== Enterprise ========================')
205206
enterprise.add_argument('--slug', '-r', default=os.getenv("CODECOV_SLUG"), help="Specify repository slug for Enterprise ex. owner/repo")
@@ -460,6 +461,9 @@ def main(*argv, **kwargs):
460461
if codecov.pr:
461462
query['pr'] = codecov.pr
462463

464+
if codecov.tag:
465+
query['tag'] = codecov.tag
466+
463467
if codecov.root:
464468
root = codecov.root
465469

0 commit comments

Comments
 (0)