Luke Kysow
5976b7c1bd
Merge pull request #1128 from katenels/master
...
Log apply start at info level
2020-07-27 09:02:38 -07:00
Luke Kysow
67b2217245
Retry get pull request calls to github
...
These calls have been 404'ing lately, likely due to eventual consistency
issues on GitHub's side where they send the PR created webhook but it's
not yet available on their API.
To work around this, we will retry up to 3 times with a 1s delay.
2020-07-25 23:46:41 -07:00
Kate Nelson
fa4b703f9a
Log apply start at info level
2020-07-23 10:35:38 -04:00
Chris Alexander
4568213356
Reversed if statement for comment splitting
2020-07-10 18:13:05 -05:00
Mark Keisler
caf3319b7d
Bring back the change from
...
2f074727e2 (diff-e348084f0b7562996b0bd5d429158e53)
that was clobbered.
2020-07-09 11:21:00 -05:00
Roberto Hidalgo
50a414cc2d
Ignore .tflint.hcl ( #1075 )
...
* Ignore .tflint.hcl
2020-07-07 11:06:52 -07:00
Chris Alexander
aa1bfc0a27
Add "plan" to continued statement
2020-07-01 10:11:33 -05:00
Luke Kysow
197972a195
Update jquery to 1.5.1
...
(didn't think I'd be doing this in 2020! :D)
2020-06-25 13:41:10 -07:00
Luke Kysow
d3a6d18710
Merge remote-tracking branch 'origin/master' into deleted-status
2020-06-23 22:22:10 -07:00
Luke Kysow
4455e8b050
Merge pull request #1091 from runatlantis/unlock-cmd
...
Unlock cmd
2020-06-23 21:54:08 -07:00
Paris Morali
aed8d22b52
Implement atlantis unlock
...
This command is run on a pr and deletes all locks for the pr
2020-06-23 20:42:03 -07:00
Luke Kysow
875abf1362
Refactoring to github app code
...
- rename gh-app-key to gh-app-key-file for clarity
- change git credentials writer to append a line if there is an existing
.git-credentials file and in the case of the github app to replace the
old github app line
- removed automatically setting --write-git-creds to true when using a
github app and instead requiring this is set specifically
2020-06-19 11:41:44 -07:00
rob
13ebeee1d3
Error out instead of panicking when passed a bad keyfile
2020-06-16 21:27:24 -04:00
rob
2509240b9a
listen to pull_request_review*, docs on webhooks
2020-06-16 21:04:09 -04:00
rob
dffba3687a
enable webhook url, listen to issue_comment event
2020-06-16 20:47:18 -04:00
Paris Morali
ab7016063a
Atlantis lock discard via VCS comment
...
This successfully deletes the atlantis lock and
allows a competing PR to plan, but doesn not delete
the actual plans, so a user can still apply after
the lock is discarded.
This will be investigated in a follow up commit
Also fixed the basic mark down rendering for the discard command
2020-06-08 15:56:58 +01:00
parmouraly
abd2161bbb
Fix typo from master merge conflict
2020-06-04 16:46:15 +01:00
parmouraly
ad512f100c
Merge branch 'master' into fix-automerge-on-noapply
2020-06-04 16:32:25 +01:00
parmouraly
8a905f9c0b
Typo in BoltDB test
2020-06-04 16:27:23 +01:00
parmouraly
036e1f699e
Fix typo on boltDB reference
2020-06-04 16:21:16 +01:00
parmouraly
f546b69800
Remove BoltDB interface and mock as not needed
2020-06-04 16:12:26 +01:00
rob
011d3f8229
Test against a live repo, fix accordingly
...
more docs, add installation step
2020-06-03 20:25:11 -04:00
rob
227ce9cbf4
Upgrade to github/v31 for CompleteAppManifest
...
split fixtures out elsewhere, add working dir test
2020-06-03 20:18:13 -04:00
Roberto Hidalgo
199cdfe192
Play around with github app credentials
2020-06-03 20:16:24 -04:00
Sam Park
2f074727e2
Fix GraphQL URL for Github Enterprise
...
Partially addresses #1009 , but doesn't fix it entirely. The 406 response
is still a puzzler.
2020-06-03 11:34:44 -07:00
parmouraly
9689dbb981
Fix lint error
2020-06-03 17:08:16 +01:00
parmouraly
421b24738e
Integrate some more PR feedback including a test
2020-06-03 17:00:30 +01:00
Mark Brennan
1269c8f1a5
Fixed Azure URL parameter for WriteGitCreds
...
The AzureDevopsUser, AzureDevopsToken, and the AzureDevopsURL are combined
to create the .git-credentials file.
When supplying the full FQDN, https://dev.azure.com , https://
is written twice to the .git-credentials file.
2020-06-02 13:20:44 -04:00
Richard Lee
0f496c867a
Export ctx.RepoRelDir to run step environment. ( #1063 )
...
* Export ctx.RepoRelDir to run step environment.
2020-06-01 17:06:56 -07:00
Christopher Ketchum
88e397ed6d
vcs/github_client: add logging around github API calls ( #1042 )
2020-06-01 16:42:03 -07:00
Florent Monbillard
1594fc2f83
GitLab's Merge Requests are using ! not #
2020-05-28 17:09:59 -04:00
tammert
856170821c
Changed default log level for web requests from INFO to DEBUG
2020-05-26 19:52:13 +02:00
Luke Kysow
df21016f81
Merge pull request #1049 from runatlantis/auto-generate-commit
...
Update go-github, empty automerge commit
2020-05-25 16:56:05 -07:00
Luke Kysow
7b2a0efc82
Merge pull request #1048 from runatlantis/update-pegomock
...
Update pegomock
2020-05-25 16:55:45 -07:00
CJ Ketchum
d7ce63742e
Add test for plan-draft behavior
2020-05-25 16:45:38 -07:00
Christopher Ketchum
c300dee745
Add flag to toggle autoplanning on draft PRs
2020-05-25 16:28:55 -07:00
Luke Kysow
aa01df6f7d
Merge pull request #1052 from runatlantis/draining
...
Draining cleanup
2020-05-25 15:45:54 -07:00
Luke Kysow
43ebee3175
Draining cleanup
2020-05-25 15:09:51 -07:00
Luke Kysow
909723f22e
Merge pull request #1051 from runatlantis/draining
...
Support graceful shutdown
2020-05-25 15:09:25 -07:00
Luke Kysow
78b1ea25d5
Refactor draining feature
...
- trigger on SIGTERM/INT rather than HTTP POST
- remove atlantis drain command
- refactor into generic status controller
2020-05-25 15:03:08 -07:00
Luke Kysow
6418b57f55
Merge pull request #926 from segmentio/parallel-plans-upstream
...
Add support for parallel plans
2020-05-25 12:25:43 -07:00
Luke Kysow
3eaa67e1ef
Update go-github, empty automerge commit
...
Using an empty auto-merge commit will cause GitHub to autogenerate its
own commit message like would happen when using the UI.
2020-05-25 12:07:52 -07:00
Luke Kysow
8979a5fd09
Update pegomock
2020-05-25 11:58:50 -07:00
Paris Morali
cb26355da1
Add the rest of the BoltDB interface methods
2020-05-25 15:58:01 +01:00
Andrew Ring
3c87af9996
Release locks when closing draft PRs
...
If plan is run manually in a draft PR, the PR may hold locks. If
the draft PR is then closed, without first marking it Ready For
Review, the locks are left in place. To resolve this, we can
process closing draft PRs in the same way as non-draft PRs.
2020-05-13 10:35:22 -07:00
Paris Morali
ade9b31593
Add BoltDB interface and some relevant tests
...
With BoltDB interface we are able to mock/stub and
improve test coverage.
Some other refactoring was required to make code aware
and compatible with the new interface
2020-05-11 15:13:36 +01:00
Paris Morali
ce1d577f1d
Integrate PR feedback and tests adapted
2020-05-09 11:42:48 +01:00
Marc Barlo
0e22d2baab
gofmt -s
2020-05-08 10:01:47 -07:00
Marc Barlo
bebfdcaeef
Add back the parallel_plan repo cfg option
...
+ Default parallel plans breaks in a lot of autoplan scenarios i.e. with shared workspaces
+ Added a set of e2e tests to check parallel plans and applies
+ Also added an option to the Terraform client to turn off the plugin cache. This was breaking the e2e test suite (never seen this error in practice)
2020-05-07 22:14:04 -07:00
Marc Barlo
7452d6aa13
Make parallel plans the default. Add flag for parallel apply
2020-05-05 18:15:10 -07:00