
A essĆŖncia do projeto
Quando consegui meu primeiro emprego como desenvolvedor Java, imediatamente me deparei com o problema de notificação de eventos no Bitbucket. A direção do desenvolvimento Java era nova (eu era o segundo programador), então tive que configurar o ambiente de desenvolvimento. Depois de instalar e configurar o Bitbucket Server, tive que vasculhar os Pull Requests em busca de novos comentÔrios que precisavam ser respondidos, e foi problemÔtico aprender sobre os novos Pull Reqests. Sim, alguém vai dizer que existem notificações por email, mas comum, temos a era do Telegram.
disclaimer: , , , " ", issues.
open source, , open source. . , , Telegram, - , .
Maven Central.
, . " " , Pull Request-ax ( PR). . :
- PR,

- PR

- PR, ( )

- PR (MERGE, DECLINE, DELETE)

- ,


- PR

- PR

- PR. , , PR . 2 , , 4 - , . .

? , , , , . , ā , , . Bitbucket Cloud Gitlab.
, , . :
- , PR
- ,
- PR
Teamcity!

. API , PR , Telegram. API Bitbucket.
C API , , API -. , . Bitbucket.
, . API , Bitbucket Server. .
id -, , PR, PR . Bitbucket, , PR, .
- . PR , , . -, .
. , .
- docker
docker pull upagge/bitbucket-bot-local:latest - Telegram, .
- , . : 34534050345:FlfrleflerferfRE-ergerFLREF9ERF-NGjM
- bitbucket. , Manage Account --> Personal access tokens --> Create a token. .
- , PR .
docker run --name bitbucketbot -d --env TELEGRAM_BOT_TOKEN=value --env TELEGRAM_BOT_USERNAME=value --env BITBUCKET_TOKEN=value --env TELEGRAM_ID=value --env BITBUCKET_URL=value --env BITBUCKET_LOGIN=value --env DATASOURCE_URL=value --env DATASOURCE_USERNAME=value --env DATASOURCE_PASSWORD=value --network="host" upagge/bitbucket-bot-local:latest
value . :
- TELEGRAM_BOT_TOKEN ā , .
- TELEGRAM_BOT_USERNAME ā , . my_bitbucket_bot
- BITBUCKET_TOKEN ā , Bitbucket
- TELEGRAM_ID ā id telegram,
- BITBUCKET_URL - url para seu bitbucket estritamente neste formato http: // localhost: 7990
- BITBUCKET_LOGIN - seu login do bitbucket , por exemplo, mylogin
- DATASOURCE_URL - link para o banco de dados Postgres , no seguinte formato: jdbc: postgresql: // localhost: 5432 / bitbucket_bot_local
- DATASOURCE_USERNAME - usuƔrio do banco de dados
- DATASOURCE_PASSWORD - senha do banco de dados