Pix4D / cogito

Concourse resource for GitHub Commit Status and Google Chat notifications
MIT License
35 stars 14 forks source link

report commit author and message #125

Open marco-m-pix4d opened 1 year ago

marco-m-pix4d commented 1 year ago

Currently we send to the chat sink:

2023-07-24 09:04:37 UTC
pipeline foo-bar
job oo-bar-local-tests/1301
state 🔴 failure
commit 123456 (repo: example/repo)

It would be nice to send also the commit author and message (no matter the state):

2023-07-24 09:04:37 UTC
pipeline foo-bar
job oo-bar-local-tests/1301
state 🔴 failure
commit 123456 (repo: example/repo)

Same for the logging.

What we have:

[INFO]  cogito: This is the Cogito GitHub status resource. Tag: 0.10.1, commit: 05c92db, build date: 2023-05-31
[INFO]  cogito.put.ghCommitStatus: GitHub HTTP request: attempt=1 max=3
[INFO]  cogito.put.ghCommitStatus: commit status posted successfully: state=pending git-ref=123456

What we could have

[INFO]  cogito: This is the Cogito GitHub status resource. Tag: 0.10.1, commit: 05c92db, build date: 2023-05-31
[INFO]  cogito.put.ghCommitStatus: Processing commit git-ref=123456 author=johnny.stecchino comment="foo: add bar"
[INFO]  cogito.put.ghCommitStatus: GitHub HTTP request: attempt=1 max=3
[INFO]  cogito.put.ghCommitStatus: commit status posted successfully: state=pending git-ref=123456