AliabbasMerchant
ae695e98ce
Fix pr create not using .github/pull_request_template.md
2020-06-18 09:00:56 +05:30
AliabbasMerchant
26987c1434
Fix error when Milestone is empty during PR create
2020-06-11 17:27:18 +05:30
Mislav Marohnić
e19ea12265
Merge remote-tracking branch 'origin' into blank-issue
2020-06-10 12:35:33 +02:00
AliabbasMerchant
64282e7bb2
Fix error while adding Milestone Metadata to PR during create
2020-06-08 10:26:28 +05:30
AliabbasMerchant
4fd051b21d
Issue/PR template selection flow mirrors that of GitHub
2020-05-23 00:25:13 +05:30
AliabbasMerchant
864d74d0b1
Categorize Templates as Legacy and NonLegacy
2020-05-23 00:03:38 +05:30
vilmibm
228d01a037
reenable skipping body prompt for pr/issue
2020-05-18 10:23:20 -05:00
AliabbasMerchant
6effcd4261
Allow choosing a blank issue/pr template
2020-05-18 00:37:28 +05:30
Mislav Marohnić
57e60ab8a1
Merge remote-tracking branch 'origin/master' into issue-metadata-resolve-ids
2020-05-13 17:20:37 +02:00
Mislav Marohnić
00f23b8d86
Store milestones as slice for consistency with other metadata
...
This is for code simplicity. Only 1 milestone per issue or PR is
allowed, like before.
2020-05-12 15:48:59 +02:00
vilmibm
7009321314
review feedback
2020-05-11 17:06:18 -05:00
vilmibm
c8e9768bf5
slopwip on interactive review
2020-05-11 15:28:12 -05:00
Mislav Marohnić
8c84d6881e
Avoid aborting survey if reviewers/assignees/labels/projects/milestones are empty
2020-05-08 18:49:43 +02:00
Mislav Marohnić
1128439cd1
issue/pr create: hide "Add metadata" if viewer does not have triage permission
2020-05-08 18:37:08 +02:00
Mislav Marohnić
1f774b4158
Add spinner while loading metadata
2020-05-08 18:11:57 +02:00
Mislav Marohnić
cedf94f450
Name some values for readability
2020-05-08 17:58:33 +02:00
Mislav Marohnić
df144926b8
Rename data variable to something more descriptive
2020-05-08 17:56:47 +02:00
Mislav Marohnić
716036161b
Rename titleBody (now a misnomer) to something more descriptive
2020-05-08 17:55:46 +02:00
Mislav Marohnić
aeb08529e7
Add wizard that prompts for issue/pr metadata on create
2020-04-27 18:58:25 +02:00
Mislav Marohnić
90c8e0e967
Merge remote-tracking branch 'origin/master' into issue-pr-create-metadata
2020-04-27 14:17:09 +02:00
vilmibm
f26690adc9
support GH_EDITOR
2020-04-22 14:33:56 -05:00
vilmibm
9641eee38a
use more clear name
2020-04-22 14:31:09 -05:00
vilmibm
3c8b87c9c6
respect configured editor
2020-04-22 11:23:14 -05:00
Mislav Marohnić
d3a89b8744
Expand issue create metadata flags to pr create
...
- Includes support `pr create --reviewer <login>`
- Hide "Preview in browser" menu option when any metadata are set
2020-04-17 20:23:57 +02:00
vilmibm
2d90c09f48
review feedback
2020-03-16 15:32:35 -05:00
vilmibm
a23549001e
cleanup
2020-03-13 15:14:32 -05:00
vilmibm
c4c967fa0f
add AskStubber
2020-03-13 15:12:17 -05:00
vilmibm
8769299731
titlebody prepopulation
2020-03-13 15:12:03 -05:00
Dasio
9289ab99f2
Use var syntax when empty struct is initialized
2020-02-24 22:33:22 +01:00
Dasio
8aa46c236e
Init slice with provided capacity if it's known in advance
2020-02-24 22:16:41 +01:00
UmairShahzad
12216fee8c
reset to template if body is empty
2020-02-19 02:16:12 +05:00
Mislav Marohnić
a710893fc1
Rename to cli/cli
2020-01-24 16:08:52 +01:00
Mislav Marohnić
9122bc181c
Migrate away from errors.Wrap()
...
Turns out the "standard" way of wrapping errors in Go is via
`fmt.Errorf("%w")`, which doesn't require an external package and also allows a
finer control of error sentence formatting.
2020-01-23 13:19:28 +01:00
vilmibm
115cc30a8e
rely on iota syntax magic
2020-01-16 14:28:49 -06:00
vilmibm
ffb6b8e29f
move survey extension to its own package and clarify
2020-01-16 14:28:40 -06:00
vilmibm
beeb35e7e2
clean up body prompt text
2020-01-16 14:03:58 -06:00
vilmibm
d8cbb6a6a7
support previewing PRs in the browser
2020-01-14 17:03:53 -06:00
vilmibm
e821d2781a
towards extending survey.Editor behavior
2020-01-14 15:20:11 -06:00
Mislav Marohnić
d5ba3de751
Add template support to issue create, pr create
...
If multiple templates are found, the user is prompted to select one.
The templates are searched for, in order of preference:
- issues:
1. `.github/ISSUE_TEMPLATE/*.md`
2. `.github/ISSUE_TEMPLATE.md`
3. `ISSUE_TEMPLATE/*.md`
4. `ISSUE_TEMPLATE.md`
5. `docs/ISSUE_TEMPLATE/*.md`
6. `docs/ISSUE_TEMPLATE.md`
- pull requests:
1. `.github/PULL_REQUEST_TEMPLATE/*.md`
2. `.github/PULL_REQUEST_TEMPLATE.md`
3. `PULL_REQUEST_TEMPLATE/*.md`
4. `PULL_REQUEST_TEMPLATE.md`
5. `docs/PULL_REQUEST_TEMPLATE/*.md`
6. `docs/PULL_REQUEST_TEMPLATE.md`
The filename matches are case-insensitive.
2019-12-18 22:15:20 +01:00
Mislav Marohnić
48aeff1ca7
Assert stdout separarely from stderr in command tests
...
This stubs stderr separately from stdout in command tests (before those
streams were combined) and improves test assertions around output.
Additionally, no longer use the `cmd.Print*()` family of Cobra functions
because their name sounds like the text will go to stdout, but they
write to stderr instead. Use the more explicit `cmd.ErrOrStderr()` as
output destination instead.
2019-12-16 15:46:42 +01:00
vilmibm
619c42fc87
use iota
2019-11-25 11:33:59 -06:00
vilmibm
633c8c070b
factor out title body prompting
2019-11-20 11:39:42 -06:00