Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor doghouse / github-[pr-]check related code #1798

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

haya14busa
Copy link
Member

@haya14busa haya14busa commented Jun 22, 2024

  1. Implement GitHub Check API flow as CommentService / DiffService
  2. Use the above {Comment,Diff}Service if reviewdog won't talk to
    the doghouse server (reviewdog GitHub App)
  3. Implement github-pr-annotations reporter as {Comment,Diff}Service
  4. It means doghouse related code (code under doghouse/ dir) should be used only when reviewdog
    needs to talk to the doghouse server
  • Updated Unreleased section in CHANGELOG or it's not notable changes.

doghouse/server/doghouse.go Show resolved Hide resolved
service/github/check.go Show resolved Hide resolved
service/github/check.go Show resolved Hide resolved
service/github/check.go Show resolved Hide resolved
service/github/check.go Show resolved Hide resolved
service/github/check.go Show resolved Hide resolved
service/github/check.go Outdated Show resolved Hide resolved
service/github/diff.go Show resolved Hide resolved
@reviewdog reviewdog deleted a comment from github-actions bot Jun 22, 2024
cmd/reviewdog/doghouse.go Show resolved Hide resolved
service/github/check.go Show resolved Hide resolved
doghouse/server/doghouse.go Show resolved Hide resolved
service/github/check.go Show resolved Hide resolved
service/github/check.go Show resolved Hide resolved
service/github/check.go Show resolved Hide resolved
service/github/check.go Show resolved Hide resolved
service/github/check.go Show resolved Hide resolved
service/github/check.go Outdated Show resolved Hide resolved
doghouse/server/doghouse.go Show resolved Hide resolved
service/github/check.go Outdated Show resolved Hide resolved
1. Implement GitHub Check API flow as CommentService / DiffService
2. Use the above {Comment,Diff}Service if reviewdog won't talk to
   the doghouse server
3. Implement github-pr-annotations reporter as {Comment,Diff}Service
4. It means doghouse related code should be used only when reviewdog
   needs to talk to the doghouse server
service/github/check.go Show resolved Hide resolved
service/github/check.go Show resolved Hide resolved
service/github/check.go Show resolved Hide resolved
service/github/check.go Outdated Show resolved Hide resolved
Comment on lines 5 to 9
--- Range
a = 10
a = 11
b = 20
c = 30
---
Copy link
Contributor

Choose a reason for hiding this comment

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

[custom-rdjson] reported by reviewdog 🐶
range test 1 (line only)

Comment on lines +6 to 7
a = 11
b = 20
Copy link
Contributor

Choose a reason for hiding this comment

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

[custom-rdjson] reported by reviewdog 🐶
range test 3 (with line-break)

Comment on lines +6 to 9
a = 11
b = 20
c = 30
---
Copy link
Contributor

Choose a reason for hiding this comment

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

[custom-rdjson] reported by reviewdog 🐶
range test 4 (with line-break)

Comment on lines 5 to 9
--- Range
a = 10
a = 11
b = 20
c = 30
---
Copy link
Contributor

Choose a reason for hiding this comment

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

[custom-rdjson] reported by reviewdog 🐶
range test 1 (line only)

Comment on lines +6 to 7
a = 11
b = 20
Copy link
Contributor

Choose a reason for hiding this comment

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

[custom-rdjson] reported by reviewdog 🐶
range test 3 (with line-break)

Comment on lines +6 to 9
a = 11
b = 20
c = 30
---
Copy link
Contributor

Choose a reason for hiding this comment

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

[custom-rdjson] reported by reviewdog 🐶
range test 4 (with line-break)

@haya14busa haya14busa marked this pull request as ready for review June 29, 2024 15:35
Copy link
Contributor

@shogo82148 shogo82148 left a comment

Choose a reason for hiding this comment

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

LGTM

cmd/reviewdog/doghouse_test.go Outdated Show resolved Hide resolved
cmd/reviewdog/doghouse_test.go Outdated Show resolved Hide resolved
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.

None yet

3 participants