Skip to content

add -edit-comment-regex flag to edit existing comments - #26

Merged
Andriy Knysh (aknysh) merged 1 commit into
cloudposse:masterfrom
joemiller:edit-comment
Apr 10, 2021
Merged

add -edit-comment-regex flag to edit existing comments#26
Andriy Knysh (aknysh) merged 1 commit into
cloudposse:masterfrom
joemiller:edit-comment

Conversation

@joemiller

@joemillerjoe miller (joemiller) commented Apr 10, 2021

Copy link
Copy Markdown
Contributor

New flag -edit-comment-regex. Similar to -delete-comment-regex but edit existing comment(s) instead of deleting / recreating.

If there are no matching comments a new comment is created so that the call is idempotent. Users can run the same command in a CI pipeline to create or update comments.

I updated the readme.yaml but did not commit a regenerated README.md. There were too many differences (like missing badges) that I thought something might be wrong w/ my local setup.

I updated the google/go-github lib to the latest v34.0.0 to fix what I thought was a bug but turned out not to be. The code should work fine on v17.0.0 if that needs to be backed out.

closes#24

Similar to -delete-comment-regex but edit existing comment(s) instead of
deleting / recreating
@joemillerjoe miller (joemiller) changed the title add -edit-comment-regex flag to edit in place commentsadd -edit-comment-regex flag to edit existing commentsApr 10, 2021

@aknyshAndriy Knysh (aknysh) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

is it possible to support an edit mode instead of delete and replace?

2 participants

@joemiller@aknysh