mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-27 05:11:54 +08:00
1f951cdeba
* Create API endpoints for repo topics. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Generate swagger Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add documentation to functions Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Grammar fix Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Fix function comment Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Can't use FindTopics when looking for a single repo topic, as it doesnt use exact match Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add PUT /repos/{owner}/{repo}/topics and remove GET /repos/{owner}/{repo}/topics * Ignore if topic is sent twice in same request, refactoring. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Fix topic dropdown with api changes. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Style fix Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Update API documentation Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Better way to handle duplicate topics in slice Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Make response element TopicName an array of strings, instead of using an array of TopicName Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add test cases for API Repo Topics. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Fix format of tests Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Fix comments Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Fix unit tests after adding some more topics to the test fixture. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Update models/topic.go Limit multiple if else if ... Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com> * Engine as first parameter in function Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com> * Replace magic numbers with http status code constants. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Fix variable scope Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Test one read with login and one with token Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add some more tests Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Apply suggestions from code review Use empty struct for efficiency Co-Authored-By: Lauris BH <lauris@nix.lv> * Add test case to check access for user with write access Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Fix access, repo admin required to change topics Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Correct first test to be without token Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Any repo reader should be able to access topics. * No need for string pointer Signed-off-by: David Svantesson <davidsvantesson@gmail.com> |
||
---|---|---|
.. | ||
fixtures | ||
migrations | ||
access_test.go | ||
access.go | ||
action_list.go | ||
action_test.go | ||
action.go | ||
admin_test.go | ||
admin.go | ||
attachment_test.go | ||
attachment.go | ||
branches_test.go | ||
branches.go | ||
commit_status_test.go | ||
commit_status.go | ||
consistency.go | ||
convert.go | ||
error_oauth2.go | ||
error.go | ||
external_login_user.go | ||
git_diff_test.go | ||
git_diff.go | ||
gpg_key_test.go | ||
gpg_key.go | ||
graph_test.go | ||
graph.go | ||
helper_directory.go | ||
helper_environment.go | ||
helper.go | ||
issue_assignees_test.go | ||
issue_assignees.go | ||
issue_comment_list.go | ||
issue_comment_test.go | ||
issue_comment.go | ||
issue_dependency_test.go | ||
issue_dependency.go | ||
issue_label_test.go | ||
issue_label.go | ||
issue_list_test.go | ||
issue_list.go | ||
issue_lock.go | ||
issue_mail.go | ||
issue_milestone_test.go | ||
issue_milestone.go | ||
issue_reaction_test.go | ||
issue_reaction.go | ||
issue_stopwatch_test.go | ||
issue_stopwatch.go | ||
issue_test.go | ||
issue_tracked_time_test.go | ||
issue_tracked_time.go | ||
issue_user_test.go | ||
issue_user.go | ||
issue_watch_test.go | ||
issue_watch.go | ||
issue.go | ||
lfs_lock.go | ||
lfs.go | ||
log.go | ||
login_source.go | ||
mail_test.go | ||
mail.go | ||
main_test.go | ||
migrate.go | ||
models_test.go | ||
models.go | ||
notification_test.go | ||
notification.go | ||
oauth2_application_test.go | ||
oauth2_application.go | ||
oauth2.go | ||
org_team_test.go | ||
org_team.go | ||
org_test.go | ||
org.go | ||
pull_test.go | ||
pull.go | ||
release_test.go | ||
release.go | ||
repo_activity.go | ||
repo_branch.go | ||
repo_collaboration_test.go | ||
repo_collaboration.go | ||
repo_indexer.go | ||
repo_issue.go | ||
repo_list_test.go | ||
repo_list.go | ||
repo_mirror.go | ||
repo_permission_test.go | ||
repo_permission.go | ||
repo_redirect_test.go | ||
repo_redirect.go | ||
repo_tag.go | ||
repo_test.go | ||
repo_unit.go | ||
repo_watch_test.go | ||
repo_watch.go | ||
repo.go | ||
review_test.go | ||
review.go | ||
ssh_key_test.go | ||
ssh_key.go | ||
star_test.go | ||
star.go | ||
test_fixtures.go | ||
token_test.go | ||
token.go | ||
topic_test.go | ||
topic.go | ||
twofactor.go | ||
u2f_test.go | ||
u2f.go | ||
unit_tests.go | ||
unit.go | ||
update_test.go | ||
update.go | ||
upload.go | ||
user_follow_test.go | ||
user_follow.go | ||
user_heatmap_test.go | ||
user_heatmap.go | ||
user_mail_test.go | ||
user_mail.go | ||
user_openid_test.go | ||
user_openid.go | ||
user_test.go | ||
user.go | ||
userlist_test.go | ||
userlist.go | ||
webhook_dingtalk.go | ||
webhook_discord.go | ||
webhook_msteams.go | ||
webhook_slack.go | ||
webhook_telegram.go | ||
webhook_test.go | ||
webhook.go | ||
wiki_test.go | ||
wiki.go |