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

Allow fetching organizational repositories #11

Merged
merged 2 commits into from
Feb 12, 2019
Merged

Allow fetching organizational repositories #11

merged 2 commits into from
Feb 12, 2019

Conversation

MarkusAmshove
Copy link
Contributor

This PR fixes the issue about fetching organizational repositories for me.

This way the user doesn't have to be an administrator.

@zopanix
Copy link

zopanix commented Feb 12, 2019

@stephenc : Can anyone review this ? This feature is quite important for larger organizations. I don't want my CI to be a gitea administrator to be able to fetch repositories of an organization

@stephenc stephenc merged commit ec5ae2c into jenkinsci:master Feb 12, 2019
@rayitopy
Copy link

Is this going to be released?

@stephenc
Copy link
Member

All things are possible. I want to check some other things against the “are we ready for tags” question later today first

@rayitopy
Copy link

Ok, thank you.

@lafriks
Copy link
Contributor

lafriks commented Feb 15, 2019

@stephenc we are not fully ready for tags yet. I have tags listing API but no API to get tag info

@stephenc
Copy link
Member

@lafriks
sad panda2

@stephenc
Copy link
Member

@lafriks will /repos/{owner}/{repo}/git/refs/{ref} not work for tags?

@lafriks
Copy link
Contributor

lafriks commented Feb 15, 2019

It will but it will return only ref name and commit

@lafriks
Copy link
Contributor

lafriks commented Feb 15, 2019

But keep in mind for refs/tags/v1.0 it could return also refs/tags/v1.0-rc1 etc as it returns everything starting with provided argument.

For example: https://try.gitea.io/api/v1/repos/lafriks/vscode/git/refs/tags/0.10.11

And also same trick as in github git/refs API can return both array or just object for single match:
https://try.gitea.io/api/v1/repos/lafriks/vscode/git/refs/tags/0.10.11-insiders

justusbunsi pushed a commit to justusbunsi/gitea-plugin that referenced this pull request Jul 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants