Allow custom repository roles to be used

Signed-off-by: Kyle Leonhard <kyle.leonhard@snowflake.com>
This commit is contained in:
Kyle Leonhard
2022-12-13 15:18:41 -08:00
parent 28e40488ec
commit bd759c5d9f
5 changed files with 10 additions and 11 deletions
+4 -4
View File
@@ -212,11 +212,11 @@ export function createGithubRepoCreateAction(options: {
| (
| {
user: string;
access: 'pull' | 'push' | 'admin' | 'maintain' | 'triage';
access: string;
}
| {
team: string;
access: 'pull' | 'push' | 'admin' | 'maintain' | 'triage';
access: string;
}
| {
username: string;
@@ -397,11 +397,11 @@ export function createPublishGithubAction(options: {
| (
| {
user: string;
access: 'pull' | 'push' | 'admin' | 'maintain' | 'triage';
access: string;
}
| {
team: string;
access: 'pull' | 'push' | 'admin' | 'maintain' | 'triage';
access: string;
}
| {
username: string;
@@ -63,11 +63,11 @@ export function createGithubRepoCreateAction(options: {
collaborators?: Array<
| {
user: string;
access: 'pull' | 'push' | 'admin' | 'maintain' | 'triage';
access: string;
}
| {
team: string;
access: 'pull' | 'push' | 'admin' | 'maintain' | 'triage';
access: string;
}
| {
/** @deprecated This field is deprecated in favor of team */
@@ -109,11 +109,11 @@ export async function createGithubRepoWithCollaboratorsAndTopics(
| (
| {
user: string;
access: 'pull' | 'push' | 'admin' | 'maintain' | 'triage';
access: string;
}
| {
team: string;
access: 'pull' | 'push' | 'admin' | 'maintain' | 'triage';
access: string;
}
| {
/** @deprecated This field is deprecated in favor of team */
@@ -110,7 +110,6 @@ const collaborators = {
access: {
type: 'string',
description: 'The type of access for the user',
enum: ['push', 'pull', 'admin', 'maintain', 'triage'],
},
user: {
type: 'string',
@@ -75,11 +75,11 @@ export function createPublishGithubAction(options: {
collaborators?: Array<
| {
user: string;
access: 'pull' | 'push' | 'admin' | 'maintain' | 'triage';
access: string;
}
| {
team: string;
access: 'pull' | 'push' | 'admin' | 'maintain' | 'triage';
access: string;
}
| {
/** @deprecated This field is deprecated in favor of team */