fork-dev / Tracker

Bug and issue tracker for Fork for Mac
498 stars 12 forks source link

Missing real `username` and `repository` in issues/PR URL of commit message #1986

Closed cotes2020 closed 9 months ago

cotes2020 commented 9 months ago

Description

Fork does not generate the correct URL for issue/pr in the commit log.

Environment

How to reproduce

  1. Using Fork without logging into a GitHub account
  2. Locally clone a GitHub public repository using the Git CLI, e.g. git clone <url-to-github-repo>
  3. Open the local repository with ForkFile > Open...
  4. The #<number> URL in the commit message will be https://github.com/username/repository/issues/<number>, missing the real username and repository name.

Additionally

If I login to GitHub from Fork and clone the repository using Fork's GUI, this issue does not appear. I've been using Fork for more than 3 years and I haven't encountered this problem in previous versions.

cotes2020 commented 9 months ago

I figured it out. In the Issue Tracker panel I accidentally created a new Sample GitHub Rule, but didn't configure and use it. Deleting this sample rule solves the issue.

Screen Shot 2023-10-17 at 04 37 32