Commit Graph

3002 Commits

Author SHA1 Message Date
renovate[bot]
f95e8db982 chore(deps): update dependency git-lfs/git-lfs to v3.4.1 in dockerfile (#4055)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-14 01:19:53 +00:00
Alan Bover
da72b8366f Update working_dir.go (#4048)
fix mergeAgain function for when the PR is created from a fork
2023-12-13 15:06:04 +00:00
David Glasser
bcd91960db Fix rendering of 🚮 in default templates (#4044)
It seems that GitHub has changed its Markdown renderer such that an
emoji followed by a string of plain text (with no other formatting)
followed by a colon at the end of the line renders as plain text instead
of as the emoji. Compare the following two lines:

* 🚮 To delete all plans and locks for the PR, comment:

* 🚮 To **delete** all plans and locks for the PR, comment:

While this seems like it is probably a GitHub bug, we can work around it
by adding some formatting between the emoji and the end of the line,
which matches the bullet point above it anyway.
2023-12-13 09:55:52 -05:00
Rui Chen
27475fb071 chore: bump muffet from 2.6.3 to 2.9.3 (#3868) 2023-12-12 20:58:24 -05:00
renovate[bot]
85481fe4ab fix(deps): update module github.com/google/uuid to v1.5.0 in go.mod (#4045)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-13 00:40:30 +00:00
Takuma Ishikawa
917ea92839 fix: always build images when tags are pushed (#4040)
When files of the default branch is the same as files of a tag,
dorny/paths-filter does not detect changes and no new images are pushed.

Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2023-12-11 21:48:01 -08:00
renovate[bot]
a81a1bee0a fix(deps): update module github.com/google/go-github/v54 to v57 in go.mod (#4035)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-11 23:26:11 -06:00
Luke Massa
d643c521ab feat: Remove flag for allow repo config (#3911)
* Remove option to allow repo

* Fix internal test

* Fix fmt

* Fmt

* Fix rebase

---------

Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
Co-authored-by: Dylan Page <dylan.page@autodesk.com>
2023-12-12 03:24:38 +00:00
Daniel Martins
95c5fe0fb3 fix: Enforce policy checks for overridden apply reqs (#3960)
* Enforce policy checks for overriden apply reqs

* Another take on the fix

This new version only includes the 'policies_passed' req back if
policy checks are enabled for the project.

* Fix test

* Fix comment

* Fix spelling

---------

Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2023-12-11 21:48:23 -05:00
Simon Heather
d1661dac4d fix: In Gitlab, if an Atlantis 'Apply' Pipeline Job fails, it cannot be Re-Applied on the Same Commit (#4007)
* Fix GitLab CI Must Pass

* Fix projectID

* nolint:staticcheck

* nolint:gosec

* Fix formatting

---------

Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
Co-authored-by: Dylan Page <dylan.page@autodesk.com>
2023-12-12 02:45:58 +00:00
Finn Arne Gangstad
4d278ca6b4 refactor: regen mocks, use existing VerifyWasCalled(Never()) (#3863) 2023-12-11 21:35:13 -05:00
Marcos Diez
ce95f8ee05 feat: Jobs now shown in a table in the main page (#3784)
* feat: better logging for UpdateStatus

* feat: jobs now shown in a table in the main page

---------

Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2023-12-11 21:34:33 -05:00
Byron Morales
070fd3e925 docs: Update using-atlantis.md (#4003)
* Update using-atlantis.md

I was having problems with `atlantis apply` when I wanted to apply all pending plans.

The problem was that every time I tried to execute this action, I got "Ran Apply for 0 projects:" because atlantis, for the apply action, did not know where the tfstates were. 

I think this is something that we can add in the documentation, because I did not find this clarification
The problem was that every time I tried to execute this action, I was getting "Ran Apply for 0 projects:" due to atlantis, for the apply action, didn’t know where the tfstates were located. 

I think it's something we can add in the documentation, because I didn’t find this aclaration

* Update runatlantis.io/docs/using-atlantis.md

---------

Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2023-12-11 21:30:38 -05:00
Luke Massa
fb484ad8eb feat: Remove flag for disable apply (#3912)
* Add code for disabling apply flag

* Better comment
2023-12-11 20:29:21 -05:00
Luke Massa
242640bbe9 fix: fetch before checking status (#3832)
* fix: fetch before checking status

* Switch to fetch
2023-12-12 00:45:05 +00:00
Ghais Zaher
379efd2d08 fix: clone repository before getting working dir (#3867)
* fix: clone repository before getting working dir

* unrelated change

* move TryLock up

* fix workspace and add e2e tests

* fix description

---------

Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2023-12-11 19:29:21 -05:00
renovate[bot]
d93f85a0c3 fix(deps): update module github.com/google/go-github/v54 to v57 in go.mod (main) (#4032)
* fix(deps): update module github.com/google/go-github/v54 to v57 in go.mod

* fix(deps): go-github v57 in server/events/vcs/testdata/fixtures.go

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
2023-12-12 00:21:42 +00:00
Luay-Sol
f79ece8243 feat: Add project depends on functionality (#3292)
* feat: implemented the code for the depends on functionality

Co-authored-by: Vincent <106497818+vincentgna@users.noreply.github.com>
2023-12-11 12:43:34 -08:00
Finn Arne Gangstad
562a15172a set policy_check status to success when no changes (#3780)
Autoplan would set the "policy_check" status to successful if
there were no modified projects in a PR, but "atlantis plan"
would not. Changed "atlantis plan" to behave like autoplan
in this regard.
2023-12-11 19:08:38 +00:00
Gabriel Martinez
56e38b4151 chore(atlantis): fix linter errors (#3690)
* chore(atlantis): fix linter errors

* fix superfluous-else

* revert gitlab check

* ignore stub funcs on azuredevops_client

* remove fetch-depth

* remove fail_on_error

* fix plan_step_runner_test.go

* more lint fixes

---------

Co-authored-by: Dylan Page <dylan.page@autodesk.com>
2023-12-11 19:02:16 +00:00
renovate[bot]
2e6758e6ee chore(deps): update actions/stale action to v9 in .github/workflows/stale.yml (#4031)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-11 01:07:47 +00:00
renovate[bot]
2c71e117ef chore(deps): update actions/setup-go action to v5 in .github/workflows/release.yml (#4027)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-09 02:04:29 +00:00
dependabot[bot]
3ecd457f90 chore(deps): bump vite from 4.4.9 to 4.4.12 (#4016)
* chore(deps): bump vite from 4.4.9 to 4.4.12

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.4.9 to 4.4.12.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v4.4.12/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v4.4.12/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix gitlab approvals links

Signed-off-by: Rui Chen <rui@chenrui.dev>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Rui Chen <rui@chenrui.dev>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
Co-authored-by: Rui Chen <rui@chenrui.dev>
2023-12-08 20:59:29 -05:00
renovate[bot]
16cf8fcdf0 fix(deps): update module github.com/spf13/viper to v1.18.1 in go.mod (#4026)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-09 00:43:15 +00:00
renovate[bot]
bc808e87ec chore(deps): update alpine docker tag to v3.19.0 in dockerfile (#4021)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-08 17:29:33 +00:00
Luke Massa
ad38f1f5dc feat: Relax constraints for alpine utilities (#4024) 2023-12-08 09:10:44 -08:00
renovate[bot]
0dd5ccacf5 fix(deps): update module github.com/spf13/viper to v1.18.0 in go.mod (#4020)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-08 06:08:33 +00:00
Luke Massa
f9cab6ab6a fix: Bump curl from 8.4 to 8.5 (#4019)
* fix: Relax constraint for installing curl

* Update Dockerfile
2023-12-07 21:49:27 -08:00
Andrew Fitzpatrick
0f8db49d2e fix: removing mr.Headpipeline.Source log when mr.HeadPipeline is missing (#3996)
* fix: removing mr.Headpipeline.Source log when mr.HeadPipeline is missing

* fix: remove  mr.HeadPipeline.Source from other log
2023-12-06 20:53:27 -08:00
renovate[bot]
6391d608f5 fix(deps): update module github.com/golang-jwt/jwt/v5 to v5.2.0 in go.mod (#4018)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-07 04:10:03 +00:00
renovate[bot]
91c477bb1c chore(deps): update dependency open-policy-agent/conftest to v0.47.0 in testing/dockerfile (#4017)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-07 00:52:26 +00:00
renovate[bot]
aebf153d32 chore(deps): update golang docker tag to v1.21.5 in testing/dockerfile (#4015)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-06 00:47:45 +00:00
Rui Chen
dacd44a264 chore(actions): labeler v4 to v5 (#4013)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2023-12-05 10:20:39 -05:00
renovate[bot]
183d885930 fix(deps): update github.com/hashicorp/terraform-config-inspect digest to a34142e in go.mod (#4014)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-05 01:36:09 +00:00
renovate[bot]
37144970da chore(deps): update dependency node to v20.10.0 in .node-version (#4010)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-04 03:02:36 +00:00
renovate[bot]
202ec92626 chore(deps): update dependency hashicorp/terraform to v1.6.5 in .circleci/config.yml (#4009)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-04 01:15:17 +00:00
renovate[bot]
cb3ccac221 chore(deps): update alpine docker tag to v3.18.5 in dockerfile (#4008)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-03 00:52:32 +00:00
renovate[bot]
032f4bde3c fix(deps): update github.com/shurcool/githubv4 digest to 1cffa1f in go.mod (#4006)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-02 00:27:25 +00:00
jskrill
00aae565b2 feat: add autodiscover enabled feature (#3895)
* add flag to allow the user disable the autodiscover

* add global config and doc

* feat: Implement autodiscover.mode

* fix: Minor doc fixes

* fix: Small fixes to docs/indent/tests

* fix: Line length, quoting, function comments

* fix: Add a few more tests and remove newlines

* fix: Always camel case never snake

---------

Co-authored-by: Marcelo Medeiros <m.medeiros@carepay.com>
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2023-11-29 15:43:53 -08:00
renovate[bot]
6ff0e2f90e chore(deps): update dependency @vuepress/plugin-google-analytics to v2.0.0-rc.0 in package.json (#3986)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-17 00:57:11 +00:00
Alexandru Marcencov
e9d89bb830 add script execution from docker-entrypoint.d folder (#3666)
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2023-11-16 11:30:14 -08:00
renovate[bot]
488a1ac92e chore(deps): update dependency hashicorp/terraform to v1.6.4 in .circleci/config.yml (#3981)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-16 01:53:34 +00:00
Eng Zer Jun
fd600d3bb1 perf: avoid allocations with (*regexp.Regexp).MatchString (#3881)
We should use `(*regexp.Regexp).MatchString` instead of
`(*regexp.Regexp).Match([]byte(...))` when matching string to avoid
unnecessary `[]byte` conversions and reduce allocations.

Example benchmark:

func BenchmarkMatch(b *testing.B) {
	for i := 0; i < b.N; i++ {
		if match := branchRegex.Match([]byte("main")); !match {
			b.Fail()
		}
	}
}

func BenchmarkMatchString(b *testing.B) {
	for i := 0; i < b.N; i++ {
		if match := branchRegex.MatchString("main"); !match {
			b.Fail()
		}
	}
}

goos: linux
goarch: amd64
pkg: github.com/runatlantis/atlantis/server/core/config
cpu: AMD Ryzen 7 PRO 4750U with Radeon Graphics
BenchmarkMatch-16          	 8269699	       141.4 ns/op	       4 B/op	       1 allocs/op
BenchmarkMatchString-16    	14298446	        95.81 ns/op	       0 B/op	       0 allocs/op
PASS
ok  	github.com/runatlantis/atlantis/server/core/config	2.784s

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2023-11-15 09:00:00 -08:00
Marcos Diez
57fdc5a641 feat: full window sized terminal (#3781)
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2023-11-14 23:03:23 -08:00
Henry Muru Paenga
ce2b99223a fix: Check user permissions on autoplan (#3742)
* Check user permissions on autoplan

---------

Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2023-11-14 22:21:11 -08:00
Felipe Zipitría
896c394988 fix: remove unused packages after gosu cleanup (#3975)
Signed-off-by: Felipe Zipitria <fzipitria@life360.com>
Co-authored-by: Felipe Zipitria <fzipitria@life360.com>
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2023-11-14 21:17:31 -08:00
Luke Massa
99035ce7ac Remove deprecated repo whitelist flag (#3922) 2023-11-14 15:41:49 -08:00
renovate[bot]
8532bc3208 fix(deps): update module github.com/xanzy/go-gitlab to v0.94.0 in go.mod (#3978)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-14 00:56:03 +00:00
renovate[bot]
a793620475 fix(deps): update module golang.org/x/text to v0.14.0 in go.mod (#3972)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-11 02:47:59 +00:00
renovate[bot]
46c1d757f8 chore(deps): update dependency @vuepress/plugin-google-analytics to v2.0.0-beta.68 in package.json (#3971)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-11 02:41:40 +00:00