Skip to content

Issue #1038 - Include comment on pr close #2 - #1395

Closed
ghost wants to merge 1 commit into
trunkfrom
unknown repository
Closed

Issue #1038 - Include comment on pr close #2#1395
ghost wants to merge 1 commit into
trunkfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Jul 20, 2020

Copy link
Copy Markdown

Summary

closes #1038

Details

This will add "--comment" option on pr close and pr reopen;


@vilmibm
vilmibm self-requested a review August 19, 2020 16:31

@vilmibm vilmibm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for starting on this!

I'd rather see a UX that is more consistent with our other commands, like:

Attached to a TTY:

$ gh pr close 123
? Would you like to leave a comment?
   Close
> Close with comment
? Comment body [(e) to launch vim]
? Submit [Y/n]

# closes PR with editor-provided comment

$ gh pr close 123
? Would you like to leave a comment?
> Close
   Close with comment

# closes PR with no comment; confirm not needed here

$ gh pr close 123 --comment "foo"
# closes pr, comments "foo"

Unattached to a TTY:

$ gh pr close 123
# closes pr, no comment

$ gh pr close 123 --comment "foo"
# closes pr, comments "foo"

$ gh pr close 123 --comment ""
# closes pr, no prompt for comment, no comment

@vilmibm

vilmibm commented Sep 8, 2020

Copy link
Copy Markdown
Contributor

I'm going to close this as it's gotten rather old; please feel free to re-open as needed.

@vilmibm vilmibm closed this Sep 8, 2020
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.

gh pr close with comment?

1 participant