101 Commits

Author SHA1 Message Date
Renovate Bot 01113cfeae chore(deps): update dependency go to v1.25.7 (#148)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/148
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2026-02-05 00:15:17 +00:00
hamki fb08997f76 feat: Add SSH key normalization functionality (#126)
Added `normalizeSSHKey` and `normalizeSSHKeyForRepo` functions in `resource_gitea_public_key.go` and `resource_gitea_repository_key.go` to standardize SSH key formats for consistent comparison. Updated corresponding `DiffSuppressFunc` to support key comparison. This change improves the reliability of SSH key handling.

Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/126
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: hamki <me@hamki.org>
Co-committed-by: hamki <me@hamki.org>
2026-02-03 01:41:09 +00:00
Renovate Bot c307a5d670 fix(deps): update module github.com/hashicorp/terraform-plugin-docs to v0.24.0 (#142)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/142
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2026-02-03 01:39:02 +00:00
Renovate Bot 0b268f5f9c fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.38.2 (#144)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/144
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2026-02-03 01:08:30 +00:00
Renovate Bot 54a4d32243 chore(deps): update actions/setup-go action to v6 (#146)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/146
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2026-02-03 01:08:16 +00:00
Renovate Bot 9f229b00f1 chore(deps): update actions/checkout action to v6 (#145)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/145
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2026-02-03 01:08:06 +00:00
Renovate Bot 7c0141729d chore(deps): update dependency go to v1.25.6 (#139)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/139
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2026-02-03 01:05:29 +00:00
Renovate Bot 97026e3dab chore(deps): update gitea/gitea docker tag to v1.25.4 (#140)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/140
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2026-02-03 01:05:05 +00:00
Renovate Bot 680e712401 fix(deps): update module code.gitea.io/sdk/gitea to v0.23.2 (#141)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/141
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2026-02-03 01:04:45 +00:00
Renovate Bot 095bfa0418 fix(deps): update module github.com/hashicorp/terraform-plugin-docs to v0.22.0 (#123)
This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
| [github.com/hashicorp/terraform-plugin-docs](https://github.com/hashicorp/terraform-plugin-docs) | `v0.21.0` -> `v0.22.0` | [![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fhashicorp%2fterraform-plugin-docs/v0.22.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fhashicorp%2fterraform-plugin-docs/v0.21.0/v0.22.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>hashicorp/terraform-plugin-docs (github.com/hashicorp/terraform-plugin-docs)</summary>

### [`v0.22.0`](https://github.com/hashicorp/terraform-plugin-docs/releases/tag/v0.22.0)

[Compare Source](https://github.com/hashicorp/terraform-plugin-docs/compare/v0.21.0...v0.22.0)

BREAKING CHANGES:

- generate: The `.ProviderShortName` template function now uses the rendered provider name to derive the provider short name. Users that pass in the `--rendered-provider-name` flag might see a different output for this function ([#&#8203;492](https://github.com/hashicorp/terraform-plugin-docs/issues/492))

NOTES:

- generate: Generated import documentation will now contain more information about which methods are supported by the provider (CLI command, config by ID, config by identity). ([#&#8203;495](https://github.com/hashicorp/terraform-plugin-docs/issues/495))

FEATURES:

- generate: Added support for defining import example file (`import-by-string-id.tf`) using Terraform configuration and the `id` attribute ([#&#8203;472](https://github.com/hashicorp/terraform-plugin-docs/issues/472))
- generate: Added support for defining import example file (`import-by-identity.tf`) using Terraform configuration and the `identity` attribute (managed resource identity) ([#&#8203;496](https://github.com/hashicorp/terraform-plugin-docs/issues/496))

ENHANCEMENTS:

- validate: Add `allowed-guide-subcategories` and `allowed-resource-subcategories` to provide a list of allowed subcategories ([#&#8203;456](https://github.com/hashicorp/terraform-plugin-docs/issues/456))
- validate: Add `allowed-guide-subcategories-file` and `allowed-resource-subcategories-file` to provide a file containing a list of allowed subcategories ([#&#8203;456](https://github.com/hashicorp/terraform-plugin-docs/issues/456))
- generate: Default resource and function templates now use `.RenderedProviderName` instead of `.ProviderName` ([#&#8203;492](https://github.com/hashicorp/terraform-plugin-docs/issues/492))
- generate: Remove trailing whitespace from default function template when `.HasVariadic` evaluates to false ([#&#8203;489](https://github.com/hashicorp/terraform-plugin-docs/issues/489))

BUG FIXES:

- validate: Fixed a bug that caused all non-index files to be detected as guides ([#&#8203;456](https://github.com/hashicorp/terraform-plugin-docs/issues/456))
- generate: Remove `subcategory` field from default provider templates ([#&#8203;446](https://github.com/hashicorp/terraform-plugin-docs/issues/446))

</details>

---

### 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:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNy4yIiwidXBkYXRlZEluVmVyIjoiNDEuMTcuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: techknowlogick <techknowlogick@noreply.gitea.com>
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/123
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2025-08-01 01:07:55 +00:00
Egor Davydov 1e2743510f feat: add unit support for teams (#124)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/124
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.com>
Co-authored-by: Egor Davydov <evdavydov@gmail.com>
Co-committed-by: Egor Davydov <evdavydov@gmail.com>
2025-08-01 01:06:06 +00:00
Renovate Bot 8a845513a6 chore(deps): update gitea/gitea docker tag to v1.24.2 (#119)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/119
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2025-06-30 16:09:45 +00:00
Renovate Bot 803e8ad7cc chore(deps): update gitea/gitea docker tag to v1.24.0 (#116)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/116
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
v0.7.0
2025-06-10 18:12:59 +00:00
Renovate Bot cbbdebd747 fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.37.0 (#114)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/114
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2025-06-06 00:12:58 +00:00
Renovate Bot de4ff257de chore(deps): update dependency go to v1.24.4 (#115)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/115
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2025-06-06 00:12:33 +00:00
BravoDeltaBD 8d483a8a8d feat: add archive_on_destroy option to gitea_repository resource (#113)
Implementation for enhancement request #111

Tested by:
- terraform apply and destroy of examples folder. Runs correctly, deleting repos on destroy.
- terraform apply and destroy of repo without archive_on_delete. Runs correctly, deleting repo on destroy.
- terraform apply and destroy of repo with archive_on_delete = false. Runs correctly, deleting repo on destroy.
- terraform apply and destroy of repo with archive_on_delete = true. Runs correctly, results in the repository being archived correctly and the resource is removed from terraform state correctly.

Co-authored-by: Boris van der Donck <b.vanderdonck@kadaster.nl>
Co-authored-by: techknowlogick <techknowlogick@noreply.gitea.com>
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/113
Co-authored-by: BravoDeltaBD <bravodeltabd@noreply.gitea.com>
Co-committed-by: BravoDeltaBD <bravodeltabd@noreply.gitea.com>
2025-05-30 16:05:45 +00:00
Renovate Bot cd763c4178 fix(deps): update module github.com/hashicorp/terraform-plugin-docs to v0.21.0 (#98)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/98
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2025-05-16 15:28:11 +00:00
Mathieu Lemay e64d00a4fc feat: Add gitea_gpg_key resource (#106)
Add a new resource to manage a user's GPG keys. Due to a limitation in
Gitea's API, it is only possible to manage GPG keys for the current
user. This is not ideal, but still better than nothing.
If such an API is created, we could extend this resource with an
optional username, while keeping the current behavior as is.

Co-authored-by: techknowlogick <techknowlogick@noreply.gitea.com>
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/106
Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.com>
Co-authored-by: Mathieu Lemay <acidrain1@gmail.com>
Co-committed-by: Mathieu Lemay <acidrain1@gmail.com>
2025-05-16 15:08:46 +00:00
BravoDeltaBD 1d31451bcc Update examples and test pipeline to fix build. Add additional documentation. Update terraform docs. (#112)
PR to fix the build again before proposing changes to enable https://gitea.com/gitea/terraform-provider-gitea/issues/111.

This is my first time contributing to a Terraform Provider, any thoughts or feedback will be greatly appreciated!

No functionality is changed, only the examples, test pipelines and docs, so I did not increment the version of the provider.  I am still a bit unsure about the lifecycle management of Terraform Providers. Should it be incremented anyway?

Co-authored-by: Boris van der Donck <b.vanderdonck@kadaster.nl>
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/112
Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.com>
Co-authored-by: BravoDeltaBD <bravodeltabd@noreply.gitea.com>
Co-committed-by: BravoDeltaBD <bravodeltabd@noreply.gitea.com>
2025-05-16 14:40:46 +00:00
Renovate Bot 52fbca4e68 fix(deps): update module code.gitea.io/sdk/gitea to v0.21.0 (#102)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/102
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2025-05-13 18:32:24 +00:00
Renovate Bot 8896e83e8e chore(deps): update dependency go to v1.24.3 (#107)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/107
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2025-05-13 18:31:54 +00:00
Renovate Bot 419c275048 chore(deps): update gitea/gitea docker tag to v1.23.8 (#110)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [gitea/gitea](https://github.com/go-gitea/gitea) | patch | `1.23.7` -> `1.23.8` |

---

### Release Notes

<details>
<summary>go-gitea/gitea (gitea/gitea)</summary>

### [`v1.23.8`](https://github.com/go-gitea/gitea/releases/tag/v1.23.8)

[Compare Source](https://github.com/go-gitea/gitea/compare/v1.23.7...v1.23.8)

-   SECURITY
    -   Fix a bug when uploading file via lfs ssh command ([#&#8203;34408](https://github.com/go-gitea/gitea/issues/34408)) ([#&#8203;34411](https://github.com/go-gitea/gitea/issues/34411))
    -   Update net package ([#&#8203;34228](https://github.com/go-gitea/gitea/issues/34228)) ([#&#8203;34232](https://github.com/go-gitea/gitea/issues/34232))

-   BUGFIXES
    -   Fix releases sidebar navigation link ([#&#8203;34436](https://github.com/go-gitea/gitea/issues/34436)) [#&#8203;34439](https://github.com/go-gitea/gitea/issues/34439)
    -   Fix bug webhook milestone is not right. ([#&#8203;34419](https://github.com/go-gitea/gitea/issues/34419)) [#&#8203;34429](https://github.com/go-gitea/gitea/issues/34429)
    -   Fix two missed null value checks on the wiki page. ([#&#8203;34205](https://github.com/go-gitea/gitea/issues/34205)) ([#&#8203;34215](https://github.com/go-gitea/gitea/issues/34215))
    -   Swift files can be passed either as file or as form value ([#&#8203;34068](https://github.com/go-gitea/gitea/issues/34068)) ([#&#8203;34236](https://github.com/go-gitea/gitea/issues/34236))
    -   Fix bug when API get pull changed files for deleted head repository ([#&#8203;34333](https://github.com/go-gitea/gitea/issues/34333)) ([#&#8203;34368](https://github.com/go-gitea/gitea/issues/34368))
    -   Upgrade github v61 -> v71 to fix migrating bug ([#&#8203;34389](https://github.com/go-gitea/gitea/issues/34389))
    -   Fix bug when visiting comparation page ([#&#8203;34334](https://github.com/go-gitea/gitea/issues/34334)) ([#&#8203;34364](https://github.com/go-gitea/gitea/issues/34364))
    -   Fix wrong review requests when updating the pull request ([#&#8203;34286](https://github.com/go-gitea/gitea/issues/34286)) ([#&#8203;34304](https://github.com/go-gitea/gitea/issues/34304))
    -   Fix github migration error when using multiple tokens ([#&#8203;34144](https://github.com/go-gitea/gitea/issues/34144)) ([#&#8203;34302](https://github.com/go-gitea/gitea/issues/34302))
    -   Explicitly not update indexes when sync database schemas ([#&#8203;34281](https://github.com/go-gitea/gitea/issues/34281)) ([#&#8203;34295](https://github.com/go-gitea/gitea/issues/34295))
    -   Fix panic when comment is nil ([#&#8203;34257](https://github.com/go-gitea/gitea/issues/34257)) ([#&#8203;34277](https://github.com/go-gitea/gitea/issues/34277))
    -   Fix project board links to related Pull Requests ([#&#8203;34213](https://github.com/go-gitea/gitea/issues/34213)) ([#&#8203;34222](https://github.com/go-gitea/gitea/issues/34222))
    -   Don't assume the default wiki branch is master in the wiki API ([#&#8203;34244](https://github.com/go-gitea/gitea/issues/34244)) ([#&#8203;34245](https://github.com/go-gitea/gitea/issues/34245))

-   DOCUMENTATION
    -   Update token creation API swagger documentation ([#&#8203;34288](https://github.com/go-gitea/gitea/issues/34288)) ([#&#8203;34296](https://github.com/go-gitea/gitea/issues/34296))

-   MISC
    -   Fix CI Build ([#&#8203;34315](https://github.com/go-gitea/gitea/issues/34315))
    -   Add riscv64 support ([#&#8203;34199](https://github.com/go-gitea/gitea/issues/34199)) ([#&#8203;34204](https://github.com/go-gitea/gitea/issues/34204))
    -   Bump go version in go.mod ([#&#8203;34160](https://github.com/go-gitea/gitea/issues/34160))
    -   Remove hardcoded 'code' string in clone_panel.tmpl ([#&#8203;34153](https://github.com/go-gitea/gitea/issues/34153)) ([#&#8203;34158](https://github.com/go-gitea/gitea/issues/34158))

Instances on **[Gitea Cloud](https://cloud.gitea.com)** will be automatically upgraded to this version during the specified maintenance window.

</details>

---

### 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:eyJjcmVhdGVkSW5WZXIiOiI0MC4xMS42IiwidXBkYXRlZEluVmVyIjoiNDAuMTEuNiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/110
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-05-13 16:50:03 +00:00
Mathieu Lemay 0695b1f9e6 fix: Import all fields when importing a public key (#104)
The setPublicKeyResourceData function previously set the PublicKeyUser,
PublicKey, and PublicKeyReadOnlyFlag values from the terraform data
itself. While this works fine for data created with terraform, it
doesn't work when importing existing public keys. Imported keys would
have zero values for those fields, forcing a re-create. While this is
not a problem on its own, the delete part of the re-create would then
crash due to an empty username.

This fixes the import so the username and the key are imported from
Gitea's API.

Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/104
Co-authored-by: Mathieu Lemay <acidrain1@gmail.com>
Co-committed-by: Mathieu Lemay <acidrain1@gmail.com>
2025-04-17 15:01:05 +00:00
Mathieu Lemay 21ba4bb917 chore: Remove binary from repository (#105)
A compiled `terraform-provider-gitea` was added to the repository in
#85. Surely this is a mistake, this file definitely doesn't belong in
the git repository.

Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/105
Co-authored-by: Mathieu Lemay <acidrain1@gmail.com>
Co-committed-by: Mathieu Lemay <acidrain1@gmail.com>
2025-04-17 03:43:37 +00:00
Renovate Bot 2e28a6f7a7 chore(deps): update gitea/gitea docker tag to v1.23.7 (#103)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/103
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2025-04-10 18:25:36 +00:00
Renovate Bot 14e3c9797b chore(deps): update dependency go to v1.24.2 (#101)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/101
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2025-04-03 20:40:00 +00:00
OhMyMndy 45d4d20a02 fix: throw errors instead of ignoring (#85)
When not using an admin account, certain errors are ignored and you end up with the provider wanting to create an organization/user which already exists. It doesn't know it exists because the "not found" error is ignored. Now it is thrown so you see the problem.

Fixes #60

Co-authored-by: Mandy Schoep <2277717+OhMyMndy@users.noreply.github.com>
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/85
Co-authored-by: OhMyMndy <ohmymndy@noreply.gitea.com>
Co-committed-by: OhMyMndy <ohmymndy@noreply.gitea.com>
2025-03-31 15:47:02 +00:00
Renovate Bot 2dcbe89c22 fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.36.1 (#94)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/94
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2025-03-31 15:46:09 +00:00
Renovate Bot 08215602bc chore(deps): update gitea/gitea docker tag to v1.23.6 (#100)
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/100
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2025-03-31 15:45:49 +00: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!
https://gitea.com/gitea/go-sdk/commit/a239deff5a96c327c7d6f58c2a61eb95a5c7ac17

**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>
v0.6.0
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 v0.5.1 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>
v0.5.0
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>
v0.4.0
2024-07-16 14:36:46 +00:00