Class BranchRestrictions

  • All Implemented Interfaces:

    
    public final class BranchRestrictions
    extends Context
                        

    Represents restrictions applied to a branch protection rule in GitHub Actions workflows.

    Provides access to the users, teams, and applications that are subject to or exempt from branch protection restrictions. Available in GitHub workflow contexts when branch protection rules with restrictions are configured.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final User getUsers()
      final Team getTeams()
      final GitHubApp getApps()
      final String getPrefix()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait