Skip to content

Conversation

sirodoht
Copy link
Contributor

This change prevents the PR workflow (Validate Pull Request) from failing with:

Error: Unhandled error: HttpError: Validation Failed: "Can not dismiss a dismissed pull request review"

For example, this happens in my other PR: #7704

Here's the workflow that fails:

https://github.com/jj-vcs/jj/actions/runs/18632398780/job/53118936287?pr=7704

In this commit it's fixed by first checking if the PR is in a dismissable state, ie: latestReview.state === 'CHANGES_REQUESTED'

However, I'm not 100% sure this works. I'm not sure what's the best way to test it. Open to ideas :)

This change prevents the PR workflow (Validate Pull Request) from
failing with:

> Error: Unhandled error: HttpError: Validation Failed: "Can not
> dismiss a dismissed pull request review"

We fix this by first checking if the PR is in a dismissable state using
latestReview.state === 'CHANGES_REQUESTED'
@sirodoht sirodoht requested a review from a team as a code owner October 19, 2025 16:11
@PhilipMetzger
Copy link
Contributor

cc @icorbrey since I wanted to ping you on this in the Discord anyway.

Copy link
Contributor

@icorbrey icorbrey left a comment

Choose a reason for hiding this comment

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

Hey thanks for fixing this! I thought I'd put a PR out with some changes but I can't find it now, so I appreciate it

Copy link
Member

@martinvonz martinvonz left a comment

Choose a reason for hiding this comment

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

Thanks

@martinvonz martinvonz added this pull request to the merge queue Oct 21, 2025
Merged via the queue into jj-vcs:main with commit 3d4bb85 Oct 21, 2025
29 checks passed
Sign up for free to 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.

4 participants