Skip to content

Conversation

chitoku-k
Copy link
Contributor

@chitoku-k chitoku-k commented Aug 25, 2024

  • Updated Unreleased section in CHANGELOG or it's not notable changes.

Currently, reviewdog adjusts result paths only with the github-pr-review reporter within GitHub reporters. This is required if the linting is executed inside a sub directory and the result contains path(s) relative to that directory. The following line is where the github-pr-review reporter adjusts the paths:
https://github.com/reviewdog/reviewdog/blob/v0.20.1/service/github/github.go#L107-L108

This PR tries to fix this by adding the same procedure for githubservice.Check (github-check and github-pr-check) as well as adding githubservice.Log that just does this adjustment. Note that adding this procedure to githubutils.GitHubActionLogWriter would break the fallback flow, which is why I added new githubservice.Log instead.

Copy link
Member

@haya14busa haya14busa left a comment

Choose a reason for hiding this comment

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

Sry for the late review. LGTM! Thank you for your contribution!

Can you update CHANGELOG?

Copy link
Member

@haya14busa haya14busa left a comment

Choose a reason for hiding this comment

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

Thanks!

@haya14busa haya14busa merged commit 7243b8d into reviewdog:master Sep 16, 2024
21 checks passed
@review-dog
Copy link
Member

Hi, @chitoku-k! We merged your PR to reviewdog! 🐶
Thank you for your contribution! ✨

We just invited you to join the @reviewdog organization on GitHub.
Accept the invite by visiting https://github.com/orgs/reviewdog/invitation.
By joining the team, you'll be a part of reviewdog community and can help the maintenance of reviewdog.

Thanks again!

@chitoku-k chitoku-k deleted the fix/post-with-git-rel-work-dir branch September 16, 2024 03:43
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.

3 participants