-
Notifications
You must be signed in to change notification settings - Fork 6
/
Taskfile.yml
56 lines (54 loc) · 1.85 KB
/
Taskfile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# https://taskfile.dev
version: "3"
tasks:
default:
cmds:
- task --list-all
silent: true
config:
desc: ensure config for github cli is set to create releases at jenkinsci
cmds:
- |
if ! gh config get prompt; then
echo "configuring github cli"
gh repo set-default jenkinsci/thycotic-devops-secrets-vault-plugin
fi
bump:
desc: bump the version using changie
cmds:
- changie batch auto
- changie merge
- git add .changes/*
- git add CHANGELOG.md
changelog:refresh:
desc: refresh the changelog without trying to create a new version
cmds:
- changie merge
changelog:latest:
desc: show the latest changelog entry (which will power the release draft)
cmds:
- glow .changes/$(changie latest).md
release:
desc: create a draft release called "next" for jenkinsci to create a release from once PR merged
interactive: true
cmds:
- |
gum format "## Draft Release Content"
glow ".changes/$(changie latest).md"
gum confirm "proceed with creating draft release?" && gh release create 'next' --title 'next' --draft --notes-file=.changes/$(changie latest).md
pr:
desc: create a PR for the next release
interactive: true
cmds:
- |
gum format "## Draft PR Content"
glow ".changes/$(changie latest).md"
gum format "Choose Label for PR"
label=$(gum choose breaking major-enhancement feature bug developer dependencies documentation chore internal test)
echo "👉 label chosen: $label"
title=$(gum input --prompt "conventional commit pr title > ")
echo "👉 title chosen: $title"
gum confirm "proceed with creating PR?" && gh pr create \
--title "${title}" \
--label "${label}" \
--body-file=.changes/$(changie latest).md