-
Notifications
You must be signed in to change notification settings - Fork 3
/
.goreleaser.yml
118 lines (97 loc) · 3.77 KB
/
.goreleaser.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
before:
hooks:
# You may remove this if you don't use go modules.
- go mod download
# you may remove this if you don't need go generate
- go generate ./...
builds:
- id: robot
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
ldflags:
- -s -w
- -X github.com/labring/robot/pkg/version.gitVersion={{.Version}}
- -X github.com/labring/robot/pkg/version.gitCommit={{.ShortCommit}}
- -X github.com/labring/robot/pkg/version.buildDate={{.Date}}
#archives:
# - replacements:
# darwin: darwin
# linux: linux
# windows: windows
# amd64: amd64
# arm64: arm64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
use: github
filters:
exclude:
- '^test:'
- '^chore'
- 'merge conflict'
- Merge pull request
- Merge remote-tracking branch
- Merge branch
- go mod tidy
groups:
- title: Dependency updates
regexp: '^.*?(feat|fix)\(deps\)!?:.+$'
order: 300
- title: 'New Features'
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 100
- title: 'Security updates'
regexp: '^.*?sec(\([[:word:]]+\))??!?:.+$'
order: 150
- title: 'Bug fixes'
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 200
- title: 'Documentation updates'
regexp: ^.*?doc(\([[:word:]]+\))??!?:.+$
order: 400
- title: 'Build process updates'
regexp: ^.*?build(\([[:word:]]+\))??!?:.+$
order: 400
- title: Other work
order: 9999
release:
prerelease: auto
header: |
## labring: robot {{ .Tag }}
We are excited to present to you the latest tool from labring: robot {{ .Tag }}! Gh-robot is a powerful automation tool designed specifically for GitHub repositories, with features such as handling issue and PR comments, automatic publishing, and auto-generating changelog files. In this article, we will provide a brief introduction to the main features of robot and how to obtain the corresponding Docker image.
## Usage Instructions
robot is a powerful tool that can help you effortlessly handle issue and PR comments in your GitHub repositories while also automatically publishing and generating changelog files. To start using robot, you first need to download the precompiled binary file suitable for your operating system. You can find these files on our [GitHub Releases page](https://github.com/labring/robot/releases).
### Installation
1. Download the precompiled binary file suitable for your operating system.
2. Unzip the binary file and place it in your `PATH`.
### Usage
In the command line, run the following command to start robot:
```bash
robot [OPTIONS]
```
`OPTIONS` can include the following parameters:
- `--help`: Display help information.
- `--version`: Display the version information of robot.
- Other optional parameters.
## Docker Image
For added convenience, we also provide a Docker image for robot. You can obtain the image with the following command:
```bash
docker pull ghcr.io/labring/robot:{{ .Tag }}
```
To run the robot Docker container, use the following command:
```bash
docker run --rm -it ghcr.io/labring/robot:{{ .Tag }} [OPTIONS]
```
Here, `OPTIONS` are the options you want to pass to robot.
footer: |
**Full Changelog**: https://github.com/{{ .Env.USERNAME }}/robot/compare/{{ .PreviousTag }}...{{ .Tag }}
* * *
Thank you for your interest and support in labring and robot! If you encounter any problems during use, please feel free to submit an issue in our [GitHub repository](https://github.com/labring/robot). We will resolve your issue as soon as possible.