* Running 'atlantis unlock' on a PR Causes The Whole Working Directory to be Deleted
* Update events controller tests
* Fix events controller tests
---------
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
* fix: Previous implementation tried to do comment parsing inside github, and only worked for 'atlantis' command.
This commit improves on that to make it possible to implement reactions in other VCS providers and also reuse the existing comment parsing.
* test: Add negative test to confirm reactions are not added for invalid comments
* test: Add a negative test to confirm invalid commands do not get a reaction
* feat: Basic implementation of github reactions on PRs
Adds eyes whenever it detects an `atlantis` command.
* feat: Make the emoji reaction configurable
* tests: Add a mocked test for EmojiReaction being called in github
* ci: Disable revive linter for stubs
* Adding check for Azure DevOps Test Webhook URL so they aren't processed like real events
* feat: customize vcs comment command executable name
* Altering case on isAzureDevOpsTestRepoURL function
* Altering case on URL parameter
* Altering checks to ensure all Azure DevOps Ignore tests pass
* Extending setup method to support Azure DevOps
* Fixing issue from merge conflict error
* gofmt
* Adding null checks to Test URL checks
* moving azuredevopsTestUrl to const
* Changing azuredevopsTestUrl to azuredevopsTestURL
* Cleaning up return statement
Co-authored-by: Ken Kaizu <k.kaizu38@gmail.com>
---------
Co-authored-by: Ken Kaizu <k.kaizu38@gmail.com>
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
* Adding GetIsDeleted
* Adding test to see if ADO sucessfully passes all ignore statements
* Changing Ignore Passing test to use matcher
* Changing to use setup method
* Adding a check for deleted comments in AzureDevOps event handler
* adding test for ignoring azure devops deleted comments
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil. This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>