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

Add option to iterate over newly created file(s) #12

Open
pavlo-everstake opened this issue Jan 8, 2025 · 2 comments
Open

Add option to iterate over newly created file(s) #12

pavlo-everstake opened this issue Jan 8, 2025 · 2 comments

Comments

@pavlo-everstake
Copy link

Is it possible to have an option to search for bad links in newly created files but not added to the index via git add ?

@AlexanderDokuchaev
Copy link
Owner

Hi @pavlo-everstake
Yes, it's possible, i can add parameter like --untracked.
GitPython provide interface untracked_files, looks like it could be done easily.

AlexanderDokuchaev added a commit that referenced this issue Jan 11, 2025
#12 

Add `--untrack` argument to check untracked files
@AlexanderDokuchaev
Copy link
Owner

Added --untrack arguments

$ echo "[link](https://github.com/FAILED/FAILED/FAILED)" > untracked.md
$ md-dead-link-check --untrack
File: untracked.md:1 • Link: https://github.com/FAILED/FAILED/FAILED • Error: 404: Not Found
❌ Found 1 dead link 🙀
$ md-dead-link-check 
✅ Not found dead links 😸

@pavlo-everstake Could you check md-dead-link-check from main branch in your usecase?

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

No branches or pull requests

2 participants