Copy GitHub project including items
Asked Answered
S

0

8

GitHub provides a project board called GitHub Projects.

I want to move a project from my personal account to an organization account including any items (cards/issues/PRs) that are part of the project.

As far as I have seen, GitHub Projects doesn't allow moving projects but it's certainly possible to copy projects.

enter image description here

That copy feature allows creating a copy of the projects but it will neither copy issues nor pull requests nor project workflows, even though I can duplicate issue drafts.

enter image description here

After copying the project, all my issues/PRs are not part of the copied project.

Is there a way to copy a GitHub project without losing the existing items?

Sarnen answered 8/4, 2023 at 19:5 Comment(8)
This is a good question. I searched a script or CLI for this to no avail. May be this is a start gist.github.com/jnm/bf9311d7f685e02ed644a65c3c67abaf and the discussions are GH are not conclusive either. See github.com/orgs/community/discussions/52535 and github.com/orgs/community/discussions/8548Spandau
If you have a reliable way of doing it with both metadata, issues and whatever the simple cards are called, feel free to post an answer.Sarnen
I do not have such way yet. What about posting a bounty?Spandau
It isn't much of a concern for me (yet). If it would be, I would probably invest time into writing a script doing that (or maybe also place a bounty if it doesn't work well enough for me).Sarnen
no matter what issues/PRs are not going to get duplicated for you in new board , they will be linked to the old board for you to use but wont be duplicated to be used in your new board.Disconsider
I don't want the questions to be duplicated. I want to link/include them to the new projectSarnen
@Sarnen May you please confirm you are using V2 Project in GitHub and no the old V1/Classic projectBrnaba
Yes, this is about V2 projects.Sarnen

© 2022 - 2024 — McMap. All rights reserved.