承接 tech101/gitwebhook 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tech101/gitwebhook

最新稳定版本:v1.1.2

Composer 安装命令:

composer require tech101/gitwebhook

包简介

Package for executing based on trigger

README 文档

README

The webhook package can be used to trigger the git command based on the events that gets by triggered by the gitlab.

Getting started

The package can be installed in the following steps:

Install the package with:

composer require tech101/gitwebhook

Publish the provider

php artisan vendor:publish --provider="Tech101\Webhook\WebhookServiceProvider"

Configuration

Add the following variables to the project environment

DEFAULT_BRANCH="your branch name that you want in your system"
GITLAB_WEBHOOK_TOKEN="token for the webhook that you have set in gitlab"
OR
GITHUB_WEBHOOK_TOKEN="token for the webhook that you have set in github.

Routes

To use the webhook you have to set url based on the following basis

Github
- For pull request: "your_url"/webhook/github/pull-request
- For tag create: "your_url"/webhook/github/tag-create

Gitlab
- For merge request: "your_url"/webhook/gitlab/merge-request
- For tag push: "your_url"/webhook/gitlab/tag-push

统计信息

  • 总下载量: 444
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-06-20