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

Feature request: Add flag to link created pull request with a GitHub project #459

Open
1 of 2 tasks
bxker opened this issue Feb 6, 2024 · 1 comment
Open
1 of 2 tasks
Labels
enhancement New feature or request

Comments

@bxker
Copy link

bxker commented Feb 6, 2024

The feature request

  • Add an optional flag --gh-project-id to the multi-gitter CLI that adds an opened pull request to an existing GitHub project.
  1. Use the PR id and the passed in project id to create the link, using this graphql mutation:
mutation {
  addProjectV2ItemById(input: {
    projectId: "<GH_PROJECT_ID>"
    contentId: "<GH_PR_ID>"
  }) {
    clientMutationId
  }
}

My use case
I want to automate PR openings using multi-gitter and have them automatically be linked to a specified project.

Implementation

  • I would like to contribute this feature if it's a suitable addition to multi-gitter
  • I have no intention of adding this feature myself.
@bxker bxker added the enhancement New feature or request label Feb 6, 2024
@lindell
Copy link
Owner

lindell commented Feb 14, 2024

This makes sense to add. I assume this is not available through the REST API? I could at least not find it with a quick search. The GraphQL API is already used for a few things, but not for any mutation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants