1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-11-29 21:48:14 +02:00
Files
woodpecker/server/forge/gitea/fixtures/hooks.go
2025-09-25 00:07:45 +02:00

100 lines
2.6 KiB
Go

// Copyright 2018 Drone.IO Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package fixtures
import _ "embed"
// HookPush is a sample Gitea push hook.
//
//go:embed HookPush.json
var HookPush string
// HookPushMulti push multible commits to a branch.
//
//go:embed HookPushMulti.json
var HookPushMulti string
// HookPushBranch is a sample Gitea push hook where a new branch was created from an existing commit.
//
//go:embed HookPushBranch.json
var HookPushBranch string
// HookTag is a sample Gitea tag hook.
//
//go:embed HookTag.json
var HookTag string
// HookPullRequest is a sample pull_request webhook payload.
//
//go:embed HookPullRequest.json
var HookPullRequest string
//go:embed HookPullRequestUpdated.json
var HookPullRequestUpdated string
//go:embed HookPullRequestMerged.json
var HookPullRequestMerged string
//go:embed HookPullRequestClosed.json
var HookPullRequestClosed string
//go:embed HookPullRequestChangeTitle.json
var HookPullRequestChangeTitle string
//go:embed HookPullRequestChangeBody.json
var HookPullRequestChangeBody string
//go:embed HookPullRequestAddReviewRequest.json
var HookPullRequestAddReviewRequest string
//go:embed HookPullRequestReviewAck.json
var HookPullRequestReviewAck string
//go:embed HookPullRequestReviewDeny.json
var HookPullRequestReviewDeny string
//go:embed HookPullRequestReviewComment.json
var HookPullRequestReviewComment string
//go:embed HookPullRequestAddLabel.json
var HookPullRequestAddLabel string
//go:embed HookPullRequestChangeLabel.json
var HookPullRequestChangeLabel string
//go:embed HookPullRequestRemoveLabel.json
var HookPullRequestRemoveLabel string
//go:embed HookPullRequestAddMile.json
var HookPullRequestAddMile string
//go:embed HookPullRequestChangeMile.json
var HookPullRequestChangeMile string
//go:embed HookPullRequestRemoveMile.json
var HookPullRequestRemoveMile string
//go:embed HookPullRequestAssigneesAdded.json
var HookPullRequestAssigneesAdded string
//go:embed HookPullRequestAssigneesRemoved.json
var HookPullRequestAssigneesRemoved string
//go:embed HookRelease.json
var HookRelease string
//go:embed HookPullRequestReopened.json
var HookPullRequestReopened string