Moving topics into initial project creation rather than a secondary call

Signed-off-by: Josh Maxwell <jmaxwell@qualtrics.com>
This commit is contained in:
Josh Maxwell
2022-10-25 08:16:44 -06:00
parent 69a6e87b07
commit 0ea0d474f4
@@ -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).