Skip to content

Commit

Permalink
Merge pull request #99 from hipstersmoothie/non-required-args
Browse files Browse the repository at this point in the history
url isn't required for pr or pr-check
  • Loading branch information
hipstersmoothie authored Dec 18, 2018
2 parents cf8e4bc + e395418 commit fcc94fa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/pages/auto-pr-check.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ auto pr-check --pr 24 --url http://your-ci.com
Options

--pr number [required] The pull request number you want the labels of
--url string [required] URL to associate with this status
--url string URL to associate with this status
--onlyPublishWithReleaseLabel Only bump version if 'release' label is on pull request
--major string The name of the tag for a major version bump
--minor string The name of the tag for a minor version bump
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/auto-pr.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Options
--sha string Specify a custom git sha. Defaults to the HEAD for a git repo in the current
repository
--pr number [required] The pull request number you want the labels of
--url string [required] URL to associate with this status
--url string URL to associate with this status
--state string [required] State of the PR. ['pending', 'success', 'error', 'failure']
--description string [required] A description of the status
--context string [required] A string label to differentiate this status from others
Expand Down
6 changes: 3 additions & 3 deletions src/cli/args.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ const commands: ICommand[] = [
{
name: 'pr-check',
summary: 'Check that a pull request has a SemVer label',
require: ['pr', 'url'],
require: ['pr'],
options: [
pr,
url,
Expand All @@ -239,7 +239,7 @@ const commands: ICommand[] = [
{
name: 'pr',
summary: 'Set the status on a PR commit',
require: ['pr', 'state', 'description', 'context', 'url'],
require: ['pr', 'state', 'description', 'context'],
options: [
{
name: 'sha',
Expand Down Expand Up @@ -272,7 +272,7 @@ const commands: ICommand[] = [
...defaultOptions
],
examples: [
`{green $} auto pr \\\\ \n --pr 32 \\\\ \n --url http://your-ci.com/build/123 \\\\ \n --state pending \\\\ \n --description "Build still running..." \\\\ \n --context build-check`
`{green $} auto pr \\\\ \n --pr 32 \\\\ \n --state pending \\\\ \n --description "Build still running..." \\\\ \n --context build-check`
]
},
{
Expand Down

0 comments on commit fcc94fa

Please sign in to comment.