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

feat(api): add 'link' api #215

Merged
merged 37 commits into from
Mar 7, 2024
Merged

feat(api): add 'link' api #215

merged 37 commits into from
Mar 7, 2024

Conversation

linrongbin16
Copy link
Owner

@linrongbin16 linrongbin16 commented Mar 6, 2024

Resolve #213 .

Regression Test

Platforms

  • windows
  • macOS
  • linux

Hosts

Functions

  • Use GitLink(!) to copy git link (or open in browser).
  • Use GitLink(!) blame to copy the /blame link (or open in browser).
  • Use GitLink(!) default_branch to open the /main//master link in browser (or open in browser).
  • Copy git link in a symlink directory of git repo.
  • Copy git link in an un-pushed git branch, and receive an expected error.
  • Copy git link in a pushed git branch but edited file, and receive a warning says the git link could be wrong.

Copy link

codecov bot commented Mar 7, 2024

Codecov Report

Attention: Patch coverage is 72.15190% with 22 lines in your changes are missing coverage. Please review.

Project coverage is 76.42%. Comparing base (38b508e) to head (83b2ad7).

Files Patch % Lines
lua/gitlinker.lua 69.44% 22 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #215      +/-   ##
==========================================
+ Coverage   71.38%   76.42%   +5.03%     
==========================================
  Files           9        9              
  Lines         734      772      +38     
==========================================
+ Hits          524      590      +66     
+ Misses        210      182      -28     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@linrongbin16 linrongbin16 merged commit 46dcc5d into master Mar 7, 2024
9 checks passed
@linrongbin16 linrongbin16 deleted the feat-api branch March 7, 2024 05:06
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.

Feature request: Add lua API
1 participant