This repository has been archived by the owner on Jan 29, 2024. It is now read-only.
Add workflow to check redirects for renamed files #1631
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
If a file is renamed, a redirect should
be added. This workflow helps to check and
report whether a renamed file is missing
redirects.
The redirect process is done manually by the contributor, so we need to make sure during the review that we do not merge renamed files without proper redirects. This workflow helps with that.
Running time: ~14 seconds
More info about the redirects process:
https://docs.aiven.io/docs/community/documentation/tips-tricks/renaming-files.html
Fixes: #1602
How to test it? Fork the repo, bring those changes to your main and open pull requests changing name of the files with/without redirects, for example. For the individual functions, you can find some tests you can run yourself with pytest.