You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Need a way to list custom roles for organizations #2327
We try as much as possible to make this repo welcoming to new contributors, and as such, we have attempted to document valuable information in our CONTRIBUTING.md guide... if you feel there are any omissions or corrections needed, PRs are welcome. 😄
As for this specific issue, and whenever implementing new endpoints, it is a great idea to browse around, both in the code, and also in past (successfully closed) PRs, to see how new features like this have been added, and base your solution on well-known and working past solutions.
If you still have questions after that, please try to be as specific as possible, and I will attempt to help out.
Best wishes to you, and thank you in advance for your contributions!
Hi @gmlewis Please correct me if my proposed solution is wrong
I need to create new file org_custom_role.go
Create new endpoint ListCustomRole
Send request to /organizations/{organization_id}/custom_roles
Return roles
That seems like a good plan, @tamboliasir1 - the only things I would change at this point, probably, are to make the "role" plural ("roles") both in step 1 and step 2 above.
For those of us following along at home does this look remotely close to the correct answer?
Thanks, @btsteve - that is a good start, but does have some minor issues. Let's allow @tamboliasir1 to put together a PR, and then we will do an actual code review on the PR, which is much easier than a code review on a discussion thread. 😄
That seems like a good plan, @tamboliasir1 - the only things I would change at this point, probably, are to make the "role" plural ("roles") both in step 1 and step 2 above.
@tamboliasir1 - note that I meant to mention that unit tests need to be added for every new endpoint, following the current pattern found in the repo.
Activity
gmlewis commentedon Apr 7, 2022
Can the GitHub v3 API do that?
If so, this repo (which is a Go client for the GitHub v3 API) should be able to.
Are you talking about this?
https://docs.github.com/en/rest/reference/orgs#custom-repository-roles
If so, yes. Would you like to submit a PR, or would you like me to open this issue up to any of our contributors to work on?
btsteve commentedon Apr 7, 2022
Yes that is what i am talking about. I don't think i know enough go to add it.
gmlewis commentedon Apr 7, 2022
No problem, thank you, @btsteve , for the report.
This would be a great PR for any new contributor to this repo or a new Go developer.
All contributions are greatly appreciated!
Feel free to volunteer for any issue and the issue can be assigned to you so that others don't attempt to duplicate the work.
Please check out our CONTRIBUTING.md guide to get started. (In particular, please remember to
go generate ./...and don't use force-push to your PRs.)Thank you!
tamboliasir1 commentedon Apr 8, 2022
Hi @gmlewis I'm new contributor. Can you give me little bit of insights like from where can I start and what should I know to get it right. Thanks.
gmlewis commentedon Apr 8, 2022
Hi @tamboliasir1 , and welcome to this repo. 😄
We try as much as possible to make this repo welcoming to new contributors, and as such, we have attempted to document valuable information in our CONTRIBUTING.md guide... if you feel there are any omissions or corrections needed, PRs are welcome. 😄
As for this specific issue, and whenever implementing new endpoints, it is a great idea to browse around, both in the code, and also in past (successfully closed) PRs, to see how new features like this have been added, and base your solution on well-known and working past solutions.
If you still have questions after that, please try to be as specific as possible, and I will attempt to help out.
Best wishes to you, and thank you in advance for your contributions!
tamboliasir1 commentedon Apr 8, 2022
Got it.. Thank you @gmlewis I would love to give it a try.. Can you please assign it to me?
gmlewis commentedon Apr 8, 2022
Awesome, @tamboliasir1 ! It is yours. 😄
tamboliasir1 commentedon Apr 10, 2022
Hi @gmlewis Please correct me if my proposed solution is wrong
org_custom_role.goListCustomRole/organizations/{organization_id}/custom_rolesbtsteve commentedon Apr 10, 2022
For those of us following along at home does this look remotely close to the correct answer?
I am not sure how to test this locally.
gmlewis commentedon Apr 11, 2022
That seems like a good plan, @tamboliasir1 - the only things I would change at this point, probably, are to make the "role" plural ("roles") both in step 1 and step 2 above.
gmlewis commentedon Apr 11, 2022
Thanks, @btsteve - that is a good start, but does have some minor issues. Let's allow @tamboliasir1 to put together a PR, and then we will do an actual code review on the PR, which is much easier than a code review on a discussion thread. 😄
gmlewis commentedon Apr 11, 2022
@tamboliasir1 - note that I meant to mention that unit tests need to be added for every new endpoint, following the current pattern found in the repo.
tamboliasir1 commentedon Apr 12, 2022
Sure @gmlewis Thanks for guidance. Will raise a PR soon.
tamboliasir1 commentedon Apr 18, 2022
Hi @gmlewis I have raised a PR for the same. Can you please review the code. Thank you for this opportunity.
Add support to list custom roles for organizations (#2336)
Add support to list custom roles for organizations (google#2336)