cli/pkg/cmd/pr
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
..
checkout Fix checkout when URL arg is from fork and cwd is upstream 2025-02-27 16:56:11 +01:00
checks Deprecate ColorScheme.Gray for ColorScheme.Muted 2025-04-06 10:18:48 -04:00
close Remove trailing whitespace 2025-02-13 11:06:27 +05: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
diff Fix tests 2024-08-16 10:11:52 -07:00
edit Replace --project.* flags' name with title in docs (#9443) 2024-08-09 13:55:14 -07:00
list Remove out of scope changes, update list commands 2025-03-31 11:58:30 -04:00
merge Fix: Ensure constant format strings in fmt and printf calls 2025-01-20 16:27:27 +01:00
ready Apply first round of owner/repo#number consistency 2024-03-01 14:03:18 -05:00
reopen Fix breaking test for PR/issue # change 2024-03-01 16:04:24 -05:00
review Deprecate ColorScheme.Gray for ColorScheme.Muted 2025-04-06 10:18:48 -04:00
shared Add --delete-last option to pr comment and issue comment (#10596) 2025-05-01 14:12:55 +01:00
status Rework ref usage when finding and creating PRs 2025-04-15 13:38:10 -06:00
update-branch chore: remove redundant word in comment 2025-03-12 16:13:46 +08:00
view Add closingIssuesReferences JSON field to pr view (#10544) 2025-04-29 11:48:20 +01:00
pr.go Rename package directory and files 2024-07-17 18:52:23 +01:00