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 govuk repo tags check #561

Merged
merged 1 commit into from
Aug 20, 2024
Merged

Add govuk repo tags check #561

merged 1 commit into from
Aug 20, 2024

Conversation

MuriloDalRi
Copy link
Contributor

@MuriloDalRi MuriloDalRi commented Aug 14, 2024

Checks wether repos have been tagged correctly.

This code was in the govuk-saas-config which is in the process of being retired.

#559

@MuriloDalRi MuriloDalRi requested a review from a team August 14, 2024 12:37
Copy link
Contributor

@AgaDufrat AgaDufrat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.github/workflows/verify_repo_tags.yml Outdated Show resolved Hide resolved
@MuriloDalRi
Copy link
Contributor Author

Checks wether repos have been tagged correctly.

This code was in the govuk-saas-config which is in the process of being retired.
@MuriloDalRi
Copy link
Contributor Author

@AgaDufrat I've added the tests now

@MuriloDalRi MuriloDalRi linked an issue Aug 15, 2024 that may be closed by this pull request
Copy link
Contributor

@AgaDufrat AgaDufrat left a 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) }
Copy link
Contributor

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.

@MuriloDalRi MuriloDalRi merged commit 909ae79 into main Aug 20, 2024
9 checks passed
@MuriloDalRi MuriloDalRi deleted the validate-repos branch August 20, 2024 09:08
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.

'Verify repos script' runs in deprecated govuk-saas-config
2 participants