Skip to content

forge pr list --head owner:branch does not apply --head with gitea/forgejo #111

Open

Description

@untitaker

As discovered in #109, --head is not actually implemented for gitea. So this is silently incorrect. I think we can improve upon the status quo:

The same thing with --base afaict (though I haven't tested). There actually is a way to get specific PR from forgejo when both base and head are known, so that part could be implemented properly.

Activity

  1. untitaker commented on May 31, 2026

    @untitaker
    ContributorAuthor

    The same issue is with the --author filter. It seems that forgejo v16 (unreleased) implements all of the relevant filters: https://v16.next.forgejo.org/api/swagger#/repository/repoListPullRequests

    but this doesn't exist on codeberg.org and is not implemented in the gitea SDK. I'd have to use the raw HTTP client.

    Thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions