Luke Kysow
a24d940f5d
Rename DetermineCommand to Parse
2018-02-28 11:04:28 -08:00
Luke Kysow
2af2f10cbc
Ensure quotes are escaped for extra args.
2018-02-28 10:52:53 -08:00
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
9586c87246
Use pullNum instead of pull model in CreateComment
...
This will enable us to use the CreateComment function
without having the full pull request model.
2018-02-27 14:49:26 -08:00
Luke Kysow
75e90c1917
Quote extra comment args.
...
To avoid an attacker prepending something like
atlantis plan -- ; cat /etc/passwd
2018-02-27 12:55:26 -08:00
Luke Kysow
0fd503da8a
Update README for new flags.
2018-02-26 15:10:04 -08:00
Luke Kysow
6dd82c6de1
Validate directory flag. Unlock on preexecute err.
...
Ensure -d flag uses relative dirs and doesn't allow for
directory traversal.
Fix bug where if there was an error in PreExecute, we
wouldn't unlock, leaving a possibly abandoned lock.
2018-02-26 14:32:06 -08:00
Luke Kysow
0d1f50a7a8
Implement parsing for -w and -d flags.
2018-02-22 17:31:24 -08:00
Luke Kysow
6b0eece5c9
Fix bug with top-level modules/ directory.
...
Fixes #12 . Previously we would assume that if there was a change
in any modules/ directory, we should run plan in the parent. Now
we first check whether the parent has a main.tf file. If it doesn't
then we assume it's not actually the root of a project.
2018-02-20 12:54:10 -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
002980e423
Use env instead of workspace in 0.9
2017-12-21 16:34:49 -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
741295067a
Use workspace instead of env for tf >=0.10
2017-12-17 15:40:39 -08:00
Luke Kysow
0109bcfcac
Merge pull request #215 from hootsuite/safe-shutdown
...
Shut down server safely on SIGINT/TERM. Fixes #21
2017-12-17 14:45:20 -08:00
Luke Kysow
465dab1f23
Fix shadowed vars
2017-12-03 23:34:53 -08:00
Luke Kysow
76e0de91f8
Shut down server safely on SIGINT/TERM. Fixes #21
2017-12-03 22:07:53 -08:00
Luke Kysow
07b7293f3c
Support changes in modules/ directories
2017-11-30 20:15:12 -08:00
Luke Kysow
e5b06454ba
Fix gas linter errors. Disable err checking since that's handled by errcheck
2017-11-27 21:04:14 -08:00
Luke Kysow
cc924899e5
Add documentation for server, bootstrap and server/events packages
2017-11-26 21:41:06 -08:00
Luke Kysow
76b78c9316
Don't set as-user since not needed for workspace slack apps ( #206 )
2017-11-22 15:39:39 -08:00
Luke Kysow
acdf771ce7
Switch to newest pegomock library ( #205 )
2017-11-19 22:41:43 -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
62308e98a3
Test modules filtering bug that was fixed in #193
2017-11-16 12:55:37 -08:00
Patrick Otto
9c03615ccc
find project paths based on filtered modified files
2017-11-14 17:46:03 +01: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
6e85321752
Merge pull request #170 from hootsuite/flags
...
Test cmd/server
2017-10-29 11:38:13 -07:00
Luke Kysow
fe773fe757
Test cmd/server
2017-10-28 18:06:10 -07:00
Luke Kysow
f21331a0f9
Remove now unnecessary sed calls when generating mocks.
...
Don't need it since https://github.com/petergtz/pegomock/pull/50
was merged.
2017-10-26 06:42:25 -07:00
Luke Kysow
a3e503ce5a
Add pre_init and pre_get hooks. Fixes #160
2017-10-23 14:46:28 -07:00
Luke Kysow
9626b5f263
Run fmt, vet, and megacheck on builds ( #164 )
...
* Run fmt, vet, and megacheck on builds
* Fix govet and megacheck issues
2017-10-23 11:11:03 -07:00
Luke Kysow
4f624c673c
Add blank test files to ensure included in coverage report
2017-10-20 08:21:32 -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
e8ba765e56
Refactor pull closed test
2017-10-18 08:22:06 -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
e61d5187d1
Make template printing deterministic
2017-10-18 06:44:44 -07:00