8000 Forgejo PRs support by lbarcziova · Pull Request #925 · packit/ogr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Forgejo PRs support #925

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

Merged
merged 5 commits into from
May 5, 2025

Conversation

lbarcziova
Copy link
Member
@lbarcziova lbarcziova commented Apr 25, 2025

TODO:

  • add_label method
  • missing tests

Fixes #879

RELEASE NOTES BEGIN

Support for Forgejo pull requests has been added.

RELEASE NOTES END

@lbarcziova lbarcziova mentioned this pull request Apr 25, 2025
4 tasks

This comment was marked as outdated.

Copy link
Contributor


@staticmethod
def get_list(
project: "forgejo.ForgejoProject",
status: PRStatus = PRStatus.open,
) -> list["PullRequest"]:
raise NotImplementedError("TBD")
prs = project.api.repo_list_pull_requests(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How's the pagination? I think it should be paginated + iterable (not a list)

def add_label(self, *labels: str) -> None:
raise NotImplementedError("Not possible via Forgejo API.")

def get_all_commits(self) -> list[str]:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd expect pagination + iterable here too

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was considering it (and the same for the get_list), but I think it then conflicts with the naming of these methods and the user expectations that result from that. WDYT?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me, though you still need to paginate :/

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PTAL

This comment was marked as outdated.

@lbarcziova lbarcziova force-pushed the forgejo-prs branch 2 times, most recently from 7bb3239 to 636b158 Compare April 30, 2025 10:10

This comment was marked as outdated.

Co-authored-by: Matej Focko <mfocko@users.noreply.github.com>
Copy link
Contributor

@lbarcziova lbarcziova added the mergeit Merge via Zuul label May 5, 2025
Copy link
Contributor

Build succeeded (gate pipeline).
https://softwarefactory-project.io/zuul/t/packit-service/buildset/59a08fae827d4aff8e5d908b2229ab44

✔️ pre-commit SUCCESS in 3m 35s

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit f68be67 into packit:main May 5, 2025
26 of 32 checks passed
@lbarcziova lbarcziova deleted the forgejo-prs branch May 5, 2025 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mergeit Merge via Zuul
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement support for Forgejo PRs
2 participants
0