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

Add CreateOrUpdateRepoCustomPropertyValues #3109

Conversation

ganeshkumarsv
Copy link
Contributor

@ganeshkumarsv ganeshkumarsv commented Mar 23, 2024

Adds method CreateOrUpdateRepoCustomPropertyValues

Copy link

codecov bot commented Mar 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.88%. Comparing base (2b8c7fa) to head (471ec26).
Report is 30 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3109      +/-   ##
==========================================
- Coverage   97.72%   92.88%   -4.84%     
==========================================
  Files         153      170      +17     
  Lines       13390    11423    -1967     
==========================================
- Hits        13085    10610    -2475     
- Misses        215      723     +508     
  Partials       90       90              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gmlewis gmlewis changed the title Ganeshkumarsv set custom property repositories Add CreateOrUpdateRepoCustomPropertyValues Mar 24, 2024
@gmlewis
Copy link
Collaborator

gmlewis commented Mar 24, 2024

Thank you, @ganeshkumarsv !
I saw the commit titled "no idea what im doing" and thought I might help out... In CONTRIBUTING.md, we have some helpful tips that should assist you. Please let me know if you have any question, but it looks like you are on the right track. You can also look at some of the other files for examples on code coverage.

@ganeshkumarsv
Copy link
Contributor Author

Thank you, @ganeshkumarsv ! I saw the commit titled "no idea what im doing" and thought I might help out... In CONTRIBUTING.md, we have some helpful tips that should assist you. Please let me know if you have any question, but it looks like you are on the right track. You can also look at some of the other files for examples on code coverage.

Thanks for commenting @gmlewis. Running metadata.sh makes modification for a lot of URLs and erroring out. I don't see a way to update openapi configs only the one endpoint i'm updating. Any help appreciated. Thank you 🙇

@gmlewis
Copy link
Collaborator

gmlewis commented Mar 28, 2024

Thanks for commenting @gmlewis. Running metadata.sh makes modification for a lot of URLs and erroring out. I don't see a way to update openapi configs only the one endpoint i'm updating. Any help appreciated. Thank you 🙇

You shouldn't have to deal with the metadata or OpenAPI stuff... you should only have to make sure your formatting has been fixed and the generator has been run, and you can revert any changes made to the metadata.

@ganeshkumarsv
Copy link
Contributor Author

I tried running go run github/gen-accessors.go but it is not generating anything. Am i missing something?

@ganeshkumarsv
Copy link
Contributor Author

I removed my changes from openapi_operations.yaml as u mentioned. The linter fails with the error could not find operation "PATCH /repos/{owner}/{repo}/properties/values" in openapi_operations.yaml

Can I know how i can fix this error?

@gmlewis
Copy link
Collaborator

gmlewis commented Mar 28, 2024

@ganeshkumarsv - now that #3104 is merged, please try to update this branch using git merge master and see if that solves the problems you were seeing before.

@ganeshkumarsv
Copy link
Contributor Author

Thanks @gmlewis. I updated the branch and it fixed the linter. All the checks are passing now.

@ganeshkumarsv ganeshkumarsv marked this pull request as ready for review March 28, 2024 19:23
Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

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

Thank you, @ganeshkumarsv !
Just one minor tweak, please, then we should be ready for a second LGTM+Approval from any other contributor to this repo before merging.

github/repos_properties.go Outdated Show resolved Hide resolved
@gmlewis gmlewis added the NeedsReview PR is awaiting a review before merging. label Mar 28, 2024
Co-authored-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

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

Thank you, @ganeshkumarsv !
LGTM.

Awaiting second LGTM+Approval from any other contributor to this repo before merging.

@ganeshkumarsv
Copy link
Contributor Author

@liaodaniel I need one more approval to merge this PR. Can you please review? 🙇

@ganeshkumarsv
Copy link
Contributor Author

@gmlewis we got 2 reviews for the PR. Can you please merge if everything looks ok?

@gmlewis gmlewis removed the NeedsReview PR is awaiting a review before merging. label Mar 29, 2024
@gmlewis
Copy link
Collaborator

gmlewis commented Mar 29, 2024

Thank you, @AbbanMustafa !
Merging.

@gmlewis gmlewis merged commit e85a74d into google:master Mar 29, 2024
6 of 7 checks passed
@ganeshkumarsv
Copy link
Contributor Author

@gmlewis Thanks for merging. Is it possible to create a new release?

@gmlewis
Copy link
Collaborator

gmlewis commented Apr 1, 2024

@gmlewis Thanks for merging. Is it possible to create a new release?

This is now released in v61: https://github.com/google/go-github/releases/tag/v61.0.0

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