Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh pr comment --edit-last does not proceed if no comment already exists for the user #10370

Copy link
Copy link

Description

@EdouardF
Issue body actions

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

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

enhancementa request to improve CLIa request to improve CLIgh-issuerelating to the gh issue commandrelating to the gh issue commandgh-prrelating to the gh pr commandrelating to the gh pr commandhelp wantedContributions welcomeContributions welcome

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

Morty Proxy This is a proxified and sanitized view of the page, visit original site.