[PR #227] [MERGED] GitHub API Compliance Fixes #15236

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/227
Author: @bkcsoft
Created: 11/23/2016
Status: Merged
Merged: 12/2/2016
Merged by: @bkcsoft

Base: masterHead: api/github-compliance


📝 Commits (3)

  • 71bb6df Add undocumented endpoint for /repositories/:id
  • e6cfccd GitHub API Compliance (& linting)
  • e8e0539 Linting

📊 Changes

6 files changed (+78 additions, -9 deletions)

View changed files

📝 models/issue_label.go (+27 -1)
📝 modules/auth/auth.go (+3 -0)
📝 routers/api/v1/api.go (+2 -0)
📝 routers/api/v1/repo/issue.go (+16 -4)
📝 routers/api/v1/repo/label.go (+12 -1)
📝 routers/api/v1/repo/repo.go (+18 -3)

📄 Description

This fixes a few API-bugs

Fixes!

  • Label-data are now compliant
  • Labels can be fetched by Name (as well as ID)
  • API-Token can be sent via ?access_token=[...]
  • Issue-Listing can be queried for ?state=all to fetch all issues (for said repo)
  • Repos can be fetched by ID with /repositories/:id (undocumented feature, but it's used by OctoKit 😒 )

Backwards Compatability Breakage!

  • label.Color is no longer prefixed with # (since GH doesn't do that)

Related Issue: #64
I'm sure there are more Gogs-issues that I'm closing with this PR, but I'm to lazy ATM to look them up 😆


🔄 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/227 **Author:** [@bkcsoft](https://github.com/bkcsoft) **Created:** 11/23/2016 **Status:** ✅ Merged **Merged:** 12/2/2016 **Merged by:** [@bkcsoft](https://github.com/bkcsoft) **Base:** `master` ← **Head:** `api/github-compliance` --- ### 📝 Commits (3) - [`71bb6df`](https://github.com/go-gitea/gitea/commit/71bb6df75ae541687c64f5e6e4da16ea9e95acfe) Add undocumented endpoint for /repositories/:id - [`e6cfccd`](https://github.com/go-gitea/gitea/commit/e6cfccdd40397b95dcf3de0ea9b484feea954fc2) GitHub API Compliance (& linting) - [`e8e0539`](https://github.com/go-gitea/gitea/commit/e8e0539b454d622c1c428d03ac9c6f40d2654600) Linting ### 📊 Changes **6 files changed** (+78 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `models/issue_label.go` (+27 -1) 📝 `modules/auth/auth.go` (+3 -0) 📝 `routers/api/v1/api.go` (+2 -0) 📝 `routers/api/v1/repo/issue.go` (+16 -4) 📝 `routers/api/v1/repo/label.go` (+12 -1) 📝 `routers/api/v1/repo/repo.go` (+18 -3) </details> ### 📄 Description This fixes a few API-bugs ## Fixes! - Label-data are now compliant - Labels can be fetched by Name (as well as ID) - API-Token can be sent via `?access_token=[...]` - Issue-Listing can be queried for `?state=all` to fetch _all_ issues (for said repo) - Repos can be fetched by ID with `/repositories/:id` (undocumented feature, but it's used by OctoKit 😒 ) ## Backwards Compatability Breakage! - `label.Color` is no longer prefixed with `#` (since GH doesn't do that) Related Issue: #64 I'm sure there are more Gogs-issues that I'm closing with this PR, but I'm to lazy ATM to look them up 😆 --- <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:42:00 -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#15236