Fix PR event trigger and list for bitbucket repos (#2539)

Co-authored-by: Anbraten <anton@ju60.de>
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
This commit is contained in:
Michalis Zampetakis 2023-10-08 15:18:49 +03:00 committed by GitHub
parent 22dfd2ef62
commit 259ff78a62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View file

@ -295,7 +295,7 @@ func (c *config) Activate(ctx context.Context, u *model.User, r *model.Repo, lin
return c.newClient(ctx, u).CreateHook(r.Owner, r.Name, &internal.Hook{ return c.newClient(ctx, u).CreateHook(r.Owner, r.Name, &internal.Hook{
Active: true, Active: true,
Desc: rawurl.Host, Desc: rawurl.Host,
Events: []string{"repo:push"}, Events: []string{"repo:push", "pullrequest:created"},
URL: link, URL: link,
}) })
} }

View file

@ -37,11 +37,7 @@
<Tab id="activity" :title="$t('repo.activity')" /> <Tab id="activity" :title="$t('repo.activity')" />
<Tab id="branches" :title="$t('repo.branches')" /> <Tab id="branches" :title="$t('repo.branches')" />
<Tab <Tab id="pull_requests" :title="$t('repo.pull_requests')" />
v-if="config.forge === 'gitea' || config.forge === 'github' || config.forge === 'gitlab'"
id="pull_requests"
:title="$t('repo.pull_requests')"
/>
<router-view /> <router-view />
</Scaffold> </Scaffold>