Commit graph

75 commits

Author SHA1 Message Date
sinavir
b0ec4a7386
feat: add fmt make target
Some checks failed
Setup Terraform / Terraform Versions (push) Has been cancelled
2025-03-08 23:35:16 +01:00
sinavir
9e053a1c5c
feat: move to forgejo sdk 2025-03-08 23:34:54 +01:00
sinavir
d9bf396917
feat: init fork 2025-03-08 23:34:51 +01:00
Renovate Bot
0107199941 chore(deps): update dependency go to v1.24.1 (#99)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [go](https://go.dev/) ([source](https://github.com/golang/go)) | toolchain | patch | `1.24.0` -> `1.24.1` |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xODUuNyIsInVwZGF0ZWRJblZlciI6IjM5LjE4NS43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/99
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2025-03-05 20:00:38 +00:00
Renovate Bot
9d8df177e7 chore(deps): update gitea/gitea docker tag to v1.23.3 (#95)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/95
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2025-02-16 17:45:51 +00:00
Renovate Bot
28b767e9ae chore(deps): update dependency go to v1.24.0 (#93)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/93
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2025-02-16 17:45:45 +00:00
Renovate Bot
f0900cd4f4 chore(deps): update dependency go to v1.23.5 (#90)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/90
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2025-01-23 18:15:19 +00:00
ThreadCrux
d842c3e093 version-update in docs and examples (#92)
Update version to release version across supporting files/documentation as lazy users, such as myself, love copying and pasting from these.

Note these docs are also displayed on Terraform/OpenTofu documents and should be kept in cadence with release versions.

Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/92
Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.com>
Co-authored-by: ThreadCrux <threadcrux@noreply.gitea.com>
Co-committed-by: ThreadCrux <threadcrux@noreply.gitea.com>
2025-01-23 02:36:12 +00:00
Marek Mościchowski
ad2afa8da0 feat/variables (#88)
**Is your feature request related to a problem? Please describe.**
I hate to manually set Action secrets and variables. It is error-prone. It is super useful to set them via terraform as those values are probably in your state 😃.
Because my changes to gitea go-sdk were approved, it is now possible!
a239deff5a

**Describe the solution you'd like**

```
resource "gitea_repository_actions_variable" "test" {
  repository_owner = "marek"
  repository = "nginx"
  variable_name = "FROM_TF"
  value = "Test value"
}

resource "gitea_repository_actions_secret" "test" {
  repository_owner = "marek"
  repository = "nginx"
  secret_name = "SECRET_FROM_TF"
  secret_value = "Test secret"
}
```

closes #89

Co-authored-by: Marek Mościchowski <marek.moscichowski@miquido.com>
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/88
Co-authored-by: Marek Mościchowski <marek@noreply.gitea.com>
Co-committed-by: Marek Mościchowski <marek@noreply.gitea.com>
2025-01-10 18:29:37 +00:00
Renovate Bot
6a7d2f6917 chore(deps): update gitea/gitea docker tag to v1.23.1 (#86)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/86
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2025-01-10 17:55:01 +00:00
Renovate Bot
fef306499c fix(deps): update module code.gitea.io/sdk/gitea to v0.20.0 (#87)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/87
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2025-01-10 17:54:51 +00:00
Renovate Bot
f8f59dc3cb chore(deps): update gitea/gitea docker tag to v1.22.6 (#83)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/83
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2025-01-05 03:37:44 +00:00
Renovate Bot
0f9f409792 chore(deps): update gitea/gitea docker tag to v1.22.5 (#82)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/82
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2024-12-12 05:11:40 +00:00
Renovate Bot
9d3abdec1d chore(deps): update dependency go to v1.23.4 (#81)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/81
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2024-12-12 05:11:24 +00:00
Renovate Bot
c62a1c5d52 fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.35.0 (#80)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/80
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2024-11-30 02:55:41 +00:00
Renovate Bot
33cfcfc4c0 fix(deps): update module github.com/hashicorp/terraform-plugin-docs to v0.20.1 (#79)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/79
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2024-11-30 02:04:17 +00:00
Renovate Bot
dc1c98428e chore(deps): update gitea/gitea docker tag to v1.22.4 (#78)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/78
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2024-11-30 02:02:53 +00:00
Renovate Bot
568b5b4b44 fix(deps): update module github.com/hashicorp/terraform-plugin-docs to v0.20.0 (#77)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/77
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2024-11-16 00:20:47 +00:00
Renovate Bot
d6f158385d chore(deps): update gitea/gitea docker tag to v1.22.3 (#76)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/76
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2024-11-16 00:20:00 +00:00
techknowlogick
61a5e3c8a2 lock to version 1 of goreleaser 2024-09-18 14:46:56 -04:00
Jörg Markert
a07bd291f5 feat: add branch_protection resource (#72)
added terraform tests for the resource

Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/72
Co-authored-by: Jörg Markert <joerg.markert@gmail.com>
Co-committed-by: Jörg Markert <joerg.markert@gmail.com>
2024-09-11 17:32:48 +00:00
Renovate Bot
aa450c1855 fix(deps): update module code.gitea.io/sdk/gitea to v0.19.0 (#71)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/71
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2024-08-16 16:09:45 +00:00
Renovate Bot
9a338d640c chore(deps): update actions/checkout action to v4 (#70)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/70
Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.com>
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2024-07-26 18:00:44 +00:00
venc0r
4b114faecf feat: add authorization header for webhooks (#69)
Co-authored-by: Jörg Markert <venc0r@live.com>
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/69
Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.com>
Co-authored-by: venc0r <venc0r@noreply.gitea.com>
Co-committed-by: venc0r <venc0r@noreply.gitea.com>
2024-07-16 14:36:46 +00:00
Renovate Bot
fb56ad7c76 chore(deps): update goreleaser/goreleaser-action action to v6 (#67)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/67
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2024-07-16 14:36:30 +00:00
Renovate Bot
b0585b00f1 chore(deps): update gitea/gitea docker tag to v1.22.1 (#68)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/68
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2024-07-16 14:36:14 +00:00
Renovate Bot
62e71e6fac fix(deps): update module github.com/hashicorp/terraform-plugin-docs to v0.19.4 (#66)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/66
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2024-06-05 06:00:31 +00:00
Renovate Bot
9101616d60 fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.34.0 (#63)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/63
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2024-06-05 06:00:20 +00:00
Renovate Bot
95d0747839 fix(deps): update module github.com/hashicorp/terraform-plugin-docs to v0.19.3 (#64)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/64
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2024-05-31 15:16:04 +00:00
Renovate Bot
f55b8617d1 chore(deps): update gitea/gitea docker tag to v1.22.0 (#65)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/65
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2024-05-31 15:08:45 +00:00
Renovate Bot
15348d755a fix(deps): update module code.gitea.io/sdk/gitea to v0.18.0 (#62)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/62
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2024-05-03 17:30:52 +00:00
Renovate Bot
c5a6da0a3d chore(deps): update gitea/gitea docker tag to v1.21.11 (#59)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/59
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2024-05-03 17:24:54 +00:00
Renovate Bot
cf8eb21ca4 fix(deps): update module github.com/hashicorp/terraform-plugin-docs to v0.19.2 (#61)
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2024-05-02 17:26:15 +00:00
Renovate Bot
278bd943b1 chore(deps): update gitea/gitea docker tag to v1.21.8 (#55)
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2024-03-14 17:42:49 +00:00
Renovate Bot
71f11fe8b9 fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.33.0 (#56)
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2024-02-26 21:22:16 +00:00
Renovate Bot
153af2e0ac fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.32.0 (#53)
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2024-02-20 06:28:07 +00:00
Renovate Bot
7cbea02973 chore(deps): update hashicorp/setup-terraform action to v3 (#54)
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2024-02-20 06:26:34 +00:00
Renovate Bot
6614cca9d4 fix(deps): update module github.com/hashicorp/terraform-plugin-docs to v0.18.0 (#52)
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2024-02-19 23:51:05 +00:00
Renovate Bot
af1532648a chore(deps): update gitea/gitea docker tag to v1.21.5 (#51)
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2024-02-19 23:50:57 +00:00
Renovate Bot
ea942f2d3b fix(deps): update module github.com/hashicorp/terraform-plugin-docs to v0.17.0 (#50)
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2024-01-18 17:20:15 +00:00
Renovate Bot
7c16a693a8 chore(deps): update gitea/gitea docker tag to v1.21.4 (#49)
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2024-01-18 17:12:59 +00:00
Renovate Bot
c4c1edc9bd fix(deps): update module code.gitea.io/sdk/gitea to v0.17.1 (#46)
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2024-01-06 05:12:46 +00:00
Renovate Bot
23c9273de5 chore(deps): update actions/setup-go action to v5 (#43)
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2023-12-23 05:55:08 +00:00
Renovate Bot
502034af9f fix(deps): update module code.gitea.io/sdk/gitea to v0.17.0 (#42)
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2023-12-23 05:54:18 +00:00
Renovate Bot
b472717098 chore(deps): update gitea/gitea docker tag to v1.21.3 (#44)
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2023-12-23 05:54:02 +00:00
Renovate Bot
122ec8f817 fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.31.0 (#45)
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2023-12-23 05:53:47 +00:00
Renovate Bot
09dbfe7ee4 chore(deps): update gitea/gitea docker tag to v1.21.1 (#40)
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2023-11-28 05:45:01 +00:00
Renovate Bot
71083f9d0a fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.30.0 (#37)
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2023-11-16 00:53:07 +00:00
tobiasbp
167ce6ed80 add-scope-to-token (#33)
This PR adds the ability to set scopes for tokens (they can not be used for much without). Removed the _username_ from the _token resource_ as the owner can not be configured, as it will be owned by the user creating the resource.

As far as I can tell, it's not possible to modify the scopes for a existing token using the API, so a token created by the provider will be recreated if the list of scopes is updated. This reflects what is possible using the GUI.

This PR fixes this issue: https://gitea.com/gitea/terraform-provider-gitea/issues/32

Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/33
Co-authored-by: tobiasbp <tobiasbp@noreply.gitea.com>
Co-committed-by: tobiasbp <tobiasbp@noreply.gitea.com>
2023-11-16 00:52:35 +00:00
Tobias Balle-Petersen
557ea2673a New resources for managing team membership (#36)
This PR adds two new resources, _gitea_team_membership_ & _gitea_team_members_, in an attempt to decouple _gitea_team_ resources from team memberships. This facilitates the removal of members from teams without altering/recreating an existing _team_ resource.

This PR adresses this issue: https://gitea.com/gitea/terraform-provider-gitea/issues/30

The ability to set members in the _gitea_team_ resource has been removed.

The resources proposed here are inspired by similar resources in the _GitHub_ provider:
* [team_members](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/team_members)
* [team_membership](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/team_membership)

# gitea_team_members
A single resource manages all members of a team.

- This resource must be recreated when membership changes. This means, that other team members will temporarily loose their membership until the recreation of the resource is complete.
- If the recreation of the resource fails, other users will have lost their membership until the resource can be recreated.

# gitea_team_membership
A single resource holds the relationship between a single user and a single team.

-  Memberships can be deleted without affecting other users.

Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/36
Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.com>
Co-authored-by: Tobias Balle-Petersen <tobiasbp@gmail.com>
Co-committed-by: Tobias Balle-Petersen <tobiasbp@gmail.com>
2023-11-16 00:52:16 +00:00