Comments (6)
I understand your point now. It makes perfect sense.
I changed the PR in such a way, that it doesn't break the current API.
However, I couldn't run tests locally without fails. The fails I see look not relevant for changes I have added
from go-github.
It sounds like we need a new endpoint with an additional private struct which removes the omitempty
from the existing CreateOrUpdateCustomRoleOptions
struct, but is otherwise identical. We've done things like this in other places.
For example, here:
go-github/github/orgs_properties.go
Lines 112 to 116 in 474a48f
@andriyun - would you like to make a PR to address this, or shall I open this up to other contributors to this repo?
from go-github.
I'll be glad to submit PR with changes to fix it :)
from go-github.
Thank you, @andriyun ! It's yours.
from go-github.
Hey @gmlewis
Sorry for late question. I didn't get your idea about creating new endpoint. I could neither find other cases you are referring too.
It's true at there are some similar constructions there with CreateOrUpdate****Options
However there are not used separate Create
Update` methods.
I've added PR with changes #3235
Please take a look
from go-github.
So I was thinking that this could be achieved without breaking the current API by adding separate endpoint(s) that specifically handle the NoPermissions
case, and internally uses modified structs where the omitempty
has been removed from the permissions
field.
Does that make sense?
I've looked at #3235 but was hoping to not break the current API, which that PR does.
from go-github.
Related Issues (20)
- ListIDPGroupsInOrganization is missing the filter parameter
- Bug: Multi-select Custom Properties are not supported HOT 7
- For Google
- feature: Set the callback URL at app creation time HOT 2
- adding the support to custom_property_values webhooks HOT 3
- [v1.23] Testing the new `iter` package with `gh-iter` HOT 2
- Add support for GitHub App Manifest flow on Organization, not User HOT 6
- Add support for new Code Security Configurations API HOT 1
- Implementing Personal Access Tokens API HOT 5
- Missing fields in structure HOT 6
- json: cannot unmarshal array into Go value of type github.Repository HOT 1
- Revert mistakenly added fields in DraftReviewComment HOT 1
- A callback to go with SleepUntilPrimaryRateLimitResetWhenRateLimited? HOT 7
- Add support for merge queue parameters for organization and repository ruleset HOT 2
- Unable to Parse Private Key HOT 5
- Error when parsing repository that uses multiselect custom-properties HOT 5
- Adding beta feature for rulesets HOT 1
- Idea: auto fix for fmt and codegen HOT 1
- GetHasWiki returns true/false based only on the repository setting
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-github.