What does 'isLocked' field in the Repository object refer to in GraphQL API?

134 views Asked by At

The GitHub GraphQL API documentation for the Repository object shows an isLocked field, which it describes with, "Indicates if the repository has been locked or not."

I can't find a reference in the GitHub documentation to "locking" a repository. How does a repository end up in a "locked" state? I do notice that isLocked is true if the repository has been transferred to a different organization, but I need to know if that is the only case, or if there are other scenarios that result in a locked repository.

Thanks!

1

There are 1 answers

0
user20093737 On

There is another filed in a graphQL API: lockReason (https://docs.github.com/en/[email protected]/graphql/reference/enums#repositorylockreason), where you can see what was the specific case (billing, migrating, moving, rename).