Skip to content

Try to link PRs to issues mentioned in the PR title #3739

Closed

Description

@alexr00

Users often mention issues in commits, which then end up as PR titles:

image

Ideally, we would link the PR and the issue in GitHub. GitHub will automatically do this in when the issue is mentioned in the PR description, but not in the title.

Activity

  1. added
    feature-request
    on Jul 19, 2022
  2. alexr00 commented on Jul 19, 2022

    @alexr00
    MemberAuthor

    We might be able to use the updatePullRequest GraphQL API mutation to set the closingIssuesReferences.

  3. alexr00 commented on Aug 15, 2022

    @alexr00
    MemberAuthor

    updatePullRequest doesn't let you set closingIssuesReferences. An alternative would be to automatically include the "fix #123" string in the description.

  4. added a commit that references this issue on Aug 22, 2022
    e7306ff
  5. alexr00 commented on Aug 22, 2022

    @alexr00
    MemberAuthor

    Since there is no GitHub API to link PRs and issues, I've taken the approach of adding the #123 in the PR description. This feels like a work around, and I'm not sure it's worth doing. Will decide in September.

  6. added a commit that references this issue on Sep 1, 2022
    7c4f89b
  7. alexr00 commented on Sep 26, 2022

    @alexr00
    MemberAuthor

    To verify:

    • Make a commit that has a reference to an issue number in the same repo in the first line of the commit (see the screenshot at the top of the issue for an example).
    • Using the extension, create a PR.
    • Verify that the issue reference get copied into the PR description.
  8. added
    verification-needed
    on Sep 26, 2022
  9. added
    verified
    on Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestverification-neededverified

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions