mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-23 02:11:01 +00:00
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:
parent
22dfd2ef62
commit
259ff78a62
2 changed files with 2 additions and 6 deletions
|
@ -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{
|
||||
Active: true,
|
||||
Desc: rawurl.Host,
|
||||
Events: []string{"repo:push"},
|
||||
Events: []string{"repo:push", "pullrequest:created"},
|
||||
URL: link,
|
||||
})
|
||||
}
|
||||
|
|
|
@ -37,11 +37,7 @@
|
|||
|
||||
<Tab id="activity" :title="$t('repo.activity')" />
|
||||
<Tab id="branches" :title="$t('repo.branches')" />
|
||||
<Tab
|
||||
v-if="config.forge === 'gitea' || config.forge === 'github' || config.forge === 'gitlab'"
|
||||
id="pull_requests"
|
||||
:title="$t('repo.pull_requests')"
|
||||
/>
|
||||
<Tab id="pull_requests" :title="$t('repo.pull_requests')" />
|
||||
|
||||
<router-view />
|
||||
</Scaffold>
|
||||
|
|
Loading…
Reference in a new issue