-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Respond w. comment to pull requests (#11)
* add code for commenting * Update test file * update test payload to real lunarway payload * Add explantion about integrationID * gitignore * delete payload * gitignore * Update Makefile Co-authored-by: Bjørn <[email protected]> * make generic private key path Co-authored-by: Bjørn <[email protected]> * Update issue_release_status.go Co-authored-by: Bjørn <[email protected]> * Add comment and edit string formatting * Use env variable refering to path * extra logging Co-authored-by: Bjørn <[email protected]>
- Loading branch information
1 parent
fbbbe36
commit 5642ac2
Showing
5 changed files
with
25 additions
and
484 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/.vscode | ||
/release-manager-bot | ||
/dist | ||
/payload.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
# url to a running release-manager | ||
URL=localhost:8080 | ||
URL=http://localhost:8080 | ||
FILE=payload.json | ||
PAYLOAD=`cat $(FILE)` | ||
|
||
github-webhook: | ||
curl -H 'X-GitHub-Event: pull_request' \ | ||
-H 'Content-Type: application/json' \ | ||
-d '$(shell cat ${FILE})' \ | ||
$(URL)/webhook/github | ||
$(URL)/webhook/github/bot | ||
|
||
|
||
|
||
start: | ||
go build | ||
./release-manager-bot \ | ||
--release-manager-auth-token $(HAMCTL_AUTH_TOKEN) \ | ||
--release-manager-url http://localhost:8081/ \ | ||
--github-privateKey "`cat $(GITHUB_PRIVATE_KEY_PATH)`" \ | ||
--github-integrationID 75542 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.