...

Source file src/github.com/google/go-github/v45/github/interactions.go

Documentation: github.com/google/go-github/v45/github

     1  // Copyright 2018 The go-github AUTHORS. All rights reserved.
     2  //
     3  // Use of this source code is governed by a BSD-style
     4  // license that can be found in the LICENSE file.
     5  
     6  package github
     7  
     8  // InteractionsService handles communication with the repository and organization related
     9  // methods of the GitHub API.
    10  //
    11  // GitHub API docs: https://docs.github.com/en/rest/interactions/
    12  type InteractionsService service
    13  
    14  // InteractionRestriction represents the interaction restrictions for repository and organization.
    15  type InteractionRestriction struct {
    16  	// Specifies the group of GitHub users who can
    17  	// comment, open issues, or create pull requests for the given repository.
    18  	// Possible values are: "existing_users", "contributors_only" and "collaborators_only".
    19  	Limit *string `json:"limit,omitempty"`
    20  
    21  	// Origin specifies the type of the resource to interact with.
    22  	// Possible values are: "repository" and "organization".
    23  	Origin *string `json:"origin,omitempty"`
    24  
    25  	// ExpiresAt specifies the time after which the interaction restrictions expire.
    26  	// The default expiry time is 24 hours from the time restriction is created.
    27  	ExpiresAt *Timestamp `json:"expires_at,omitempty"`
    28  }
    29  

View as plain text