The Wayback Machine - https://web.archive.org/web/20220502211111/https://github.com/go-gitea/gitea/pull/15167
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

Expose resolver via API #15167

Merged
merged 3 commits into from Mar 27, 2021
Merged

Expose resolver via API #15167

merged 3 commits into from Mar 27, 2021

Conversation

Copy link
Contributor

@sotho sotho commented Mar 26, 2021

  • Add a new field to the API to expose the "resolver" of a comment/
    conversation. This is not available in the GitHub API v3.
  • Extend struct to contain "Resolver". Might be empty (nil).
  • Rename "Reviewer" to "Poster" in PullReviewComment to make it
    clear this is the person posting a comment. The API is unchanged
    ('user').
  • Only the first comment of a conversation might have a resolver,
    the others seem to be always nil.

* Add a new field to the API to expose the "resolver" of a comment/
  conversation. This is not available in the GitHub API v3.
* Extend struct to contain "Resolver". Might be empty (nil).
* Rename "Reviewer" to "Poster" in PullReviewComment to make it
  clear this is the person posting a comment. The API is unchanged
  ('user').
* Only the first comment of a conversation might have a resolver,
  the others seem to be always nil.
@6543 6543 added this to the 1.15.0 milestone Mar 26, 2021
@richmahn
Copy link

@richmahn richmahn commented Mar 27, 2021

@sotho build is failing. Not sure why just on pgsql though.

@codecov-io
Copy link

@codecov-io codecov-io commented Mar 27, 2021

Codecov Report

Merging #15167 (7c4c982) into master (290cf75) will increase coverage by 0.15%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #15167      +/-   ##
==========================================
+ Coverage   43.38%   43.54%   +0.15%     
==========================================
  Files         668      668              
  Lines       80620    80621       +1     
==========================================
+ Hits        34980    35104     +124     
+ Misses      39946    39808     -138     
- Partials     5694     5709      +15     
Impacted Files Coverage Δ
modules/convert/pull_review.go 84.00% <100.00%> (+0.21%) ⬆️
modules/util/timer.go 42.85% <0.00%> (-42.86%) ⬇️
modules/util/remove.go 65.38% <0.00%> (-15.39%) ⬇️
models/unit.go 46.57% <0.00%> (-2.74%) ⬇️
modules/process/manager.go 72.83% <0.00%> (-2.47%) ⬇️
routers/repo/view.go 41.03% <0.00%> (-0.62%) ⬇️
models/gpg_key.go 53.51% <0.00%> (-0.57%) ⬇️
services/pull/pull.go 42.82% <0.00%> (-0.49%) ⬇️
models/error.go 38.09% <0.00%> (ø)
models/repo_list.go 78.76% <0.00%> (+0.88%) ⬆️
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 290cf75...7c4c982. Read the comment docs.

@6543
Copy link

@6543 6543 commented Mar 27, 2021

@sotho please ajust / resolve conflicts - as per #15144

modules/convert/pull_review.go Outdated Show resolved Hide resolved
6543
6543 approved these changes Mar 27, 2021
Signed-off-by: Andrew Thornton <[email protected]>
@6543 6543 merged commit e760992 into go-gitea:master Mar 27, 2021
2 checks passed
@go-gitea go-gitea locked and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

None yet

8 participants