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

Unlock line link for modified files & introduce smarter commit picking #25

Merged
merged 5 commits into from
Sep 28, 2024

Conversation

lunakoly
Copy link
Owner

@lunakoly lunakoly commented Sep 28, 2024

🔥 Allow creating links to modified files

In my experience, it's quite easy to quickly open it in the browser and fix the line manually compared to looking for another way to share the link.

🔥 Pick the closest reasonable commit if the current one was not pushed

After this change there are now 3 actions:

  • generating a link to the currently checked out commit
  • generating a link to the latest commit from the remote's default branch
  • generating a link to some parent commit that is definitely available at the remote

...with the last one becoming the default assigned to Cmd+Shift+L.

The main use cases are generating a link to whatever I see in my IDE (so, close commits tend to also be acceptable since the code hasn't changed much) or showing something that is currently in the latest master. Also, I expect there to be not that many users relying on the plugin generating a link to exactly the current commit in scenarios when it has not been pushed, thought I don't really have any statistics. I assume no one has tried automating anything by calling the action or the default shortcut.

In my experience, it's quite easy to quickly open it in the browser and fix the line
manually compared to looking for another way to share the link.
After this change there are now 3 actions:

- generating a link to the currently checked out commit
- generating a link to the latest commit from the remote's default branch
- generating a link to some parent commit that is definitely available at the remote

...with the last one becoming the default assigned to `Cmd`+`Shift`+`L`.

The main use cases are generating a link to whatever I see in my IDE (so,
close commits tend to also be acceptable since the code hasn't changed
much) or showing something that is currently in the latest master. Also, I
expect there to be not that many users relying on the plugin generating
a link to exactly the current commit in scenarios when it has not been
pushed, thought I don't really have any statistics. I assume no one has
tried automating anything by calling the action or the default shortcut.
Copy link

github-actions bot commented Sep 28, 2024

Qodana Community for JVM

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked

View the detailed Qodana report

To be able to view the detailed Qodana report, you can either:

  1. Register at Qodana Cloud and configure the action
  2. Use GitHub Code Scanning with Qodana
  3. Host Qodana report at GitHub Pages
  4. Inspect and use qodana.sarif.json (see the Qodana SARIF format for details)

To get *.log files or any other Qodana artifacts, run the action with upload-result option set to true,
so that the action will upload the files as the job artifacts:

      - name: 'Qodana Scan'
        uses: JetBrains/[email protected]
        with:
          upload-result: true
Contact Qodana team

Contact us at [email protected]

@lunakoly lunakoly merged commit 6cad619 into main Sep 28, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant