Skip to content

use-first-commit-message-for-new-prs breaks when commit summary contains link #5382

Closed

Description

@andreasabel

Please ensure:

  • The bug is caused by Refined GitHub. It doesn't happen if I disable the extension.
  • The bug happens after clearing extension cache. The "Clear cache" button can be found at the bottom of the options page.

Example URLs

https://github.com/BNFC/bnfc/pull/new/layout-error

(But this URL could soon not demonstrate the problem any more, as the state of the repo changes.)

Extension version

22.2.1

Browser(s) used

Google Chrome

Description

If I open a new PR from a branch whose first commit starts with Re #<issue>: text, then the PR title is just Re.

I'd like to keep the full title.
Ideally, the PR text would be made from all of the commit titles. (I dimly remember that this used to be the case once, but then disappeared as a feature.)

Screenshot 2022-02-08 at 18 43 36

Include in this issue:

  • Screenshots/video/gif demonstrating the bug, if it’s visual
  • Console errors, if any

Activity

  1. yakov116 commented on Feb 8, 2022

    @yakov116
    Member

    Its because the issue number is linkified so its split into 3 <a> tags

  2. changed the title [-]`use-first-commit-message-for-new-prs` truncates at #[/-] [+]`use-first-commit-message-for-new-prs` breaks when commit summary contains link[/+] on Feb 8, 2022
  3. added a commit that references this issue on Feb 12, 2022
  4. andreasabel commented on Feb 17, 2022

    @andreasabel
    Author

    Excellent! Eager to test it once it is released.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions