Skip to content

Add whitelist organizations option #3589

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

lenguyenthanh
Copy link
Contributor

This is my attempt to solve #1468 (comment). This add a cli option to whitelist organization(s) from UrlChecker more details in the first commit's message.

Another option is a to add this option in RepoConfig which in my opinion, is a better solution than this pr. But I didn't think about it until I was about to make this pr 😅 . I could do a pr for this option if you think it's indeed better.

This is to solve issue that UrlChecker cannot check a private
github repository exist or not. As github ignore authentication tokens
for all url except one start with `api`. This adds:

- Add cli option to add whitelist organization(s)
- For all url belong to a whitelisted organization, UrlChecker will skip
checking it and UpdateInfoUrlFinder will skip guessing possible urls
@lenguyenthanh lenguyenthanh changed the title Add whitelist organizations feature Add whitelist organizations option Feb 18, 2025
Copy link

codecov bot commented Feb 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.83%. Comparing base (3d01301) to head (ea4da4c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3589      +/-   ##
==========================================
+ Coverage   89.80%   89.83%   +0.03%     
==========================================
  Files         174      174              
  Lines        5031     5047      +16     
  Branches      493      488       -5     
==========================================
+ Hits         4518     4534      +16     
  Misses        513      513              

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

@lenguyenthanh
Copy link
Contributor Author

I just realized even with my last commit, it is still not cover all possible case, for example it'll doesn't work with private gitlab instance. I'll try to solve this, in the mean time any suggestions are welcomed.

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