本站源代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.2KB

  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. package github
  6. // InteractionsService handles communication with the repository and organization related
  7. // methods of the GitHub API.
  8. //
  9. // GitHub API docs: https://developer.github.com/v3/interactions/
  10. type InteractionsService service
  11. // InteractionRestriction represents the interaction restrictions for repository and organization.
  12. type InteractionRestriction struct {
  13. // Specifies the group of GitHub users who can
  14. // comment, open issues, or create pull requests for the given repository.
  15. // Possible values are: "existing_users", "contributors_only" and "collaborators_only".
  16. Limit *string `json:"limit,omitempty"`
  17. // Origin specifies the type of the resource to interact with.
  18. // Possible values are: "repository" and "organization".
  19. Origin *string `json:"origin,omitempty"`
  20. // ExpiresAt specifies the time after which the interaction restrictions expire.
  21. // The default expiry time is 24 hours from the time restriction is created.
  22. ExpiresAt *Timestamp `json:"expires_at,omitempty"`
  23. }
上海开阖软件有限公司 沪ICP备12045867号-1