Description
This issue is reserved for MLH program
Code of Conduct
- I have read and agree to the GitHub Docs project's Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/repositories/creating-and-managing-repositories/renaming-a-repository
What part(s) of the article would you like to see updated?
When you rename a repository, all existing information, with the exception of project site URLs, is automatically redirected to the new name, including:
In addition to redirecting web traffic, all git clone, git fetch, or git push operations targeting the previous location will continue to function as if made on the new location. However, to reduce confusion, we strongly recommend updating any existing local clones to point to the new repository URL. You can do this by using git remote on the command line:
If you plan to rename a repository that has a GitHub Pages site, we recommend using a custom domain for your site. This ensures that the site's URL isn't impacted by renaming the repository. For more information, see "About custom domains and GitHub Pages site."
There should be a if you plan
entry for if your repository hosts an action
explaining that it will break all workflows relying on the old name.
Additional information
https://github.community/t/actions-not-auto-redirecting-when-action-repo-name-changes/229949
Maintainer update
Content update plan
Update the article on renaming repositories.
The tip from lines 39 to 43 is not needed now that the article states this permissions requirement just under the title in large text. So we can convert this into a note for people who maintain repositories that host actions.
- Change the tip callout into a note callout (see Formatting callouts for the syntax).
- Replace the current text in the callout with an explanation that if the repository hosts an action they should avoid renaming the repository. Instead they should create a new repository with the new name and deprecate the old repository. If they rename the repository, all workflows that use the action will fail with the error
repository not found
. The action is not automatically redirected when a workflow runs to avoid security issues.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status