Skip to content
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
wants to merge 5 commits into from

Conversation

laysauchoa
Copy link
Contributor

@laysauchoa laysauchoa commented Dec 10, 2022

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.

@laysauchoa laysauchoa added the maintenance maintenance tasks for the documentation label Dec 10, 2022
@laysauchoa
Copy link
Contributor Author

Screenshot 2022-12-10 at 08 42 52

Screenshot 2022-12-10 at 08 43 11

Screenshot 2022-12-10 at 08 45 06

Screenshot 2022-12-10 at 09 08 54

@aiven aiven deleted a comment from netlify bot Dec 27, 2022
@aiven aiven deleted a comment from netlify bot Dec 27, 2022
@angelinekwan angelinekwan force-pushed the laysa-add-redirects-check branch from 5fae81c to 9008b8d Compare December 27, 2022 08:46
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 27, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: d3bf7a6
Status: ✅  Deploy successful!
Preview URL: https://67e7384d.devportal.pages.dev
Branch Preview URL: https://laysa-add-redirects-check.devportal.pages.dev

View logs

If a file is renamed, a redirect should
be added. This script helps to check and
report whether a renamed file is missing
redirects.

More info about the redirects process:
https://docs.aiven.io/docs/community/documentation/tips-tricks/renaming-files.html
This checks in a pull request if
a file was renamed without adding redirects.

Shows the files, and info how to fix it.
@laysauchoa laysauchoa force-pushed the laysa-add-redirects-check branch from 9008b8d to d3bf7a6 Compare January 4, 2023 10:19
@laysauchoa
Copy link
Contributor Author

Rebasing with main branch.

@jkowall
Copy link
Contributor

jkowall commented Feb 5, 2023

Thanks for the contribution but we are moving away from the platform here, so we are not adding new features at this time. I am closing this out.

@jkowall jkowall closed this Feb 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
maintenance maintenance tasks for the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Check if renamed/delete links are redirected
2 participants