Skip to content

Commit

Permalink
Fix PR event trigger and list for bitbucket repos (#2539)
Browse files Browse the repository at this point in the history
Co-authored-by: Anbraten <anton@ju60.de>
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 8, 2023
1 parent 22dfd2e commit 259ff78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion server/forge/bitbucket/bitbucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
}
Expand Down
6 changes: 1 addition & 5 deletions web/src/views/repo/RepoWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 259ff78

Please sign in to comment.