-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] feat: add reply w/
Reviewed-by
to subset of patches
Draft commit to implement the possibility to only reply to a subset of patches from a patchset with the `Reviewed-by` tag. Previously, it was only possible to reply to every patch in the series. Now, hitting the lowercase `r` key results in the current patch being (un)staged to be replied with the tag, whilst hitting the uppercase `R` key results in all patches being (un)staged. Beside the button "[x] reviewed-by" in the "Actions" tab there is a display of the number of the patches that are staged in gray, e.g., if the patches 1, 2, and 7 are staged, the button will look like ``` [x] reviewed-by (1,2,7) ``` This commit maybe will need to broken in two or more commit, but will probably need some refactoring. The user experience must be reviewed and I can't say for sure if I am not complicating the implementation unnecessarily, as I had to introduce considerable changes (maybe a bad smell of the project quality...). Closes: #78 Signed-off-by: David Tadokoro <[email protected]>
- Loading branch information
1 parent
20d9c0e
commit 176a60b
Showing
6 changed files
with
95 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -534,11 +534,14 @@ fn should_prepare_reply_patchset_with_reviewed_by() { | |
.unwrap(), | ||
]; | ||
|
||
let patches_to_reply = vec![true; patches.len()]; | ||
|
||
let git_reply_commands = prepare_reply_patchset_with_reviewed_by( | ||
&lore_api_client, | ||
tmp_dir, | ||
target_list, | ||
&patches, | ||
&patches_to_reply, | ||
"Bar Foo <[email protected]>", | ||
"--dry-run --suppress-cc=all", | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters