[PR #375] [MERGED] API Endpoints for collaborators #15344

Closed
opened 2025-11-02 11:44:29 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/375
Author: @ethantkoenig
Created: 12/12/2016
Status: Merged
Merged: 12/26/2016
Merged by: @lunny

Base: masterHead: api/collaborators


📝 Commits (1)

  • c643c6b API Endpoints for collaborators

📊 Changes

3 files changed (+108 additions, -1 deletions)

View changed files

📝 models/repo_collaboration.go (+9 -0)
📝 routers/api/v1/api.go (+6 -1)
📝 routers/api/v1/repo/collaborators.go (+93 -0)

📄 Description

Adds the following endpoints:

  • GET repos/:username/:reponame/collaborators: list collaborators
  • GET repos/:username/:reponame/collaborators/:collaborator: check if a user is a collaborator
  • DELETE repos/:username/:reponame/collaborators/:collaborator: remove a collaborator

These endpoints are part of the Github API


🔄 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/375 **Author:** [@ethantkoenig](https://github.com/ethantkoenig) **Created:** 12/12/2016 **Status:** ✅ Merged **Merged:** 12/26/2016 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `api/collaborators` --- ### 📝 Commits (1) - [`c643c6b`](https://github.com/go-gitea/gitea/commit/c643c6b727139ca958f6a94a32446d7c2680cf89) API Endpoints for collaborators ### 📊 Changes **3 files changed** (+108 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `models/repo_collaboration.go` (+9 -0) 📝 `routers/api/v1/api.go` (+6 -1) 📝 `routers/api/v1/repo/collaborators.go` (+93 -0) </details> ### 📄 Description Adds the following endpoints: - `GET repos/:username/:reponame/collaborators`: list collaborators - `GET repos/:username/:reponame/collaborators/:collaborator`: check if a user is a collaborator - `DELETE repos/:username/:reponame/collaborators/:collaborator`: remove a collaborator These endpoints are part of [the Github API](https://developer.github.com/v3/repos/collaborators/) --- <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 11:44:29 -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#15344