cli/pkg/cmd/issue
Sinan Sonmez (Chaush) 0a1e7a1fdc
Add --delete-last option to pr comment and issue comment (#10596)
* deletion for issues with confirmation flag

* add handling for interaction case

* finish implementation for issues

* finish the implementation for issues

* finalize the implementation for PR

* fix missing --yes flag for PR

* address PR comments related to feedbacks

* improve CommentablePreRun for pre checks

* improve confirmation prompt and truncate long comment body

* address PR comments on tests

* Truncate comment for confirmation prompt

Signed-off-by: Babak K. Shandiz <babakks@github.com>

* Improve test case descriptions

Signed-off-by: Babak K. Shandiz <babakks@github.com>

* Fix mock comment body

Signed-off-by: Babak K. Shandiz <babakks@github.com>

* Remove irrelevant prompt stub

Signed-off-by: Babak K. Shandiz <babakks@github.com>

* Use `opts.Interactive` as TTY indicator

Signed-off-by: Babak K. Shandiz <babakks@github.com>

* Fix expected `Interactive` value

Signed-off-by: Babak K. Shandiz <babakks@github.com>

* Polish `TestNewCmdComment`

Signed-off-by: Babak K. Shandiz <babakks@github.com>

---------

Signed-off-by: Babak K. Shandiz <babakks@github.com>
Co-authored-by: Babak K. Shandiz <babakks@github.com>
2025-05-01 14:12:55 +01:00
..
argparsetest Document TestArgParsing 2025-04-17 15:33:44 +02:00
close Issue close early arg parsing 2025-04-17 15:27:39 +02:00
comment Add --delete-last option to pr comment and issue comment (#10596) 2025-05-01 14:12:55 +01:00
create Feature detect v1 projects on web mode issue create 2025-04-17 21:04:08 +02:00
delete Issue delete early arg parsing 2025-04-17 15:27:39 +02:00
develop Issue develop early arg parsing 2025-04-17 15:27:39 +02:00
edit Feature detect v1 projects on issue edit 2025-04-17 21:19:41 +02:00
list [gh issue/pr list] Improve help text 2025-01-30 13:05:18 +05:00
lock Issue lock early arg parsing 2025-04-17 15:27:39 +02:00
pin Issue pin early arg parsing 2025-04-17 15:27:39 +02:00
reopen Issue reopen early arg parsing 2025-04-17 15:27:39 +02:00
shared Remove old issue lookup funcs 2025-04-17 15:27:40 +02:00
status Move config interfaces into gh package (#9060) 2024-05-10 10:39:36 +02:00
transfer Issue transfer early arg parsing 2025-04-17 15:27:39 +02:00
unpin Issue unpin early arg parsing 2025-04-17 15:27:39 +02:00
view Avoid requesting projectCards for issue view 2025-04-17 15:37:48 +02:00
issue.go Group PR, release, and repo subcommands 2022-12-21 14:47:59 +01:00