A tool to migrate GitHub Repositories to Gitea including all issues
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

38 lines
689 B

  1. package cmd
  2. import "github.com/urfave/cli"
  3. var defaultMigrateFlags = []cli.Flag{
  4. cli.IntFlag{
  5. Name: "owner",
  6. Usage: "Owner ID",
  7. EnvVar: "OWNER_ID",
  8. Value: 0,
  9. },
  10. cli.StringFlag{
  11. Name: "token",
  12. Usage: "Gitea Token",
  13. EnvVar: "GITEA_TOKEN",
  14. },
  15. cli.StringFlag{
  16. Name: "gh-token",
  17. Usage: "GitHub Token (optional)",
  18. EnvVar: "GITHUB_TOKEN",
  19. },
  20. cli.StringFlag{
  21. Name: "url",
  22. Usage: "Gitea URL",
  23. EnvVar: "GITEA_URL",
  24. },
  25. cli.BoolFlag{
  26. Name: "private",
  27. Usage: "should new repository be private",
  28. EnvVar: "GITEA_PRIVATE",
  29. },
  30. cli.BoolFlag{
  31. Name: "only-repo",
  32. Usage: "skip issues etc. and only migrate repo",
  33. EnvVar: "ONLY_REPO",
  34. },
  35. }