Skip to content

Conversation

@cbachhuber
Copy link
Contributor

@cbachhuber cbachhuber commented Aug 8, 2025

Thank you for this great extension! I often find myself wanting to link to specific lines in markdown files, but that's swallowed by GitHub's preview function. See for example
https://github.com/hogashi/vscode-copy-github-permalink/blob/f666c57d7e2cf1cdff26ca8cf87d918a2b990d8b/README.md#L9

I need to manually click on the plain preview button or modify the URL to
https://github.com/hogashi/vscode-copy-github-permalink/blob/f666c57d7e2cf1cdff26ca8cf87d918a2b990d8b/README.md?plain=1#L9

to get the linked line highlighted. Automated with this PR.

Comment on lines +7 to +8
- push
- pull_request
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hogashi, I'd like to verify in my PR that the tests I added work. Can you approve this workflow change (not the PR itself yet)? See also https://docs.github.com/en/actions/how-tos/manage-workflow-runs/approve-runs-from-forks

Copy link
Contributor Author

@cbachhuber cbachhuber Aug 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed the tests, they now pass locally. I'm opening the PR for review. Still, I'd appreciate having it gated by CI.

$ jest
 PASS  src/__tests__/makeHttpsUrl.test.ts
 PASS  src/__tests__/extension.test.ts

Test Suites: 2 passed, 2 total
Tests:       15 passed, 15 total
Snapshots:   0 total
Time:        2.945 s
Ran all test suites.
Done in 11.55s.

@cbachhuber cbachhuber marked this pull request as ready for review August 12, 2025 16:35
Copy link
Owner

@hogashi hogashi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR! I granted workflow.

I missed markdown (and other rich docs format) and it looks good. Adding tests also helps me a lot!

@hogashi hogashi merged commit 31da4a2 into hogashi:master Aug 12, 2025
1 check passed
@hogashi
Copy link
Owner

hogashi commented Aug 12, 2025

this will be published as v0.5.0 🚀 https://github.com/hogashi/vscode-copy-github-permalink/releases/tag/v0.5.0

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.

2 participants