项目作者: tubone24

项目描述 :
Aggregate PR to the master branch and output the release results in CSV format.
高级语言: Python
项目地址: git://github.com/tubone24/github-api-v4-python.git
创建时间: 2019-12-15T05:17:43Z
项目社区:https://github.com/tubone24/github-api-v4-python

开源协议:

下载


github-api-v4-python

Aggregate PR to the master branch and output the release results in CSV format.

Background

Normally, when you release a system, there should be a release management table that summarizes the release date and release contents, such as release management, but it was troublesome because it was not organized! It was something.

However, our source is managed on GitHub, and we always follow the branch strategy of Git-flow, so if you collect PR and commit history, you can do it! It was.

How to use

Precondition

  • Python3.6 or more.

Install dependencies.

  1. pip install -r requirements.txt

Create environments file(dot env).

  1. touch .env

Set the GitHub API Tokens to .env.

  1. TOKEN=YourGitHubToken
  2. ENDPOINT=https://api.github.com/graphql

If you use Hosted GitHub Enterprise, Change ENDPOINT to yours.

How to use

  1. python get_master_deploy.py

More Information?

Read the article below.

面倒なことはPythonにやらせよう@GitHub API v4を使ったリリース実績取得