Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: CLI option names for uploader #969

Merged
merged 1 commit into from May 9, 2023

Conversation

kleisauke
Copy link
Contributor

Only single character aliases can be specified with a single dash (-).

See:
https://github.com/codecov/codecov-action/pull/955/files#r1181122091
yargs/yargs#1781 (comment)

@codecov
Copy link

codecov bot commented May 2, 2023

Codecov Report

Merging #969 (b9e5403) into main (b4dfea7) will increase coverage by 0.44%.
The diff coverage is 100.00%.

❗ Current head b9e5403 differs from pull request most recent head 315e747. Consider uploading reports for the commit 315e747 to get more accurate results

@@            Coverage Diff             @@
##             main     #969      +/-   ##
==========================================
+ Coverage   95.38%   95.83%   +0.44%     
==========================================
  Files           4        4              
  Lines         195      192       -3     
  Branches       57       56       -1     
==========================================
- Hits          186      184       -2     
+ Misses          9        8       -1     
Flag Coverage Δ
demo 80.00% <ø> (ø)
macos-latest 95.83% <100.00%> (+0.44%) ⬆️
script 97.17% <100.00%> (+0.50%) ⬆️
ubuntu-latest 95.83% <100.00%> (+0.44%) ⬆️
version 80.00% <ø> (ø)
windows-latest 95.83% <100.00%> (+0.44%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/buildExec.ts 98.60% <100.00%> (+0.65%) ⬆️

@thomasrockhu-codecov
Copy link
Contributor

thomasrockhu-codecov commented May 4, 2023

@kleisauke thanks for this. I think this is actually fine as - as opposed to --. But, I do think in shell this is normal to add --. The underlying uploader doesn't actually need yargs either, I need to remove that.

So all that said, I'm fine with this change. I think you may need to rebuild npm run build and push up a new commit to resolve the conflict

@kleisauke
Copy link
Contributor Author

Rebased and ran npm run build as requested.

I think this is actually fine as - as opposed to --. But, I do think in shell this is normal to add --.

This is actually a bug fix, rather than a convention. Try this:

$ codecov -g --gx foo
...
[2023-05-04T07:21:52.162Z] ['error'] There was an error running the uploader: foo is not installed, cannot process files
$ codecov -g -gx foo
...
[2023-05-04T07:21:53.372Z] ['error'] There was an error running the uploader: No gcov files found

So with a single dash the whole option is ignored.

Only single character aliases can be specified with a single dash (-).
@thomasrockhu-codecov thomasrockhu-codecov merged commit 1c34415 into codecov:main May 9, 2023
8 checks passed
@kleisauke kleisauke deleted the fix-cli-option-names branch May 9, 2023 09:14
fuxingloh pushed a commit to BirthdayResearch/jellyfishsdk that referenced this pull request May 19, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [codecov/codecov-action](https://togithub.com/codecov/codecov-action)
| action | patch | `v3.1.1` -> `v3.1.4` |

---

### Release Notes

<details>
<summary>codecov/codecov-action</summary>

###
[`v3.1.4`](https://togithub.com/codecov/codecov-action/releases/tag/v3.1.4):
3.1.4

[Compare
Source](https://togithub.com/codecov/codecov-action/compare/v3.1.3...v3.1.4)

#### What's Changed

- build(deps-dev): bump
[@&#8203;types/node](https://togithub.com/types/node) from 18.15.12 to
18.16.3 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#970
- Fix typo in README.md by [@&#8203;hisaac](https://togithub.com/hisaac)
in
[codecov/codecov-action#967
- fix: add back in working dir by
[@&#8203;thomasrockhu-codecov](https://togithub.com/thomasrockhu-codecov)
in
[codecov/codecov-action#971
- fix: CLI option names for uploader by
[@&#8203;kleisauke](https://togithub.com/kleisauke) in
[codecov/codecov-action#969
- build(deps-dev): bump
[@&#8203;types/node](https://togithub.com/types/node) from 18.16.3 to
20.1.0 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#975
- build(deps-dev): bump
[@&#8203;types/node](https://togithub.com/types/node) from 20.1.0 to
20.1.2 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#979
- build(deps-dev): bump
[@&#8203;types/node](https://togithub.com/types/node) from 20.1.2 to
20.1.4 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#981
- release: 3.1.4 by
[@&#8203;thomasrockhu-codecov](https://togithub.com/thomasrockhu-codecov)
in
[codecov/codecov-action#983

#### New Contributors

- [@&#8203;hisaac](https://togithub.com/hisaac) made their first
contribution in
[codecov/codecov-action#967
- [@&#8203;kleisauke](https://togithub.com/kleisauke) made their first
contribution in
[codecov/codecov-action#969

**Full Changelog**:
codecov/codecov-action@v3.1.3...v3.1.4

###
[`v3.1.3`](https://togithub.com/codecov/codecov-action/releases/tag/v3.1.3):
3.1.3

[Compare
Source](https://togithub.com/codecov/codecov-action/compare/v3.1.2...v3.1.3)

#### What's Changed

- build(deps-dev): bump jest-junit from 15.0.0 to 16.0.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#957
- build(deps): bump openpgp from 5.7.0 to 5.8.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#958
- build(deps-dev): bump
[@&#8203;types/node](https://togithub.com/types/node) from 18.15.10 to
18.15.12 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#959
- fix: allow for aarch64 build by
[@&#8203;thomasrockhu-codecov](https://togithub.com/thomasrockhu-codecov)
in
[codecov/codecov-action#960
- chore(release): bump to 3.1.3 by
[@&#8203;thomasrockhu-codecov](https://togithub.com/thomasrockhu-codecov)
in
[codecov/codecov-action#961

**Full Changelog**:
codecov/codecov-action@v3.1.2...v3.1.3

###
[`v3.1.2`](https://togithub.com/codecov/codecov-action/releases/tag/v3.1.2):
3.1.2

[Compare
Source](https://togithub.com/codecov/codecov-action/compare/v3.1.1...v3.1.2)

#### What's Changed

- build(deps): bump node-fetch from 3.2.4 to 3.2.10 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#835
- build(deps-dev): bump
[@&#8203;types/node](https://togithub.com/types/node) from 16.11.40 to
18.13.0 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#911
- build(deps-dev): bump
[@&#8203;vercel/ncc](https://togithub.com/vercel/ncc) from 0.34.0 to
0.36.1 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#900
- build(deps-dev): bump typescript from 4.7.4 to 4.9.5 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#905
- Update README.md by
[@&#8203;stefanomunarini](https://togithub.com/stefanomunarini) in
[codecov/codecov-action#718
- build(deps): bump openpgp from 5.4.0 to 5.5.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#819
- build(deps): bump ossf/scorecard-action from 1.1.1 to 2.0.4 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#840
- build(deps): bump
[@&#8203;actions/core](https://togithub.com/actions/core) from 1.9.1 to
1.10.0 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#841
- build(deps): bump
[@&#8203;actions/github](https://togithub.com/actions/github) from 5.0.3
to 5.1.1 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#843
- build(deps): bump actions/upload-artifact from 3.1.0 to 3.1.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#896
- build(deps-dev): bump jest-junit from 13.2.0 to 15.0.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#872
- build(deps): bump node-fetch from 3.2.10 to 3.3.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#869
- build(deps): bump decode-uri-component from 0.2.0 to 0.2.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#879
- build(deps): bump json5 from 2.2.1 to 2.2.3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#895
- codeql-analysis.yml by
[@&#8203;minumulasri](https://togithub.com/minumulasri) in
[codecov/codecov-action#898
- build(deps): bump ossf/scorecard-action from 1.1.1 to 2.1.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#889
- build(deps-dev): bump
[@&#8203;types/node](https://togithub.com/types/node) from 18.13.0 to
18.14.0 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#922
- build(deps): bump openpgp from 5.5.0 to 5.7.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#924
- build(deps-dev): bump
[@&#8203;types/node](https://togithub.com/types/node) from 18.14.0 to
18.14.2 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#927
- Remove unsupported path_to_write_report argument by
[@&#8203;jsoref](https://togithub.com/jsoref) in
[codecov/codecov-action#851
- Update README to contain correct information - inputs and negate
feature by
[@&#8203;moshe-azaria-sage](https://togithub.com/moshe-azaria-sage) in
[codecov/codecov-action#901
- build(deps-dev): bump
[@&#8203;types/node](https://togithub.com/types/node) from 18.14.2 to
18.14.6 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#933
- build(deps-dev): bump
[@&#8203;types/node](https://togithub.com/types/node) from 18.14.6 to
18.15.0 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#937
- build(deps-dev): bump
[@&#8203;types/node](https://togithub.com/types/node) from 18.15.0 to
18.15.5 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#945
- build(deps): bump node-fetch from 3.3.0 to 3.3.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#938
- build(deps-dev): bump
[@&#8203;types/node](https://togithub.com/types/node) from 18.15.5 to
18.15.6 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#946
- build(deps-dev): bump
[@&#8203;types/node](https://togithub.com/types/node) from 18.15.6 to
18.15.10 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#947
- build(deps): bump ossf/scorecard-action from 2.1.2 to 2.1.3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#951
- fix: add in all the extra arguments for uploader by
[@&#8203;thomasrockhu-codecov](https://togithub.com/thomasrockhu-codecov)
in
[codecov/codecov-action#955
- chore(release): bump to 3.1.2 by
[@&#8203;thomasrockhu-codecov](https://togithub.com/thomasrockhu-codecov)
in
[codecov/codecov-action#956

#### New Contributors

- [@&#8203;stefanomunarini](https://togithub.com/stefanomunarini) made
their first contribution in
[codecov/codecov-action#718
- [@&#8203;minumulasri](https://togithub.com/minumulasri) made their
first contribution in
[codecov/codecov-action#898
- [@&#8203;jsoref](https://togithub.com/jsoref) made their first
contribution in
[codecov/codecov-action#851
- [@&#8203;moshe-azaria-sage](https://togithub.com/moshe-azaria-sage)
made their first contribution in
[codecov/codecov-action#901

**Full Changelog**:
codecov/codecov-action@v3.1.1...v3.1.2

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/JellyfishSDK/jellyfish).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS41Ny4wIiwidXBkYXRlZEluVmVyIjoiMzUuNzkuMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
fuxingloh pushed a commit to levaintech/sticky that referenced this pull request May 31, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [codecov/codecov-action](https://togithub.com/codecov/codecov-action)
| action | patch | `v3.1.2` -> `v3.1.4` |

---

### Release Notes

<details>
<summary>codecov/codecov-action</summary>

###
[`v3.1.4`](https://togithub.com/codecov/codecov-action/releases/tag/v3.1.4):
3.1.4

[Compare
Source](https://togithub.com/codecov/codecov-action/compare/v3.1.3...v3.1.4)

#### What's Changed

- build(deps-dev): bump
[@&#8203;types/node](https://togithub.com/types/node) from 18.15.12 to
18.16.3 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#970
- Fix typo in README.md by [@&#8203;hisaac](https://togithub.com/hisaac)
in
[codecov/codecov-action#967
- fix: add back in working dir by
[@&#8203;thomasrockhu-codecov](https://togithub.com/thomasrockhu-codecov)
in
[codecov/codecov-action#971
- fix: CLI option names for uploader by
[@&#8203;kleisauke](https://togithub.com/kleisauke) in
[codecov/codecov-action#969
- build(deps-dev): bump
[@&#8203;types/node](https://togithub.com/types/node) from 18.16.3 to
20.1.0 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#975
- build(deps-dev): bump
[@&#8203;types/node](https://togithub.com/types/node) from 20.1.0 to
20.1.2 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#979
- build(deps-dev): bump
[@&#8203;types/node](https://togithub.com/types/node) from 20.1.2 to
20.1.4 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#981
- release: 3.1.4 by
[@&#8203;thomasrockhu-codecov](https://togithub.com/thomasrockhu-codecov)
in
[codecov/codecov-action#983

#### New Contributors

- [@&#8203;hisaac](https://togithub.com/hisaac) made their first
contribution in
[codecov/codecov-action#967
- [@&#8203;kleisauke](https://togithub.com/kleisauke) made their first
contribution in
[codecov/codecov-action#969

**Full Changelog**:
codecov/codecov-action@v3.1.3...v3.1.4

###
[`v3.1.3`](https://togithub.com/codecov/codecov-action/releases/tag/v3.1.3):
3.1.3

[Compare
Source](https://togithub.com/codecov/codecov-action/compare/v3.1.2...v3.1.3)

#### What's Changed

- build(deps-dev): bump jest-junit from 15.0.0 to 16.0.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#957
- build(deps): bump openpgp from 5.7.0 to 5.8.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#958
- build(deps-dev): bump
[@&#8203;types/node](https://togithub.com/types/node) from 18.15.10 to
18.15.12 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[codecov/codecov-action#959
- fix: allow for aarch64 build by
[@&#8203;thomasrockhu-codecov](https://togithub.com/thomasrockhu-codecov)
in
[codecov/codecov-action#960
- chore(release): bump to 3.1.3 by
[@&#8203;thomasrockhu-codecov](https://togithub.com/thomasrockhu-codecov)
in
[codecov/codecov-action#961

**Full Changelog**:
codecov/codecov-action@v3.1.2...v3.1.3

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/BirthdayResearch/sticky).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS41NC4wIiwidXBkYXRlZEluVmVyIjoiMzUuOTUuMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants