Source code and jira-to-slack#
Source code#
Initial source code comes from the archived project jira-to-slack.
The code was forked in applications/jira-to-mattermost in the jira-to-slack/ directory.
Compile#
Tip
Compiling with GO (downloading the modules) is usually not possible with the Orange VPN.
You need to deactivate your VPN to compile.
With go (ensure in go.mod that you are using the requested golang version):
go build ./...
go test ./...
With Docker:
VERSION=build # or VERSION=1.11.x for a stable version
docker build --build-arg VERSION="${VERSION}" -t "docker-registry.ocb-corp.caascad.com/internal/jira-to-slack:${VERSION}" .
Push to Caascad docker-registry#
Pre-requisite: build the image with Docker as described above.
Then:
docker push "docker-registry.ocb-corp.caascad.com/internal/jira-to-slack:${VERSION}"
How to code#
In the source code, most files are located in pkg/.
Filter and test formatting is located in pkg/formatter. Any work there need:
- a test case in
pkg/formatter/testdata, - a test in
pkg/formatter/formatter_test.go, - the work itself in
pkg/formatter/formatter.go.
JIRA API missing elements can be added in pkg/jira/jira.go.