Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

ghi comment -amend doesn't work #366

Open
alphaCTzo7G opened this issue Jul 15, 2018 · 2 comments
Open

ghi comment -amend doesn't work #366

alphaCTzo7G opened this issue Jul 15, 2018 · 2 comments

Comments

@alphaCTzo7G
Copy link

Hi all

Thanks for creating this project.

I recently found that even though there is an option to do a ghi comment --amend it doesn't work.

The way I am doing this is

  1. I have a existing issues say issue TEST #49
  2. while in the git repository, I issue the command ghi comment --amend 49.

However, this gives me the error message

No recent comment found..

However, this is not true, because my git repo does have a lot of comments.

Am I using a wrong command line option or is this by design?

@MahShaaban
Copy link

MahShaaban commented Nov 5, 2018

Test message, edited.

@MahShaaban
Copy link

Hi @alphaCTzo7G.

I think the proper way to use the option --amend with ghi comment command is to place the text right after the option and before the issue number.

usage: ghi comment [options] <issueno>

I created and edited the previous comment using this

$ ghi comment -m "Test message" 366
$ ghi comment --amend "Test message, edited." 366

This works for the "comments", but you might need to use ghi edit to modify the issues themselves.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants