[PR #5354] [MERGED] Implement git refs API for listing references (branches, tags and other) #17763

Closed
opened 2025-11-02 15:34:49 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/5354
Author: @lafriks
Created: 11/18/2018
Status: Merged
Merged: 11/27/2018
Merged by: @techknowlogick

Base: masterHead: feat/tags_api


📝 Commits (9)

📊 Changes

268 files changed (+48603 additions, -10 deletions)

View changed files

📝 Gopkg.lock (+153 -5)
integrations/api_repo_git_ref_test.go (+34 -0)
📝 routers/api/v1/api.go (+4 -0)
routers/api/v1/repo/git_ref.go (+115 -0)
📝 routers/api/v1/swagger/repo.go (+14 -0)
📝 templates/swagger/v1_json.tmpl (+131 -0)
vendor/code.gitea.io/git/ref.go (+18 -0)
📝 vendor/code.gitea.io/git/repo_branch.go (+16 -5)
vendor/code.gitea.io/git/repo_ref.go (+51 -0)
vendor/code.gitea.io/sdk/gitea/repo_refs.go (+69 -0)
vendor/github.com/emirpasic/gods/LICENSE (+41 -0)
vendor/github.com/emirpasic/gods/containers/containers.go (+35 -0)
vendor/github.com/emirpasic/gods/containers/enumerable.go (+61 -0)
vendor/github.com/emirpasic/gods/containers/iterator.go (+109 -0)
vendor/github.com/emirpasic/gods/containers/serialization.go (+17 -0)
vendor/github.com/emirpasic/gods/lists/arraylist/arraylist.go (+228 -0)
vendor/github.com/emirpasic/gods/lists/arraylist/enumerable.go (+79 -0)
vendor/github.com/emirpasic/gods/lists/arraylist/iterator.go (+83 -0)
vendor/github.com/emirpasic/gods/lists/arraylist/serialization.go (+29 -0)
vendor/github.com/emirpasic/gods/lists/lists.go (+33 -0)

...and 80 more files

📄 Description

Implements git refs API /repos/{owner}/{repo}/git/refs/{ref}. Implements only GET methods fully compatible with GitHub API

Partly fixes #2738

Depends on go-gitea/go-sdk#129

TODO:

  • SDK pull request
  • Tests

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/5354 **Author:** [@lafriks](https://github.com/lafriks) **Created:** 11/18/2018 **Status:** ✅ Merged **Merged:** 11/27/2018 **Merged by:** [@techknowlogick](https://github.com/techknowlogick) **Base:** `master` ← **Head:** `feat/tags_api` --- ### 📝 Commits (9) - [`ea3fb69`](https://github.com/go-gitea/gitea/commit/ea3fb6956f3ebe3ca3d2f37056658c0886d8bc4f) Inital routes to git refs api - [`d768d25`](https://github.com/go-gitea/gitea/commit/d768d25b6b4d502df7d821369027e60ba803f9dd) Git refs API implementation - [`85d595b`](https://github.com/go-gitea/gitea/commit/85d595b49b4ad3b64a830bd49a7bb26e706a9cba) Update swagger - [`a78b596`](https://github.com/go-gitea/gitea/commit/a78b5962740635b39d269f1e5bc374de1ffba683) Fix copyright - [`1627e02`](https://github.com/go-gitea/gitea/commit/1627e0254677369bf6f97e90a4a42d41d7a388f4) Make swagger happy add basic test - [`df76f74`](https://github.com/go-gitea/gitea/commit/df76f74488d61219ba1ba4c1217701940337c95c) Fix test - [`dd4970e`](https://github.com/go-gitea/gitea/commit/dd4970e0667a4b23f9933ca2d7d08cd0f88d108b) Fix test again :) - [`a90045c`](https://github.com/go-gitea/gitea/commit/a90045c99f8fd3dfc620bb42485eb95080763e3d) Merge branch 'master' into feat/tags_api - [`7e4defb`](https://github.com/go-gitea/gitea/commit/7e4defbf8dfd65a1cd3f5ace0cc6eab9b6d18b73) Merge branch 'master' into feat/tags_api ### 📊 Changes **268 files changed** (+48603 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `Gopkg.lock` (+153 -5) ➕ `integrations/api_repo_git_ref_test.go` (+34 -0) 📝 `routers/api/v1/api.go` (+4 -0) ➕ `routers/api/v1/repo/git_ref.go` (+115 -0) 📝 `routers/api/v1/swagger/repo.go` (+14 -0) 📝 `templates/swagger/v1_json.tmpl` (+131 -0) ➕ `vendor/code.gitea.io/git/ref.go` (+18 -0) 📝 `vendor/code.gitea.io/git/repo_branch.go` (+16 -5) ➕ `vendor/code.gitea.io/git/repo_ref.go` (+51 -0) ➕ `vendor/code.gitea.io/sdk/gitea/repo_refs.go` (+69 -0) ➕ `vendor/github.com/emirpasic/gods/LICENSE` (+41 -0) ➕ `vendor/github.com/emirpasic/gods/containers/containers.go` (+35 -0) ➕ `vendor/github.com/emirpasic/gods/containers/enumerable.go` (+61 -0) ➕ `vendor/github.com/emirpasic/gods/containers/iterator.go` (+109 -0) ➕ `vendor/github.com/emirpasic/gods/containers/serialization.go` (+17 -0) ➕ `vendor/github.com/emirpasic/gods/lists/arraylist/arraylist.go` (+228 -0) ➕ `vendor/github.com/emirpasic/gods/lists/arraylist/enumerable.go` (+79 -0) ➕ `vendor/github.com/emirpasic/gods/lists/arraylist/iterator.go` (+83 -0) ➕ `vendor/github.com/emirpasic/gods/lists/arraylist/serialization.go` (+29 -0) ➕ `vendor/github.com/emirpasic/gods/lists/lists.go` (+33 -0) _...and 80 more files_ </details> ### 📄 Description Implements git refs API `/repos/{owner}/{repo}/git/refs/{ref}`. Implements only `GET` methods fully compatible with GitHub API Partly fixes #2738 Depends on go-gitea/go-sdk#129 TODO: - [x] SDK pull request - [x] Tests --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 15:34:49 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17763