Skip to content

Add CreateOrUpdateRepoCustomPropertyValues - #3109

Merged
gmlewis merged 18 commits into
google:masterfrom
ganeshkumarsv:ganeshkumarsv-set-custom-property-repositories
Mar 29, 2024
Merged

Add CreateOrUpdateRepoCustomPropertyValues#3109
gmlewis merged 18 commits into
google:masterfrom
ganeshkumarsv:ganeshkumarsv-set-custom-property-repositories

Conversation

@ganeshkumarsv

@ganeshkumarsvganeshkumarsv commented Mar 23, 2024

Copy link
Copy Markdown
Contributor

Adds method CreateOrUpdateRepoCustomPropertyValues

@codecov

codecovBot commented Mar 23, 2024

Copy link
Copy Markdown

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.

@gmlewisgmlewis changed the title Ganeshkumarsv set custom property repositoriesAdd CreateOrUpdateRepoCustomPropertyValuesMar 24, 2024
@gmlewis

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
ContributorAuthor

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
Copy Markdown
Collaborator

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
Copy Markdown
ContributorAuthor

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

@ganeshkumarsv

Copy link
Copy Markdown
ContributorAuthor

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
Copy Markdown
Collaborator

@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
Copy Markdown
ContributorAuthor

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

@gmlewisgmlewis left a comment

Copy link
Copy Markdown
Collaborator

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.

Comment threadgithub/repos_properties.go Outdated
@gmlewisgmlewis 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>

@gmlewisgmlewis left a comment

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
ContributorAuthor

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

@ganeshkumarsv

Copy link
Copy Markdown
ContributorAuthor

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

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

Copy link
Copy Markdown
Collaborator

Thank you, @AbbanMustafa !
Merging.

@gmlewis
gmlewis merged commit e85a74d into google:masterMar 29, 2024
@ganeshkumarsv

Copy link
Copy Markdown
ContributorAuthor

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

@gmlewis

Copy link
Copy Markdown
Collaborator

@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

@bhanurpbhanurp mentioned this pull request Oct 6, 2024
jlaportebot added a commit to jlaportebot/go-github that referenced this pull request Jun 28, 2026
Sign up for freeto 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

@ganeshkumarsv@gmlewis@AbbanMustafa