Merge pull request #15222 from sfc-gh-kleonhard/github-access-custom-access-roles

Allow custom repository roles to be used
This commit is contained in:
Patrik Oldsberg
2022-12-28 16:34:57 +01:00
committed by GitHub
6 changed files with 15 additions and 11 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-scaffolder-backend': minor
---
Allow custom repository roles to be configured on github repos
+4 -4
View File
@@ -213,11 +213,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;
@@ -403,11 +403,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;
@@ -64,11 +64,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 */
@@ -116,7 +116,6 @@ const collaborators = {
access: {
type: 'string',
description: 'The type of access for the user',
enum: ['push', 'pull', 'admin', 'maintain', 'triage'],
},
user: {
type: 'string',
@@ -76,11 +76,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 */