File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,10 @@ type InstallationTokenOptions struct {
47
47
// Providing repository IDs restricts the access of an installation token to specific repositories.
48
48
RepositoryIDs []int64 `json:"repository_ids,omitempty"`
49
49
50
+ // The names of the repositories that the installation token can access.
51
+ // Providing repository names restricts the access of an installation token to specific repositories.
52
+ Repositories []string `json:"repositories,omitempty"`
53
+
50
54
// The permissions granted to the access token.
51
55
// The permissions object includes the permission names and their access type.
52
56
Permissions * InstallationPermissions `json:"permissions,omitempty"`
Original file line number Diff line number Diff line change @@ -387,6 +387,7 @@ func TestAppsService_CreateInstallationTokenWithOptions(t *testing.T) {
387
387
388
388
installationTokenOptions := & InstallationTokenOptions {
389
389
RepositoryIDs : []int64 {1234 },
390
+ Repositories : []string {"foo" },
390
391
Permissions : & InstallationPermissions {
391
392
Contents : String ("write" ),
392
393
Issues : String ("read" ),
You can’t perform that action at this time.
0 commit comments