Moving topics into initial project creation rather than a secondary call
Signed-off-by: Josh Maxwell <jmaxwell@qualtrics.com>
This commit is contained in:
@@ -183,12 +183,9 @@ export function createPublishGitlabAction(options: {
|
||||
namespace_id: targetNamespace,
|
||||
name: repo,
|
||||
visibility: repoVisibility,
|
||||
...(topics.length ? { topics } : {}),
|
||||
});
|
||||
|
||||
if (topics.length) {
|
||||
await client.Projects.edit(projectId, { topics });
|
||||
}
|
||||
|
||||
// When setUserAsOwner is true the input token is expected to come from an unprivileged user GitLab
|
||||
// OAuth flow. In this case GitLab works in a way that allows the unprivileged user to
|
||||
// create the repository, but not to push the default protected branch (e.g. master).
|
||||
|
||||
Reference in New Issue
Block a user