Skip to content

[Feature Request] List Projects a Pull Request belongs to #211

@jasongaare

Description

@jasongaare

What’s missing?

When getting information for a pull request, I cannot seem to determine what Projects the PR belongs to. I can find things like milestone but not projects.

Why?

I want to write an Action to require all PRs belong to a GitHub Project.

Alternatives you tried

My current workaround is as follows:

  • get a list of all "open" projects for the repository
  • for each open project, get a list of all columns
  • for each column, get a list of all cards
  • compare EACH card (there are MANY) and look at the card's content_url and compare it to a PR's issue link.

This seems very overkill! Is there another way?

We are using Projects (Classic) by the way... so wondering if that API is on its way out regardless?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: SupportAny questions, information, or general needs around the SDK or GitHub APIs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions