Skip to content
This repository has been archived by the owner on Jan 8, 2021. It is now read-only.

Latest commit

 

History

History
40 lines (30 loc) · 913 Bytes

user_invitation_accepter.html.markdown

File metadata and controls

40 lines (30 loc) · 913 Bytes
layout page_title description
github
GitHub: github_user_invitation_accepter
Provides a resource to manage GitHub repository collaborator invitations.

github_user_invitation_accepter

Provides a resource to manage GitHub repository collaborator invitations.

Example Usage

resource "github_repository" "example" {
  name = "example-repo"
}

resource "github_repository_collaborator" "example" {
  repository = "${github_repository.example.name}"
  username   = "example-username"
  permission = "push"
}

provider "github" {
  alias = "invitee"
  token = "${var.invitee_token}"
}

resource "github_user_invitation_accepter" "example" {
  provider      = "github.invitee"
  invitation_id = "${github_repository_collaborator.example.invitation_id}"
}

Argument Reference

The following arguments are supported:

  • invitation_id - (Required) ID of the invitation to accept