Skip to content

prevent-pr-commit-link-loss doesn't respect URL hash #3222

Closed

Description

@FloEdelmann

E.g. for the following link:

https://github.com/sindresorhus/refined-github/pull/3205/commits/1da152b3f8c51dd72d8ae6ad9cc96e0c2d8716f5#diff-932095cc3c0dff00495b4c392d78f0afR60

… it should rather suggest the following:

- [https://github.com/sindresorhus/refined-github/pull/3205/commits/1da152b3f8c51dd72d8ae6ad9cc96e0c2d8716f5 ](https://github.com/sindresorhus/refined-github/pull/3205/commits/1da152b3f8c51dd72d8ae6ad9cc96e0c2d8716f5)#diff-932095cc3c0dff00495b4c392d78f0afR60
+ [https://github.com/sindresorhus/refined-github/pull/3205/commits/1da152b3f8c51dd72d8ae6ad9cc96e0c2d8716f5#diff-932095cc3c0dff00495b4c392d78f0afR60](https://github.com/sindresorhus/refined-github/pull/3205/commits/1da152b3f8c51dd72d8ae6ad9cc96e0c2d8716f5#diff-932095cc3c0dff00495b4c392d78f0afR60)

In short:

- [pr_url/commits/commit_ref ](pr_url/commits/commit_ref)#hash
+ [pr_url/commits/commit_ref#hash](pr_url/commits/commit_ref#hash)

Also, it adds an unnecessary space after the commit ref.

Activity

  1. self-assigned this
    on Jun 12, 2020
  2. fregante commented on Jun 12, 2020

    @fregante
    Member

    I'll do it unless you're already working on it

  3. FloEdelmann commented on Jun 12, 2020

    @FloEdelmann
    MemberAuthor

    I'm not, please go for it :)

  4. added 2 commits that reference this issue on Jun 12, 2020
    1e6be2f
    e2da1ca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions