Skip to content

This adapter can be configured instead of MS Teams webhook in the Bitbucket to have PR approvers tagged in the message. It will send the request with constructed payload to same request path received by API implemented with fiber (based on fasthttp). It does not store the webhook (credentials) in the logs, works like pass-through gateway.

License

Notifications You must be signed in to change notification settings

babinkos/teams-webhook-pr-router-app-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webhook-bb-pr-teams-router-app-go

To run this app and test locally follow this:

cd backend-test
./prepare-ca.sh
./localbuild.sh
docker run -it --rm -p 80:8080 -e RLOG_LOG_LEVEL=DEBUG backend-test
docker run -it --rm -e "HOST=$(hostname -I | cut -d' ' -f1)" -p 443:443 tls-test
cd adaptor
./localbuild.sh

docker run -it --rm -e "TEAMS_HOSTNAME=$(hostname -I | cut -d' ' -f1)" -e RLOG_LOG_LEVEL=INFO -e TLS_INSECURE_SKIP_VERIFY=false -p 8080:8080 docker.io/library/adaptor

cd ..

curl -v -X POST -H 'Content-Type: application/json' -H "X-Request-Id: $(uuidgen)" "http://127.0.0.1:8080/webhookb2/$(uuidgen)@$(uuidgen)/IncomingWebhook/$(openssl rand -hex 16)/$(uuidgen)" -d @backend-test/bb-event.json

About

This adapter can be configured instead of MS Teams webhook in the Bitbucket to have PR approvers tagged in the message. It will send the request with constructed payload to same request path received by API implemented with fiber (based on fasthttp). It does not store the webhook (credentials) in the logs, works like pass-through gateway.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages