Commit Graph

86 Commits

Author SHA1 Message Date
Luke Kysow
a09ad79405 Refactor comment parsing into own class. 2018-02-28 10:42:21 -08:00
Luke Kysow
ab1d36d2c8 Comment back on pull request sooner on error.
- Refactor EventParser so it returns a comment we can send to the pull
request when a bad command or help command is commented.
- Remove now unneeded HelpExecutor because we comment right from the
EventsController now
- Use pflag package to parse commands instead of doing it manually
- Comment back when user types terraform instead of atlantis
2018-02-27 17:45:05 -08:00
Luke Kysow
6c159feff4 Rename to runatlantis from atlantisnorth. 2018-02-18 21:28:18 -08:00
Luke Kysow
0299d3ee12 Move to new atlantisnorth repo 2018-02-06 13:29:36 -08:00
Luke Kysow
c54dd589c6 Native SSL Support (#233)
Add two new flags ssl-key-file and ssl-cert-file to enable Atlantis to serve over SSL natively instead of going through an NGINX proxy.

This is a squashed commit containing the primary work by @natemueller
2018-01-23 11:32:22 -08:00
Luke Kysow
dd766b8ca8 Use 'SetBaseURL' to correctly set GitLab URL (#231)
This change updates server/server.go to set the GitLab URL using
the `Client.SetBaseURL` to set the base URL off of the configured
param. Previously even if a user set the `--gitlab-hostname` the
default URL for GitLab would not overriden to match this.
Work done by @jrasell

Closes #227
2018-01-15 21:53:51 -08:00
Luke Kysow
f72b674bd8 Rename Workspace to AtlantisWorkspace to avoid confusion 2017-12-17 17:16:04 -08:00
Luke Kysow
7c1220a655 Rename from environment to workspace 2017-12-17 16:46:49 -08:00
Luke Kysow
76e0de91f8 Shut down server safely on SIGINT/TERM. Fixes #21 2017-12-03 22:07:53 -08:00
Luke Kysow
cc924899e5 Add documentation for server, bootstrap and server/events packages 2017-11-26 21:41:06 -08:00
Luke Kysow
9dc9434db2 Slack integration (#199)
Thanks to @nicholas-wu-hs !
2017-11-16 20:13:06 -08:00
Luke Kysow
fa43febf60 Gitlab (#190)
Gitlab initial implementation
2017-11-16 13:22:28 -08:00
Luke Kysow
ec3d543c1e When log-level is debug, print filename and line (#189) 2017-11-12 10:11:21 -08:00
Luke Kysow
4670b67934 Merge pull request #175 from hootsuite/server-test
Server test
2017-11-04 11:40:49 -07:00
Luke Kysow
a70f7e46b0 Remove unused code 2017-11-02 07:09:21 -07:00
Luke Kysow
19c32d1124 Rename projectdetector 2017-11-01 08:03:26 -07:00
Luke Kysow
3528ce60ca Fix gometalint errors 2017-11-01 07:43:55 -07:00
Luke Kysow
65a07590de Test server 2017-11-01 07:41:37 -07:00
Luke Kysow
eeb39c5e7f Test plan_executor (#177)
* Refactor modified project detector and test

* Test plan_executor

* Unexport fields

* Update modified_projects_test.go
2017-10-31 20:16:12 -07:00
Luke Kysow
73d04fb89a Add gometalint. Fix errors (#176) 2017-10-31 20:07:41 -07:00
Luke Kysow
fe773fe757 Test cmd/server 2017-10-28 18:06:10 -07:00
Luke Kysow
1586b62425 Extract code from plan/apply into ProjectPreExecute. Test 2017-10-20 06:16:32 -07:00
Luke Kysow
031a1eba4f Refactor plan/apply into ProjectPreExecute 2017-10-19 07:43:10 -07:00
Luke Kysow
1caaaa03f7 Test pull request closed handling 2017-10-18 07:55:23 -07:00
Luke Kysow
aadd9ce367 Test EventsController Post() 2017-10-18 07:36:43 -07:00
Luke Kysow
75a71a9bbf Extract GHRequestValidator 2017-10-18 06:44:44 -07:00
Luke Kysow
c59b422949 Fmt 2017-10-18 06:44:44 -07:00
Luke Kysow
4dbe8cd0ba Move non-server packages under events 2017-10-18 06:44:44 -07:00
Luke Kysow
55dfc23754 Split Planner into two interfaces 2017-10-18 06:44:44 -07:00
Luke Kysow
1c3fb84112 Move non-server code into events package 2017-10-18 06:44:44 -07:00
Luke Kysow
a20a5e7474 Run fmt 2017-10-18 06:44:44 -07:00
Luke Kysow
99e4f79f60 Refactor POST /events into its own controller 2017-10-18 06:44:44 -07:00
Luke Kysow
a2b6f2b4f1 Move server code into server package 2017-10-18 06:44:44 -07:00
Luke Kysow
6eeb61d790 Merge pull request #158 from hootsuite/refactoring
Refactor executors. Testing
2017-10-18 06:42:21 -07:00
Luke Kysow
1d5efb9f1c Refactor executors. Testing 2017-10-12 22:05:59 -07:00
Luke Kysow
c777ba3067 Update to latest version of go-github (#157) 2017-10-12 23:36:09 -05:00
Luke Kysow
43bad69942 Test pull_closed_executor 2017-10-07 14:38:16 -07:00
Luke Kysow
770b07160b Run fmt 2017-10-06 13:35:35 -07:00
Luke Kysow
2f34003317 Interfaces for locking and workspace 2017-10-06 10:14:17 -07:00
Luke Kysow
cbbd59d09c Move bindata to static package. Clean up coverage script (#149) 2017-09-22 17:58:30 -07:00
Luke Kysow
508123041d Test command_handler 2017-09-17 18:04:03 -07:00
Luke Kysow
c3080810b2 Test HelpExecutor 2017-09-17 02:00:20 -07:00
Luke Kysow
7dc853d570 Test github_status. Create github.Client mock 2017-09-16 15:53:46 -07:00
Luke Kysow
aa99adb27c New parsing of comments. Accept all flags 2017-08-22 17:22:17 -07:00
Luke Kysow
6dc9de175d Remove assume role functionality. Rely on Terraform. Fixes #112 2017-08-15 09:58:41 -07:00
Luke Kysow
69957a836f Merge pull request #120 from hootsuite/webhook-secret
Add ability to verify webhook secret. Fixes #34
2017-08-14 15:22:11 -07:00
Luke Kysow
ff0f32ca01 Add ability toverify webhook secret. Fixes #34 2017-08-13 22:28:38 -07:00
Anubhav Mishra
edf82586a7 Adding support for https cloning using github username and token prov… (#117)
* Adding support for https cloning using github username and token provided instead of using ssh

* Update event_parser.go

* now using new name for CloneURL that is sanitized and has no username and password
2017-08-13 10:50:42 -07:00
Jay Wallace
6f583aae62 fixed preapply commands and added postapply/postplan (#102)
* fixed preapply commands and added postapply

* removed duplicate code and pass in stage name. Added post_plan. Updated docs
2017-08-10 10:02:44 -07:00
Luke Kysow
433f8875c3 Make bootstrap re-runnable. README edits 2017-08-01 22:37:20 -07:00