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 command Usage #1814

Merged
merged 1 commit into from May 9, 2022
Merged

📖 Fix command Usage #1814

merged 1 commit into from May 9, 2022

Conversation

lehors
Copy link
Contributor

@lehors lehors commented Apr 4, 2022

This changes the cmd Usage text to accurately represents the
supported syntax:

Usage:
./scorecard (--repo=<repo> | --local=<folder> | --{npm,pypi,rubygems}=<package_name> ) [--checks=check1,...]
[--show-details] [flags]
...
--repo string repository to check (valid inputs: "owner/repo", "github.com/owner/repo", "https://github.com/owner/repo")
...

Signed-off-by: Arnaud J Le Hors lehors@us.ibm.com

What kind of change does this PR introduce?

Improvement

What is the current behavior?

What is the new behavior (if this is a feature change)?**

  • Tests for the changes have been added (for bug fixes/features)

NA

Which issue(s) this PR fixes

NONE

Special notes for your reviewer

I'm not sure whether to categorize this change as a "Documentation" change given that it is in the code, or a "Bug Fix" given that it is merely changing the Usage text of the command... :-)

Does this PR introduce a user-facing change?

For user-facing changes, please add a concise, human-readable release note to
the release-note

Yes, command Usage is more accurate and makes it easier for user to understand what is supported.

Improved command Usage

@lehors lehors temporarily deployed to integration-test April 4, 2022 13:56 Inactive
@lehors lehors changed the title Fix command Usage 📖 Fix command Usage Apr 4, 2022
@codecov
Copy link

codecov bot commented Apr 4, 2022

Codecov Report

Merging #1814 (1739f87) into main (815de18) will increase coverage by 4.67%.
The diff coverage is 0.00%.

❗ Current head 1739f87 differs from pull request most recent head c78d383. Consider uploading reports for the commit c78d383 to get more accurate results

@@            Coverage Diff             @@
##             main    #1814      +/-   ##
==========================================
+ Coverage   51.27%   55.94%   +4.67%     
==========================================
  Files          80       75       -5     
  Lines        6797     6733      -64     
==========================================
+ Hits         3485     3767     +282     
+ Misses       3081     2715     -366     
- Partials      231      251      +20     

@github-actions
Copy link

github-actions bot commented Apr 4, 2022

Integration tests success for
[3f175f6]
(https://github.com/ossf/scorecard/actions/runs/2090327572)

@justaugustus justaugustus added this to In progress in Scorecard via automation Apr 4, 2022
Copy link
Member

@justaugustus justaugustus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice update, @lehors!
Left a small nit (open to bikeshed on the exact text).

options/flags.go Outdated Show resolved Hide resolved
Scorecard automation moved this from In progress to Review in progress Apr 4, 2022
@lehors lehors temporarily deployed to integration-test April 4, 2022 15:01 Inactive
@lehors lehors temporarily deployed to integration-test April 4, 2022 15:08 Inactive
@github-actions
Copy link

github-actions bot commented Apr 4, 2022

Integration tests success for
[034755e]
(https://github.com/ossf/scorecard/actions/runs/2090699965)

@github-actions
Copy link

github-actions bot commented Apr 4, 2022

Integration tests success for
[7bae203]
(https://github.com/ossf/scorecard/actions/runs/2090717921)

@lehors lehors temporarily deployed to integration-test April 8, 2022 14:08 Inactive
@github-actions
Copy link

github-actions bot commented Apr 8, 2022

Integration tests success for
[b8a652d]
(https://github.com/ossf/scorecard/actions/runs/2115646511)

@github-actions
Copy link

Stale pull request message

@lehors lehors temporarily deployed to integration-test April 19, 2022 05:45 Inactive
@lehors
Copy link
Contributor Author

lehors commented Apr 19, 2022

Nice update, @lehors! Left a small nit (open to bikeshed on the exact text).

@justaugustus I made the change you requested.

@github-actions
Copy link

Integration tests success for
[1739f87]
(https://github.com/ossf/scorecard/actions/runs/2187750617)

Copy link
Contributor

@azeemshaikh38 azeemshaikh38 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @lehors!

@lehors lehors temporarily deployed to integration-test April 28, 2022 20:21 Inactive
@github-actions
Copy link

Integration tests success for
[68c4360]
(https://github.com/ossf/scorecard/actions/runs/2241723574)

@github-actions
Copy link

github-actions bot commented May 9, 2022

Stale pull request message

@lehors lehors temporarily deployed to integration-test May 9, 2022 11:45 Inactive
@lehors
Copy link
Contributor Author

lehors commented May 9, 2022

Same comment as for PR#1813: I realize this isn't the most exciting PR maintainers might dream of but I would advise them to be a bit more diligent in merging PRs from the community. It is not a very pleasant experience to have to keep rebasing your PRs because it is being left unattended by the maintainers. @justaugustus could you please help?
Thanks.

@github-actions
Copy link

github-actions bot commented May 9, 2022

Integration tests success for
[4017217]
(https://github.com/ossf/scorecard/actions/runs/2293929889)

Copy link
Member

@justaugustus justaugustus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lehors lehors temporarily deployed to integration-test May 9, 2022 12:15 Inactive
This changes the cmd Usage text to accurately represents the
supported syntax:

Usage:
  ./scorecard (--repo=<repo> | --local=<folder> | --{npm,pypi,rubygems}=<package_name>)
	 [--checks=check1,...] [--show-details] [flags]
...
      --repo string        repository to check (valid inputs: "owner/repo", "github.com/owner/repo", "https://github.com/owner/repo")
...

Signed-off-by: Arnaud J Le Hors <lehors@us.ibm.com>
@lehors lehors temporarily deployed to integration-test May 9, 2022 12:38 Inactive
@github-actions
Copy link

github-actions bot commented May 9, 2022

Integration tests success for
[cd234b4]
(https://github.com/ossf/scorecard/actions/runs/2294080748)

@github-actions
Copy link

github-actions bot commented May 9, 2022

Integration tests success for
[c78d383]
(https://github.com/ossf/scorecard/actions/runs/2294198210)

@lehors
Copy link
Contributor Author

lehors commented May 9, 2022

Copy link
Member

@justaugustus justaugustus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @lehors!

Scorecard automation moved this from Review in progress to Reviewer approved May 9, 2022
@justaugustus justaugustus merged commit 6d79817 into ossf:main May 9, 2022
Scorecard automation moved this from Reviewer approved to Done May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants