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
Add /projects/{forge} API endpoint #1159
Add /projects/{forge} API endpoint #1159
Conversation
Build succeeded.
|
result = [] | ||
first, last = indices() | ||
|
||
projects_list = GitProjectModel.get_forge(first, last, forge) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the expectation for the forge
argument? https://github.com
or github.com
?
I'm wondering what would be the most convenient way for API users to use the endpoint
@@ -599,6 +599,18 @@ def test_get_project(clean_before_and_after, a_copr_build_for_pr): | |||
assert project.project_url == "https://github.com/the-namespace/the-repo-name" | |||
|
|||
|
|||
def test_get_forge(clean_before_and_after, multiple_forge_projects): | |||
projects = GitProjectModel.get_forge(0, 10, "github.com") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oki, here's my answer :D
so will https://github.com
work as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, this will not work, as in other similar methods
6031b43
to
f9d39cc
Compare
Build succeeded.
|
Build succeeded (gate pipeline).
|
Needed for packit/dashboard#61