Possible to use this tool on local machine?
Hey there, nice project. From the looks of it, this tool is supposed to run on CI server. Just asking if it's possible to use this tool on local machine when running terraform plan/apply? Thanks!
If you specify Slack as its notificator, you can run this from your machine.
---
ci: circleci
notifier:
slack:
token: $SLACK_TOKEN
$ terraform plan | tfnotify plan
However, as you said, tfnotify cannot be run in local machine if GitHub is selected as notificator. Because tfnotify cannot know the GitHub P-R number if it ran in local machine.
For now, tfnotify can know that number if it ran in CI machine, thanks to this feature: https://github.com/mercari/tfnotify/blob/ecebe3404f08929df282021b5c426b1cb96752bc/ci.go#L44-L48
Do you need to run this in your local machine?