Commit Graph

2135 Commits

Author SHA1 Message Date
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
dc87ccc548 Merge pull request #75 from hootsuite/fix-test
Set time location after deserialization
2017-07-11 11:11:30 -07:00
Luke Kysow
75e3188713 Set time location after deserialization 2017-07-11 10:27:32 -07:00
Luke Kysow
98f4ab54a8 Merge pull request #74 from hootsuite/fix-test
Fix test
2017-07-10 19:01:50 -07:00
Luke Kysow
a57fc8847f Fix test 2017-07-10 18:58:19 -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
1083c59186 Merge remote-tracking branch 'origin/master' into logs 2017-07-09 00:56:13 -07:00
Luke Kysow
bc0962e267 Apply logging 2017-07-09 00:54:13 -07:00
Luke Kysow
32ee883edc Plan logging 2017-07-09 00:41:37 -07:00
Luke Kysow
e43f05e934 Allow atlantis to be called by the name of the api user (#72) 2017-07-08 19:54:14 -07:00
Luke Kysow
4aa91c2055 Server logging 2017-07-08 17:04:49 -07:00
Anubhav Mishra
915f194f21 using errors.Wrapf now (#70)
* using errors.Wrapf now

* using errors.Wrap now
2017-07-08 14:46:05 -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
0b95c701ba Templates (#68)
Refactor templates
2017-07-03 00:50:33 -07:00
Luke Kysow
a6b265d31f Fix unnecessary github client arg 2017-07-02 18:15:16 -07:00
Luke Kysow
0d03f5d0f8 format 2017-07-02 18:15:16 -07:00
Luke Kysow
0eb91a6ed7 Refactor github comment renderer 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
Anubhav Mishra
fc275c1e52 Update server.go 2017-07-02 17:02:30 -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
0384a09dfb Add contributing.md with testing guidelines (#65) 2017-07-02 03:19:41 -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
Anubhav Mishra
6a977cbea6 run terraform get for 0.8.8 and below (#62)
* run terraform get for 0.8.8 and below
2017-07-01 16:51:08 -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
Luke Kysow
44566649a1 Error if running commands on closed pull requests (#55) 2017-06-29 10:02:40 -07:00
Luke Kysow
e03775daf1 Comment on closed PR with locks/plans cleaned (#43) 2017-06-25 21:44:30 -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
Anubhav Mishra
9762e248d9 Update README.md 2017-06-20 20:58:15 -07:00
Luke Kysow
df51206aa0 Extract duplication around errors. Make updating status more consistent (#38) 2017-06-20 18:59:36 -07:00
Anubhav Mishra
9de7c6474e adding vendoring to atlantis (#40)
* adding vendoring to atlantis
* removing deps test target
2017-06-20 18:59:18 -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
dc8f0c13ef Update README.md 2017-06-19 23:00:36 -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
3a96724da5 fixed bugs with string comparision 2017-06-18 17:09:14 -07:00
Anubhav Mishra
b2f1b9d98c removing a redundant step merging into one and some notes 2017-06-18 16:48:32 -07:00
Anubhav Mishra
8581b37a7a fixes after review 2017-06-18 16:44:30 -07:00
Anubhav Mishra
898d3da670 regenerated all credentials 2017-06-17 17:23:21 -07:00
Anubhav Mishra
9af4e6f86c removing git url debug 2017-06-17 16:47:13 -07:00
Anubhav Mishra
035fece77e now printing github url to debug 2017-06-17 16:42:58 -07:00