Gerald Barker
1137a82c60
Add the ability to disable Atlantis locking a repo ( #1340 )
...
* Add the ability to disable Atlantis locking a repo
* Fix incorrect logic when creating locking Client
Co-authored-by: kbaldyga <kbaldyga@gmail.com >
* Add tests for noOpLocker to improve coverage
Co-authored-by: Gerald Barker <geraldbarker@mail.com >
Co-authored-by: kbaldyga <kbaldyga@gmail.com >
2021-01-14 10:20:27 -05:00
Istvan Tapaszto
68e20b1dc1
Fixing AutoMerge issue with Azure DevOps ( #1289 )
...
* Getting Azure DevOps user id on the fly
* mcdafydd/go-azuredevops module version increased
* Additional errorhandling
* Additional errorhandling Part2
* Doc update: Access permission requirement
* Fixing modules.txt
* Fixing modules.txt
* Modules.txt fixed
* AzureDevops dependencies committed to vendor
* Fixing AzureDevOpsClient tests
* Fixing invalid bitbucket references in docs
* Fixing modules.txt
* Fixing go.mod
Co-authored-by: Tapaszto, Istvan <istvan.tapaszto@msciintegration.onmicrosoft.com >
2021-01-13 09:01:06 -05:00
Nish Krishnan
1513ee6421
Add support for fetching gh app user. ( #30 ) ( #1334 )
...
* Add support for fetching gh app user. (#30 )
* Upgrade pegomock.
* go mod vendor.
2021-01-05 15:21:31 -08:00
Matija Buriša
43fce15076
add a valid variable definition file extension to list of exceptions ( #1331 )
...
* add a valid variable definition file extension to list of exceptions
* run go fmt
Co-authored-by: Matija Burisa <Matija.Burisa@infobip.com >
2021-01-04 12:08:50 -08:00
Alex Castle
d827f2c1d5
chore: correct cast from int to string in error message formating ( #1327 )
2020-12-22 10:29:22 -05:00
Sarvar Muminov
3456dc934b
Add pre workflow custom hooks to run scripts before workflow execution(plan, apply, etc) ( #1255 )
...
* Updated runatlantis.io/docs to have `pre-workflow-hooks` use cases and examples
2020-12-14 15:19:52 -05:00
Marc Goujon
5a1e19155d
Added support for restricting workflows usage repo-side ( #1099 )
...
* Added the ability to restrict server-side workflows on a per repo basis
* Fixed documentation broken links
* Removed unneeded
2020-12-14 10:37:37 -08:00
Laura Martin
b6e8403688
Use regex to filter filenames ( #1253 )
...
I ran into an issue where I have a directory of templates I use that I
name `foo.tf.template`. I found that Atlantis was running against this
directory and failing, which was unexpected behaviour.
This is because we're just checking if `.tf` is contained within a
filename, rather than checking if it's the suffix of the filename.
Instead, we can use regex to ensure that we're only filtering on actual
Terraform files, inclusive of `.tf` and `.tfvars` suffixes.
There are obviously some alternative ways I could get around this:
rename my templates to `foo.template` without the `.tf`.
I also really liked the idea of a `.atlantisignore` file previously
cited[1], but it was rejected in favour of explicitly defining exactly
which directories to run it in. We have a large number of directories so
this wasn't appealing to me.
I felt this behaviour was sufficiently unexpected that it was worth
making a more explicit filter.
[1] https://github.com/runatlantis/atlantis/issues/26
2020-12-12 21:18:40 -05:00
chenrui
d51a4706b3
chore(deps): sprig 3.1.0 ( #1313 )
...
* chore(deps): sprig 3.1.0
Signed-off-by: Rui Chen <rui@meetup.com >
* go mod vendor
Signed-off-by: Rui Chen <rui@meetup.com >
2020-12-12 21:05:15 -05:00
Alex Castle
8d921a7dc7
Fix >= 0.12.0 version detection for versions with prereleases
2020-12-03 23:20:44 -05:00
Nish Krishnan
1513089988
Merge pull request #1238 from lyft/fix-for-1236
...
Ensure that refreshed creds are used to update remote.
2020-12-02 16:39:02 -05:00
Gerald Barker
9a0cfd3c53
Set ApplyDisabled on CommentParser to fix help output
2020-11-01 22:58:11 +00:00
Gerald Barker
d2610a78af
Add Option to globally disable apply ( #1230 )
...
* Add Option to globally disable apply
Co-authored-by: Gerald Barker <geraldbarker@mail.com >
2020-10-27 21:01:39 -07:00
Luke Kysow
c789e1a787
Merge pull request #1177 from dmattia/dmattia/concurrency_flag
...
Added configurable parallelism pool size
2020-10-26 17:31:12 -07:00
Nish Krishnan
1110c526c5
Ensure that refreshed creds are used to update remote.
2020-10-23 20:06:09 -07:00
Nish Krishnan
0a7d6441fd
lint.
2020-10-14 17:41:37 -07:00
Nish Krishnan
9fa0c91bcb
[1193] Fix merge strategy for gh apps
2020-10-14 17:35:38 -07:00
Alex Castle
6b6b2640d2
Fix ignore condition for atlantis apply status
2020-10-02 10:45:55 -04:00
Alex Castle
732b19b62c
Fix AzureDevops PR status updates
2020-10-01 19:16:47 -04:00
Luke Kysow
f787100b6a
Fix bug responding to draft pr updates
...
Previously any update to a draft PR other than "closed" would default to
being an "open" event due to a bug in the parsing logic.
2020-09-22 09:49:41 -07:00
Rich Stokes
e899a5d5c9
Improve working dir lock error formatting ( #1182 )
...
* Improve working dir lock error formatting
2020-09-11 16:46:02 -07:00
dmattia
605dde7b2b
Fix typos
2020-09-03 10:57:52 -05:00
dmattia
d1fe029438
Added configurable parallelism pool size
2020-09-03 10:51:40 -05:00
Luke Kysow
7363cce699
Update config-inspect version
2020-08-27 12:26:20 -07:00
Luke Kysow
cd37563857
Merge pull request #1159 from runatlantis/disable-autoplan
...
Disable autoplan global flag
2020-08-18 15:59:59 -07:00
ValdirGuerra
34f9f3f348
Add support for disable autoplan from server config
2020-08-18 15:55:22 -07:00
Luke Kysow
cbe0b18c0e
Refactor --skip-clone-no-changes work.
2020-08-18 15:48:33 -07:00
Quan Hoang
54e3dc2ef0
Skip cloning PR repository in case of no projects configured in repo config file were changed
2020-08-18 15:48:05 -07:00
Luke Kysow
eb46201003
Merge pull request #1135 from mcdafydd/azdo/fixes-1079
...
NewRepo() encodes spaces in clone URLs.
2020-08-06 15:42:35 -07:00
Luke Kysow
37ab0e2742
Merge pull request #1130 from runatlantis/allowlist
...
Deprecate --repo-whitelist for --repo-allowlist
2020-08-06 15:37:34 -07:00
Luke Kysow
f91cc27b68
Update go-gitlab
2020-08-06 15:30:20 -07:00
David McPike
0aea14a8ec
Fixes #1079
...
- NewRepo() encodes clone URLs that contain spaces
2020-07-29 23:58:15 -05:00
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
8ac19e4017
Deprecate --repo-whitelist for --repo-allowlist
2020-07-25 23:50:09 -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