Skip to content

Commit ddaa667

Browse files
committed
[+] manually specify a pull request
1 parent d4340c5 commit ddaa667

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
### `1.6.4`
2+
- Use coverage<4 on 3.0–3.2, as 4 drops support by @gsnedders
3+
- add `--pr` argument to manually specify a pull request
4+
5+
### `1.6.3`
26
- fix gitlab project directory
37
- fallback on git branch/commit
48
- fix using gcov_exec

codecov/__init__.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
pass
3131

3232

33-
version = VERSION = __version__ = '1.6.3'
33+
version = VERSION = __version__ = '1.6.4'
3434

3535
COLOR = True
3636

@@ -225,6 +225,7 @@ def main(*argv, **kwargs):
225225
advanced.add_argument('--commit', '-c', default=None, help="Commit sha, set automatically")
226226
advanced.add_argument('--branch', '-b', default=None, help="Branch name")
227227
advanced.add_argument('--build', default=None, help="Specify a custom build number to distinguish ci jobs, provided automatically for supported ci companies")
228+
advanced.add_argument('--pr', default=None, help="Specify a custom pr number, provided automatically for supported ci companies")
228229

229230
enterprise = parser.add_argument_group('======================== Enterprise ========================')
230231
enterprise.add_argument('--slug', '-r', default=os.getenv("CODECOV_SLUG"), help="Specify repository slug for Enterprise ex. owner/repo")
@@ -455,6 +456,9 @@ def main(*argv, **kwargs):
455456
if codecov.branch:
456457
query['branch'] = codecov.branch
457458

459+
if codecov.pr:
460+
query['pr'] = codecov.pr
461+
458462
if codecov.root:
459463
root = codecov.root
460464

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from setuptools import setup
33
import sys
44

5-
version = '1.6.3'
5+
version = '1.6.4'
66
classifiers = ["Development Status :: 5 - Production/Stable",
77
"Environment :: Plugins",
88
"Intended Audience :: Developers",

0 commit comments

Comments
 (0)