stephencelis / ghi

GitHub Issues on the command line. Use your $EDITOR, not your browser.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ghi comment --delete not working

emoshaya opened this issue · comments

I use ghi in our CI builds to comment on Pull Requests syntax errors. We run the following commands:

  ghi comment "${ghprbPullId}" --delete || true
  ghi comment "${ghprbPullId}" --message "$(cat ${WORKSPACE}/AnsibleLint.txt)"

The first line would delete existing comments if they exist and the second line would comment on the issue. However, the first time this job is run, naturally there are no existing comments found and it will insert the first comment. However, subsequent runs also states "No recent comment found" even though the message/comment from the previous run exists on the PR issue. What's really strange is when I run the --delete on my local machine via command line it detects the previous comment and deletes it but never on our CI build. Any ideas?

I keep getting

No recent comment found.