Commit Graph

259 Commits

Author SHA1 Message Date
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
Luke Kysow
e728d2548b Add Getting Started instructions. Rename gh-password to gh-token 2017-07-27 13:51:48 -07:00
Luke Kysow
6ce0bba798 Pass in session to be assumed each time 2017-07-18 09:07:21 -07:00
Luke Kysow
99a0f0c4df Delete dynamodb locking code since Atlantis only works with disk right now 2017-07-12 09:46:45 -07:00
Luke Kysow
23d6b0cbd6 Write docs for packages 2017-07-09 18:18:36 -07:00
Luke Kysow
8f149f362a Fix tests and run fmt 2017-07-09 01:16:21 -07:00
Luke Kysow
4aa91c2055 Server logging 2017-07-08 17:04:49 -07:00
Luke Kysow
7747bc54ed Allow atlantis to be called by the name of the api user 2017-07-08 13:34:23 -07:00
Luke Kysow
a6b265d31f Fix unnecessary github client arg 2017-07-02 18:15:16 -07:00
Luke Kysow
b76df168cd Delete old templates 2017-07-02 18:15:15 -07:00
Luke Kysow
707cbc71a4 Redo templates 2017-07-02 18:15:15 -07:00
Luke Kysow
66f3d27c38 Packages (#67)
* Delete middleware package, move aws to new package
* Refactor github_client into github package
* Move terraform_client to its own package
2017-07-02 14:20:30 -07:00
Luke Kysow
3187477a44 Change endpoint from /hooks to /events. Fixes #22 2017-07-02 14:19:35 -07:00
Luke Kysow
ac83457c36 Fork workflows (#64)
* Name LockURL route

* Support pull requests from forks
2017-07-01 18:40:43 -07:00
Luke Kysow
5ea4ccd1b2 Remove sshKey hack. Use go-homedir (#63)
* Remove sshKey hack. Use go-homedir

* Add go-homedir lib
2017-07-01 18:03:51 -07:00
Luke Kysow
6dfe20757e Only store plans locally. Keep them in workspace (#60)
* Only store plans locally. Keep them in workspace
2017-07-01 16:50:38 -07:00
Luke Kysow
8fbe662185 Return error if workspace doesn't exist (#61)
* Return error if workspace doesn't exist
* Default data dir to ~/.atlantis. Don't clean workspaces
* Run goimports
2017-07-01 16:17:22 -07:00
Luke Kysow
0daacbd29a Reject concurrent runs and comment back on PR (#51)
* Reject concurrent runs and comment back on PR
2017-07-01 14:58:58 -07:00
Anubhav Mishra
9ff948cb55 Project config (#56)
* first incomplete draft for project config and pre run refactor

* adding prerun and terraform 0.9 and above support

* partial review

* Changes from pull review. Fix approvals

* more clean up and refactor of terraform init and environment commands to support terraform 0.9.0 and above

* making apply similar to plan for appending extra arguments

* review

* missed apply executor changes and fixing tests
2017-07-01 14:51:50 -07:00
Anubhav Mishra
7f8f85a6a7 Detail view (#47)
* Adding the ability to get lock data and show it using the detail view in the ui for boltdb

* adding modal style

* Adding new modal based discard ui

* Adding detail view and get lock funtionality with unlocking with the UI

* lots of clean up after review

* using jquery most places now

* missed in merge

* this should cause a build failure

* moving e2e test as part of the test override step so they run if unit tests fail

* fixing boltdb tests

* turns out you can't fail fast in circleci

* don't compare locks
2017-06-25 15:24:07 -07:00
Luke Kysow
57e18399d7 Delete plan on successful apply (#46)
* Return locks when they're deleted

* Implement DeletePlan and DeletePlanByPull

* Clean up data from pull request on close

* Delete plan on successful apply
2017-06-25 10:11:51 -07:00
Anubhav Mishra
d91251483a Merge pull request #42 from hootsuite/locking
Include more data with locks like pull link and user
2017-06-22 22:36:56 -07:00
Luke Kysow
d50d897274 Refactor status (#41)
* Refactor status into its own struct
* Run gofmt
2017-06-21 09:47:36 -07:00
Luke Kysow
f7d088f581 Include more data with locks like pull link and user 2017-06-20 23:36:38 -07:00
Luke Kysow
906033e99e Implement local plan storage. Refactor S3 storage (#33)
* added new flags `plan-backend`, `plan-s3-bucket`, `plan-s3-prefix` and deleted `s3-bucket`
* interface `plan.Backend` that is implemented by `file` and `s3`
* simplified s3 code
* didn't end up following my suggestions in #30 since storing stuff in metadata requires you to `Get` the object *first* and then use the metadata. By parsing the `Key` to get repo, pull, path, and env, it skips an initial `Get` step, and I can download directly to the correct directory
* allow users to specify `application/json` or `application/x-www-form-urlencoded` for the webhook delivery type
* remove sending of special header for pull request api (fixes #11)

Closes #30 and #17 and #11
2017-06-20 00:22:42 -07:00
Anubhav Mishra
dd4ffcd56f Merge pull request #32 from hootsuite/e2e-tests
Adding ci for atlantis
2017-06-18 17:13:16 -07:00
Anubhav Mishra
b2ea325cee fixing go get 2017-06-17 15:06:13 -07:00
Luke Kysow
a837298f5e Alphabetize flags 2017-06-17 15:05:12 -07:00