mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-21 20:25:57 +00:00
Add release
event trigger (#3226)
Supersedes #764 Bitbucket does not support release webhooks. --------- Co-authored-by: Patrick Schratz <patrick.schratz@gmail.com>
This commit is contained in:
@@ -267,7 +267,8 @@
|
||||
"pr": "Pull Request",
|
||||
"deploy": "Deploy",
|
||||
"cron": "Cron",
|
||||
"manual": "Manual"
|
||||
"manual": "Manual",
|
||||
"release": "Release"
|
||||
},
|
||||
"status": {
|
||||
"status": "Status: {status}",
|
||||
|
@@ -40,7 +40,7 @@
|
||||
<Icon v-if="pipeline.event === 'pull_request'" name="pull-request" />
|
||||
<Icon v-else-if="pipeline.event === 'pull_request_closed'" name="pull-request-closed" />
|
||||
<Icon v-else-if="pipeline.event === 'deployment'" name="deployment" />
|
||||
<Icon v-else-if="pipeline.event === 'tag'" name="tag" />
|
||||
<Icon v-else-if="pipeline.event === 'tag' || pipeline.event === 'release'" name="tag" />
|
||||
<Icon v-else-if="pipeline.event === 'cron'" name="push" />
|
||||
<Icon v-else-if="pipeline.event === 'manual'" name="manual-pipeline" />
|
||||
<Icon v-else name="push" />
|
||||
|
@@ -29,7 +29,7 @@
|
||||
<span class="truncate">{{ prettyRef }}</span>
|
||||
</router-link>
|
||||
<div v-else class="flex space-x-1 items-center min-w-0">
|
||||
<Icon v-if="pipeline.event === 'tag'" name="tag" />
|
||||
<Icon v-if="pipeline.event === 'tag' || pipeline.event === 'release'" name="tag" />
|
||||
|
||||
<span class="truncate">{{ prettyRef }}</span>
|
||||
</div>
|
||||
|
@@ -102,6 +102,7 @@ function removeImage(image: string) {
|
||||
const secretEventsOptions: CheckboxOption[] = [
|
||||
{ value: WebhookEvents.Push, text: i18n.t('repo.pipeline.event.push') },
|
||||
{ value: WebhookEvents.Tag, text: i18n.t('repo.pipeline.event.tag') },
|
||||
{ value: WebhookEvents.Release, text: i18n.t('repo.pipeline.event.release') },
|
||||
{
|
||||
value: WebhookEvents.PullRequest,
|
||||
text: i18n.t('repo.pipeline.event.pr'),
|
||||
|
@@ -1,6 +1,7 @@
|
||||
export enum WebhookEvents {
|
||||
Push = 'push',
|
||||
Tag = 'tag',
|
||||
Release = 'release',
|
||||
PullRequest = 'pull_request',
|
||||
PullRequestClosed = 'pull_request_closed',
|
||||
Deploy = 'deployment',
|
||||
|
Reference in New Issue
Block a user