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

feat: adding mentions about forking back after transferring repos #29193

Merged

Conversation

CBID2
Copy link
Contributor

@CBID2 CBID2 commented Oct 16, 2023

Why:

Per, @stevecat's recommendation, I added information more information about redirects. This helps owners of repositories gain more awareness about what could occur when they transfer ownership over their repos to other people.
Closes #13044

What's being changed (if available, include any code snippets, screenshots, or gifs):

screenshot of changes

Check off the following:

  • I have reviewed my changes in staging, available via the View deployment link in this PR's timeline.

    • For content changes, you will also see an automatically generated comment with links directly to pages you've modified. The comment won't appear if your PR only edits files in the data directory.
  • For content changes, I have completed the self-review checklist.

@github-actions github-actions bot added the triage Do not begin working on this issue until triaged by the team. label Oct 16, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Oct 16, 2023

Automatically generated comment ℹ️

This comment is automatically generated and will be overwritten every time changes are committed to this branch.

The table contains an overview of files in the content directory that have been changed in this pull request. It's provided to make it easy to review your changes on the staging site. Please note that changes to the data directory will not show up in this table.


Content directory changes

You may find it useful to copy this table into the pull request summary. There you can edit it to share links to important articles or changes and to give a high-level overview of how the changes in your pull request support the overall goals of the pull request.

Source Preview Production What Changed
repositories/creating-and-managing-repositories/transferring-a-repository.md fpt
ghec
ghes@ 3.10 3.9 3.8 3.7 3.6
ghae
fpt
ghec
ghes@ 3.10 3.9 3.8 3.7 3.6
ghae

fpt: Free, Pro, Team
ghec: GitHub Enterprise Cloud
ghes: GitHub Enterprise Server
ghae: GitHub AE

@CBID2
Copy link
Contributor Author

CBID2 commented Oct 16, 2023

Hi @cmwilson21! :) I made the PR.

@cmwilson21
Copy link
Contributor

👋 Hey @CBID2! Thanks for the PR! I'll get it triaged ✨

@cmwilson21 cmwilson21 added content This issue or pull request belongs to the Docs Content team waiting for review Issue/PR is waiting for a writer's review repositories Content related to repositories. and removed triage Do not begin working on this issue until triaged by the team. labels Oct 17, 2023
Copy link

@bjorn bjorn left a comment

Choose a reason for hiding this comment

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

Just a suggestion for improvement.

Note that I haven't verified whether what @stevecat wrote was the actual behavior. One thing strikes me as a little odd, which is that when I have previously renamed a repository, causing redirects to be created, and then overrode those redirects with a new repository, and then rename the repository again, I might actually want the redirects to be changed to point to the location of the second rename. But if the behavior is as described, the first redirects will always get re-activated and there is no (documented) way of changing the redirects.

@@ -63,6 +63,8 @@ When you transfer a repository, its issues, pull requests, wiki, stars, and watc
{% endwarning %}

- When you transfer a repository from an organization to a personal account, the repository's read-only collaborators will not be transferred. This is because collaborators can't have read-only access to repositories owned by a personal account. For more information about repository permission levels, see "[AUTOTITLE](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-personal-account-settings/permission-levels-for-a-personal-account-repository)" and "[AUTOTITLE](/organizations/managing-user-access-to-your-organizations-repositories/managing-repository-roles/repository-roles-for-an-organization)."{% ifversion fpt or ghec %}
- Redirects will function until someone else creates a new repository or fork with the same name.
- Renaming or deleting the transferred repository or fork will reinstate the redirect.
Copy link

@bjorn bjorn Oct 17, 2023

Choose a reason for hiding this comment

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

I think it would be better to adjust the existing warning found earlier to reflect the actual behavior. Currently, it reads:

Warning: If you create a new repository under your account in the future, do not reuse the original name of the transferred repository. If you do, redirects to the transferred repository will no longer work.

Rather than repeating this information and adding another point about re-instantiation, the above text could just be changed to:

Warning: If you create a new repository at the previous repository location the redirects to the transferred repository will be deactivated. They can be reactivated by renaming or deleting the new repository.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @bjorn! :) Thanks for clarifying! :) I made the necessary change.

stevecat
stevecat previously approved these changes Oct 17, 2023
Copy link
Member

@stevecat stevecat left a comment

Choose a reason for hiding this comment

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

Thank you for working on this, @CBID2! ✨ And a great suggestion from @bjorn.

I made one tiny suggested change, adding "or fork", and I'll apply that myself before merging.

The failing GraphQL test isn't anything to do with your changes, I suspect it'll pass when main is merged in as we deploy, but otherwise I'll troubleshoot this with the engineering team.

@stevecat stevecat added this pull request to the merge queue Oct 17, 2023
@stevecat stevecat added hacktoberfest-accepted We might not merge this PR before Nov 1st, but it's a wonderful Hacktoberfest contribution! ready to merge This pull request is ready to merge labels Oct 17, 2023
@docs-bot docs-bot added this to Triage in Docs open source board Oct 17, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 17, 2023
@stevecat stevecat added this pull request to the merge queue Oct 17, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 17, 2023
@stevecat
Copy link
Member

Boooo! 😞 This is an issue on our end, I've raised it with our engineering team and we'll get this merged as soon as we can!

@stevecat stevecat added this pull request to the merge queue Oct 18, 2023
Merged via the queue into github:main with commit 473f3b2 Oct 18, 2023
41 checks passed
Docs open source board automation moved this from Triage to Done Oct 18, 2023
@github-actions
Copy link
Contributor

Thanks very much for contributing! Your pull request has been merged 🎉 You should see your changes appear on the site in approximately 24 hours. If you're looking for your next contribution, check out our help wanted issues

@CBID2 CBID2 deleted the mentioning-forking-back-after-transferring branch October 18, 2023 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content This issue or pull request belongs to the Docs Content team hacktoberfest-accepted We might not merge this PR before Nov 1st, but it's a wonderful Hacktoberfest contribution! ready to merge This pull request is ready to merge repositories Content related to repositories. waiting for review Issue/PR is waiting for a writer's review
Development

Successfully merging this pull request may close these issues.

"Transferring a repository" could mention something about forking back after transfering
4 participants