DolphinScheduler/tools/release
Jiajie Zhong 2525545a41
[dev] Easier release: cherry-pick, changelog, contributor (#11478)
Add script for  easier release including cherry pick,
generating changelog and contributor list

* Auto cherry-pick: `python release.py cherry-pick`
* Generate changelog: `python release.py changelog`
* Generate contributor: `python release.py contributor`

close: #11289
related: #12222
2022-10-12 09:00:59 +08:00
..
github [dev] Easier release: cherry-pick, changelog, contributor (#11478) 2022-10-12 09:00:59 +08:00
README.md [dev] Easier release: cherry-pick, changelog, contributor (#11478) 2022-10-12 09:00:59 +08:00
release.py [dev] Easier release: cherry-pick, changelog, contributor (#11478) 2022-10-12 09:00:59 +08:00
requirements.txt [dev] Easier release: cherry-pick, changelog, contributor (#11478) 2022-10-12 09:00:59 +08:00

Tools Release

A tools for convenient release DolphinScheduler.

Prepare

  • python: python 3.6 or above
  • pip: latest version of pip is better

To install dependence, you should run command

python -m pip install -r requirements.txt

Usage

Export Environment Variable

You can create new token in create token, it is only need all permission under repo

export GH_ACCESS_TOKEN="<YOUR-GITHUB-TOKEN-WITH-REPO-ACCESS>"
export GH_REPO_MILESTONE="<YOUR-MILESTONE>"

Help

python release.py -h

Action

  • Auto cherry-pick: python release.py cherry-pick, will cause error when your default branch is not up-to-date, or cherry-pick with conflict. But if you fix you can directly re-run this command, it will continue the pick
  • Generate changelog: python release.py changelog
  • Generate contributor: python release.py contributor