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 allow_forking & allow_update_branch in Repository model #379

Merged

Conversation

ledoyen
Copy link
Contributor

@ledoyen ledoyen commented May 24, 2023

It's well hidden in the response schema but it's here :)
https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#get-a-repository

These setting reflects toggles of the same name in the General settings page.
image
image

JSON schema extract:

"allow_update_branch": {
    "type": "boolean",
    "examples": [
        true
    ]
},
"allow_forking": {
    "type": "boolean",
    "examples": [
        true
    ]
},

Also present in paths parent, source and template_repository.

@ledoyen ledoyen force-pushed the feature/add_allow_forking_in_repo_model branch from ef255f0 to 0ea27d8 Compare May 25, 2023 07:45
@ledoyen ledoyen changed the title Add allow_forking in Repository model Add allow_forking & allow_update_branch in Repository model May 25, 2023
@XAMPPRocky
Copy link
Owner

Thank you for your PR, and congrats on your first contribution! 🎉

@XAMPPRocky XAMPPRocky merged commit 9d1e959 into XAMPPRocky:main Jun 3, 2023
@github-actions github-actions bot mentioned this pull request Jun 3, 2023
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.

2 participants