Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible Issues API #3729

Closed
2 of 6 tasks
bkcsoft opened this issue Oct 4, 2016 · 1 comment
Closed
2 of 6 tasks

Incompatible Issues API #3729

bkcsoft opened this issue Oct 4, 2016 · 1 comment
Labels
🔨 enhancement Make it better, faster

Comments

@bkcsoft
Copy link
Contributor

bkcsoft commented Oct 4, 2016

  • Gogs version (or commit ref): 0.9.99.0915
  • Git version:
  • Operating system:
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • SQLite
  • Can you reproduce the bug at https://try.gogs.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

The current implementation for Issues API isn't compatable with GitHubs API. I'm proposing that this is fixed.
Reasons being:

  • Docs states that Gogs aims to be compatible.
  • Ability to use existing libs for talking to Gogs
  • External services can support Gogs "for free" by having support for GitHub (which most do already)

Current discrepancies are as follows:

Data-format

gogs:

{
  "id": 1,
  "name": "foobar",
  "color": "#bada55"
}

GitHub:

{
  "name": "foobar",
  "color": "bada55",
  "url": "https://api.github.com/repos/foo/bar/labels/foobar"
}

Fetching by :id instead of :name

Gogs: /repos/:owner/:repo:/labels/:id
GitHub: /repos/:owner/:repo/labels/:name

I'll add more things here as they appear

@unknwon
Copy link
Member

unknwon commented Jun 5, 2017

#4549

@unknwon unknwon closed this as completed Jun 5, 2017
Martchus pushed a commit to Martchus/gogs that referenced this issue Aug 27, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🔨 enhancement Make it better, faster
Projects
None yet
Development

No branches or pull requests

2 participants