Skip to main content

此版本的 GitHub Enterprise Server 将于以下日期停止服务 2026-03-17. 即使针对重大安全问题,也不会发布补丁。 为了获得更好的性能、更高的安全性和新功能,请升级到最新版本的 GitHub Enterprise。 如需升级帮助,请联系 GitHub Enterprise 支持

将问题转移到其他仓库

要将问题移动到更合适的仓库,您可以将开放的问题转移到其他仓库。

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 Repository roles for an organization.

注意

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. This issue will stay on any user-owned or organization-wide projects (classic) and be removed from any repository projects (classic). For more information, see About projects (classic).

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. On GitHub, navigate to the main page of the repository.

  2. Under your repository name, click Issues.

    Screenshot of the main page of a repository. In the horizontal navigation bar, a tab, labeled "Issues," is outlined in dark orange.

  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.

注意

To learn more about GitHub CLI, see About 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 hostname/owner/repo parameter with the URL of the repository that you want to transfer the issue to, such as https://ghe.io/octocat/octo-repo.

gh issue transfer ISSUE HOSTNAME/OWNER/REPO

Further reading