Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git push 메시지를 webhook 으로 slack 으로 연동시 수신이 안됩니다. #632

Open
siro012 opened this issue Apr 2, 2020 · 2 comments
Assignees

Comments

@siro012
Copy link

siro012 commented Apr 2, 2020

slack 연동시 json body에서 text 가 있어야 한다고 나오는데 아래와 같이 git push 메시지에 대해서는 메시지 형태가 틀려 틀리게 나오는듯 합니다.
아래 Webhook.java 내용에 의하여 나타나는 현상인지 문의 드립니다.
simple 유형으로 처리하면 될지도 궁금합니다.

Webhook.java:660
public void sendRequestToPayloadUrl(List commits, List refNames, User sender, String title) {

로그내용
root.log:[Webhook] Request responded code 400: Bad Request
root.log:[Webhook] Request payload: {"ref":["refs/heads/i4"],"commits":[{"id":"85adbf884da0bdc4baab6798baabee2ce90a85fc","message":"xxxxxx","timestamp":"2020-04-02T04:21:50+0900"

@hongwonjun hongwonjun self-assigned this Apr 2, 2020
@hongwonjun
Copy link
Collaborator

#624 와 중복 이슈로 현재 개발 중에 있습니다.

지금은 git push 시 메신저 등으로 호환되는 webhook 이 발생하지 않습니다.

@hongwonjun
Copy link
Collaborator

@siro012
이번 버전 (v1.14.0) 에서 테스트해보실 수 있을까요?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants