Open vmatyus opened 3 years ago
I hope this could help you ;)
tfnotify get commit number from environment variables
of travis ci.
If pull request is opened, using TRAVIS_PULL_REQUEST_SHA
.
And also there is no pull request, using TRAVIS_COMMIT
It means, comment on commit depends on Pull Request Status.
Code here
WHAT
My project uses
tfnotify
with Github and Travis as CI. A CI execution for a specific commit also produces aplan
and anapply
results. Theplan
result goes to the actual commit, that the CI was executed on, while theapply
result goes to the previous commit. It would be good if an execution result would go to the same commit and this commit would be the actual commit.WHY
To review back the CI execution results, it is easier to compare the plan and apply results, if it goes to the current commit.
I tried to create an image that depicts the current operation: