Removing owner as non needed
Signed-off-by: cmoulliard <cmoulliard@redhat.com>
This commit is contained in:
@@ -88,6 +88,7 @@ describe('publish:gitea', () => {
|
||||
it('should throw if there is no repositoryId returned', async () => {
|
||||
server.use(
|
||||
rest.post('https://gitea.com/api/v1/user/repos', (req, res, ctx) => {
|
||||
// Basic auth must match the user and password defined part of the config
|
||||
expect(req.headers.get('Authorization')).toBe(
|
||||
'Basic Z2l0ZWFfdXNlcjpnaXRlYV9wYXNzd29yZA==',
|
||||
);
|
||||
@@ -107,7 +108,7 @@ describe('publish:gitea', () => {
|
||||
...mockContext,
|
||||
input: {
|
||||
...mockContext.input,
|
||||
repoUrl: 'gitea.com?owner=owner&repo=repo',
|
||||
repoUrl: 'gitea.com?repo=repo',
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ const createGiteaProject = async (
|
||||
description: string;
|
||||
},
|
||||
): Promise<void> => {
|
||||
const { projectName, owner, description } = options;
|
||||
const { projectName, description } = options;
|
||||
|
||||
const fetchOptions: RequestInit = {
|
||||
method: 'POST',
|
||||
@@ -176,7 +176,7 @@ export function createPublishGiteaAction(options: {
|
||||
sourcePath,
|
||||
} = ctx.input;
|
||||
|
||||
const { owner, repo, host } = parseRepoUrl(repoUrl, integrations);
|
||||
const { repo, host } = parseRepoUrl(repoUrl, integrations);
|
||||
|
||||
const integrationConfig = integrations.gitea.byHost(host);
|
||||
if (!integrationConfig) {
|
||||
@@ -199,7 +199,7 @@ export function createPublishGiteaAction(options: {
|
||||
|
||||
await createGiteaProject(integrationConfig.config, {
|
||||
description,
|
||||
owner: owner,
|
||||
// owner: owner,
|
||||
projectName: repo,
|
||||
// parent: workspace,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user