You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the feature or problem you’d like to solve
As the title suggests, using the --edit-last flag for gh pr comment will return no comments found for the current user and fail
One way to circumvent this is to check for existing comments and either comment if no comment already exists or --edit-last if one comment exists
But to me it'd make more sense for the flag to have the logic inside
Proposed solution
While this makes sense, what would possibly make more sense is to comment anyway if no comment is found, as this would be the first comment for the user, and then indeed it'll get edited in the future using the flag
Describe the feature or problem you’d like to solve
As the title suggests, using the
--edit-lastflag forgh pr commentwill returnno comments found for the current userand failOne way to circumvent this is to check for existing comments and either comment if no comment already exists or
--edit-lastif one comment existsBut to me it'd make more sense for the flag to have the logic inside
Proposed solution
While this makes sense, what would possibly make more sense is to comment anyway if no comment is found, as this would be the first comment for the user, and then indeed it'll get edited in the future using the flag