-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
51 lines (46 loc) · 1.7 KB
/
Makefile
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
# url to a running release-manager
URL=http://localhost:8080
FILE=payload.json
FILE_CHANGE_BASE=changeBasePayload.json
FILE_EDITED_NO_BASE=editedButNotBranch.json
github-webhook:
curl -H 'Content-Type: application/json' \
-H 'Accept: */*' \
-H 'content-type: application/json' \
-H 'User-Agent: GitHub-Hookshot/d696b2a' \
-H 'X-GitHub-Delivery: 54b53400-e2de-11ea-8a95-434e7cdb639c' \
-H 'X-GitHub-Event: pull_request' \
-H 'X-Hub-Signature: sha1=3631558999d0ba3687b079ee2209dc08293825c6' \
-d '$(shell cat ${FILE})' \
$(URL)/webhook/github/bot
change-branch-webhook:
curl -H 'Content-Type: application/json' \
-H 'Accept: */*' \
-H 'content-type: application/json' \
-H 'User-Agent: GitHub-Hookshot/d696b2a' \
-H 'X-GitHub-Delivery: 54b53400-e2de-11ea-8a95-434e7cdb639c' \
-H 'X-GitHub-Event: pull_request' \
-H 'X-Hub-Signature: sha1=3631558999d0ba3687b079ee2209dc08293825c6' \
-d '$(shell cat ${FILE_CHANGE_BASE})' \
$(URL)/webhook/github/bot
edit-webhook:
curl -H 'Content-Type: application/json' \
-H 'Accept: */*' \
-H 'content-type: application/json' \
-H 'User-Agent: GitHub-Hookshot/d696b2a' \
-H 'X-GitHub-Delivery: 54b53400-e2de-11ea-8a95-434e7cdb639c' \
-H 'X-GitHub-Event: pull_request' \
-H 'X-Hub-Signature: sha1=3631558999d0ba3687b079ee2209dc08293825c6' \
-d '$(shell cat ${FILE_EDITED_NO_BASE})' \
$(URL)/webhook/github/bot
prometheus-metrics:
curl -H 'user_agent: Prometheus/2.20.1' \
$(URL)/metrics
start:
go build
./release-manager-bot \
--release-manager-auth-token $(HAMCTL_AUTH_TOKEN) \
--release-manager-url http://localhost:8081 \
--github-private-key "`cat $(GITHUB_PRIVATE_KEY_PATH)`" \
--github-integration-id 75542 \
--message-template "`cat $(MESSAGE_TEMPLATE_PATH)`"