定制 koenhendriks/gitlab-merge-requests 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

koenhendriks/gitlab-merge-requests

Composer 安装命令:

composer require koenhendriks/gitlab-merge-requests

包简介

Display merge requests from a user from Gitlab.

README 文档

README

This package shows the merge requests from your GitLab user profile.

Installation

You can install this using composer in your Laravel project:

composer require koenhendriks/gitlab-merge-requests

Config

Add the following data to your .env file:

GITLAB_API_KEY=xx
GITLAB_URL=https://git.company.com/

Usage

Run the following artisan command after setting up the configuration:

php artisan gitlab:merge-requests

By default this will get the merge requests that have been merged in the last 7 days. You can pass in a integer in the first argument to get merge requests from a longer period of time.

Get MR's from last 2 weeks:

php artisan gitlab:merge-requests 14

Get MR's from last 2 weeks with specific labels:

php artisan gitlab:merge-requests 14 --labels=feature --labels=bug

For all options use the -h option provided by Laravel.

php artisan gitlab-merge-requests -h
Options:
      --wip[=WIP]              Filter merge requests against their wip status. 'yes' to return only WIP merge requests, no to return non WIP merge requests [default: "no"]
      --state[=STATE]          Return all merge requests or just those that are opened, 'closed', 'locked', or 'merged [default: "merged"]
      --order_by[=ORDER_BY]    Return requests ordered by 'created_at' or 'updated_at' fields. [default: "created_at"]
      --sort[=SORT]            Return requests sorted in 'asc' or 'desc' order. [default: "desc"]
      --labels[=LABELS]        Return merge requests matching labels. 'None' lists all merge requests with no labels. 'Any' lists all merge requests with at least one label. Predefined names are case-insensitive. (multiple values allowed)
      --scope[=SCOPE]          Return merge requests for the given scope: 'created_by_me', 'assigned_to_me' or 'all'. [default: "all"]
      --milestone[=MILESTONE]  Return merge requests for a specific milestone. 'None' returns merge requests with no milestone. 'Any' returns merge requests that have an assigned milestone. [default: "any"]

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-06-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固