From 85b869d28b258ea6dc9376b201c1bc064e4d539c Mon Sep 17 00:00:00 2001 From: John Long Date: Sat, 29 Oct 2022 17:41:45 -0500 Subject: [PATCH] repository resource: add clone and html urls --- docs/resources/repository.md | 3 +++ gitea/resource_gitea_repository.go | 12 ++++++++++++ 2 files changed, 15 insertions(+) diff --git a/docs/resources/repository.md b/docs/resources/repository.md index d706873..ae63f33 100644 --- a/docs/resources/repository.md +++ b/docs/resources/repository.md @@ -93,7 +93,10 @@ Need to exist in the gitea instance ### Read-Only - `created` (String) +- `clone_url` (String) +- `html_url` (String) - `id` (String) The ID of this resource. +- `ssh_url` (String) - `permission_admin` (Boolean) - `permission_pull` (Boolean) - `permission_push` (Boolean) diff --git a/gitea/resource_gitea_repository.go b/gitea/resource_gitea_repository.go index f4e9ff5..9862b43 100644 --- a/gitea/resource_gitea_repository.go +++ b/gitea/resource_gitea_repository.go @@ -530,6 +530,18 @@ func resourceGiteaRepository() *schema.Resource { Optional: true, Default: "", }, + "clone_url": { + Type: schema.TypeString, + Computed: true, + }, + "html_url": { + Type: schema.TypeString, + Computed: true, + }, + "ssh_url": { + Type: schema.TypeString, + Computed: true, + }, }, Description: "`gitea_repository` manages a gitea repository.\n\n" + "Per default this repository will be initializiled with the provided configuration (gitignore, License etc.).\n" +