Add GetIssueTemplates() #603

Merged
techknowlogick merged 5 commits from noerw/go-sdk:547-issue-templates into main 2023-04-19 16:19:27 +00:00
Member

This API was added in 1.16, template forms will be in 1.18.
I don't think we need to add version checks, as the respective .Form field will just be empty on unsupported versions, but correct me if I'm wrong here.

fixes #547

  • i took the freedom to change the struct property names from the API names for clarity
  • I didn't add tests because it would effectively just test gitea's API to be functional (as long as there is only this GET method)
This API was added in 1.16, [template forms](https://github.com/go-gitea/gitea/pull/20987) will be in 1.18. I don't think we need to add version checks, as the respective `.Form` field will just be empty on unsupported versions, but correct me if I'm wrong here. fixes #547 - i took the freedom to change the struct property names from the API names for clarity - I didn't add tests because it would effectively just test gitea's API to be functional (as long as there is only this GET method)
noerw added this to the v0.16.0 milestone 2022-09-15 13:54:28 +00:00
noerw added the
kind/feature
label 2022-09-15 13:54:28 +00:00
noerw added 1 commit 2022-09-15 13:54:29 +00:00
add GetIssueTemplates()
Some checks failed
continuous-integration/drone/pr Build is failing
b52226825d
noerw added 1 commit 2022-09-16 09:43:02 +00:00
Merge branch 'main' into 547-issue-templates
All checks were successful
continuous-integration/drone/pr Build is passing
f12b9a4783
Owner

could you add some tests?

could you add some tests?
Owner

@noerw can you please update this pull :)

@noerw can you please update this pull :)
noerw added 1 commit 2023-02-16 17:12:51 +00:00
Merge branch 'main' into 547-issue-templates
Some checks failed
continuous-integration/drone/pr Build is failing
f57a37fca7
Author
Member

@6543 merged current main.

could you add some tests?

currently don't have the time. also, from the PR head:

I didn't add tests because it would effectively just test gitea's API to be functional (as long as there is only this GET method)

@6543 merged current `main`. > could you add some tests? currently don't have the time. also, from the PR head: > I didn't add tests because it would effectively just test gitea's API to be functional (as long as there is only this GET method)
jolheiser added 1 commit 2023-04-19 03:36:17 +00:00
techknowlogick approved these changes 2023-04-19 15:55:53 +00:00
jolheiser approved these changes 2023-04-19 15:59:53 +00:00
@ -0,0 +1,97 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
Owner

Technically 2023, but probably fine here anyways and I don't want to hold this back any more than needed

Technically 2023, but probably fine here anyways and I don't want to hold this back any more than needed
jolheiser added 1 commit 2023-04-19 16:00:04 +00:00
Merge branch 'main' into 547-issue-templates
All checks were successful
continuous-integration/drone/pr Build is passing
8afdc025c3
techknowlogick merged commit 24a404e561 into main 2023-04-19 16:19:27 +00:00
Sign in to join this conversation.
No description provided.