How Can I Easily Refresh My Repo to Show A Changed LICENSE File? #22058
-
This should be a simple question, but I haven’t found any answers. I may have missed something. If so, I would be grateful to be directed to the answer. I had a LICENSE file in several of my repos that was not parsed by GH (fair enough. I had added the URL to my site at the bottom, and I have found out that we just don’t do that). I have since removed the alteration, so all the LICENSE files are now correct, but the repos still don’t show the correct license. This is an issue for me, as the license property of the repo is used by a third-party index (It’s been an issue with my repos for a long time, but this is the first time it’s caused me pain). The question is simple: Is there some way to “reload” the repo, so the the fixed license is detected? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Hi @ChrisMarshallNY! 👋 Welcome to the Community! Did you replace the license by using the “Choose a license template” function? (Step 4 in this guide.) If so, that should have kicked off a rescan. I’m afraid it’s not possible for you to trigger a rescan manually any other way. If you let me know the repositories affected, I can trigger a rescan of them from the back end! |
Beta Was this translation helpful? Give feedback.
-
Thanks! If you can do the rescan, that would be great! I will look at the template for future work. Here are the repos: RiftValleySoftware/RVS_Generic_Swift_Toolbox Thanks! |
Beta Was this translation helpful? Give feedback.
-
I’ve queued a rescan of those repos, which could take up to 24 hours to run. I’m not 100% sure it’s going to work as you’re missing the “Copyright © [year] [fullname]” line from your files: Choose a LicenseMIT LicenseA short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code. If it’s not showing as MIT after 24 hours, please add that line in and we’ll try again! |
Beta Was this translation helpful? Give feedback.
-
Thanks! I’ll add it to the files, nonetheless. I’ll let you know if it doesn’t take. UPDATE: Looks like that did the trick! Thanks! |
Beta Was this translation helpful? Give feedback.
I’ve queued a rescan of those repos, which could take up to 24 hours to run.
I’m not 100% sure it’s going to work as you’re missing the “Copyright © [year] [fullname]” line from your files:
Choose a License
MIT License
A short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code.
If it’s not showing as MIT after 24 hours, please add that line in and we’ll try again!