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
allow_forking boolean
Either true to allow private forks, or false to prevent private forks.
Default: false
Example context:
I need to fork repositories in a multistep workflow, but for private and internal repos forking can be disabled.
In these cases instead of getting an exception when trying to fork, I'd like to be able to check at the very beginning if it is possible at all and provide a proper message to the users.
The text was updated successfully, but these errors were encountered:
I'd like to contribute a small enhancement to the
GHRepository
class and add a method to get the value of theallow_forking
flag.From the GitHub REST API Docs:
Example context:
I need to fork repositories in a multistep workflow, but for
private
andinternal
repos forking can be disabled.In these cases instead of getting an exception when trying to fork, I'd like to be able to check at the very beginning if it is possible at all and provide a proper message to the users.
The text was updated successfully, but these errors were encountered: