Skip to main content

Transferring an issue to another repository

To move an issue to a better fitting repository, you can transfer open issues to other repositories.

Tool navigation

To transfer an open issue to another repository, you must have write access to the repository the issue is in and the repository you're transferring the issue to. For more information, see "组织的存储库角色."

Note: You can only transfer issues between repositories owned by the same user or organization account. A private repository issue cannot be transferred to a public repository.

When you transfer an issue, comments and assignees are retained. Labels and milestones are also retained if they're present in the target repository, with labels matching by name and milestones matching by both name and due date.

People or teams who are mentioned in the issue will receive a notification letting them know that the issue has been transferred to a new repository. The original URL redirects to the new issue's URL. People who don't have read permissions in the new repository will see a banner letting them know that the issue has been transferred to a new repository that they can't access.

Transferring an open issue to another repository

  1. 在 GitHub.com 上,导航到存储库的主页。

  2. 在存储库名称下,单击 “问题”。

    存储库的主页的屏幕截图。 在水平导航栏中,标记有“问题”的选项卡以深橙色标出。

  3. In the list of issues, click the issue you'd like to transfer.

  4. In the right sidebar, click Transfer issue.

  5. Select the Choose a repository dropdown menu, and click the repository you want to transfer the issue to.

  6. Click Transfer issue.

若要详细了解 GitHub CLI,请参阅“关于 GitHub CLI”。

To transfer an issue, use the gh issue transfer subcommand. Replace the issue parameter with the number or URL of the issue. Replace the owner/repo parameter with the name of the repository that you want to transfer the issue to, such as octocat/octo-repo.

gh issue transfer ISSUE OWNER/REPO

Further reading