-
Notifications
You must be signed in to change notification settings - Fork 19
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 govuk repo tags check #561
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh yes, how did I miss that?! |
Checks wether repos have been tagged correctly. This code was in the govuk-saas-config which is in the process of being retired.
c629ddf
to
e0fb1b6
Compare
@AgaDufrat I've added the tests now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's ok to merge as far as the migration is considered. However we shouldn't have the ignore lists but fix the root cause of the issues.
.org_repos("alphagov", accept: "application/vnd.github.mercy-preview+json") | ||
.select { |repo| repo.topics.to_a.include?("govuk") } | ||
.reject(&:archived) | ||
.reject { |repo| ignored_repos.include?(repo.full_name) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original FetchRepos class was used by both repo tags check and a script that configured GitHub. The exclusion of ignored_repos
in the original code was used only by GitHub configuration script. The original govuk repo tags check didn't have ignore list.
We still want to be notified if licensify
doesn't have govuk
tag or if it's removed from the repos.json but still tagged.
I think we can ignore them for now, as there are some other considerations related to the "Deploy out of sync" alerting, which don't appear to be addressed.
Checks wether repos have been tagged correctly.
This code was in the govuk-saas-config which is in the process of being retired.
#559