Skip to content

Commit

Permalink
fix: Small fixes to docs/indent/tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jskrill committed Nov 2, 2023
1 parent 5a58715 commit 2375166
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 69 deletions.
59 changes: 0 additions & 59 deletions runatlantis.io/docs/autodiscover.md

This file was deleted.

16 changes: 16 additions & 0 deletions runatlantis.io/docs/server-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,22 @@ Values are chosen in this order:
* If a load balancer with a non http/https port (not the one defined in the `--port` flag) is used, update the URL to include the port like in the example above.
* This URL is used as the `details` link next to each atlantis job to view the job's logs.

### `--autodiscover-mode`
```bash
atlantis server --autodiscover-mode="<auto|enabled|disabled>"
# or
ATLANTIS_AUTODISCOVER_MODE="<auto|enabled|disabled>"
```
Sets auto discover mode, default is "auto". When set to "auto", projects in a repo will be discovered by
Atlantis when there are no projects configured in the repo config. If one or more projects are defined
in the repo config then auto discovery will be completely disabled.

When set to "enabled" projects will be discovered unconditionally. If an auto discovered project is already
defined in the projects section of the repo config, the project from the repo config will take precedence over
the auto discovered project.

When set to "disabled" projects will never be discovered, even if there are no projects configured in the repo config.

### `--automerge`
```bash
atlantis server --automerge
Expand Down
6 changes: 3 additions & 3 deletions server/core/config/parser_validator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1751,9 +1751,9 @@ func TestParserValidator_ParseGlobalCfgJSON(t *testing.T) {
"apply_requirements": ["mergeable", "approved"],
"allowed_overrides": ["workflow", "apply_requirements"],
"allow_custom_workflows": true,
"autodiscover": {
"mode": "enabled"
}
"autodiscover": {
"mode": "enabled"
}
},
{
"id": "github.com/owner/repo"
Expand Down
7 changes: 0 additions & 7 deletions server/core/config/valid/global_cfg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,6 @@ func TestNewGlobalCfg(t *testing.T) {
unDivergedReq: true,
policyCheckEnabled: false,
},
{
allowRepoCfg: true,
approvedReq: true,
mergeableReq: true,
unDivergedReq: true,
policyCheckEnabled: false,
},
{
allowRepoCfg: true,
approvedReq: true,
Expand Down

0 comments on commit 2375166

Please sign in to comment.