Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

oca-migrate-branch: still working? #519

Open
simahawk opened this issue Nov 25, 2021 · 1 comment
Open

oca-migrate-branch: still working? #519

simahawk opened this issue Nov 25, 2021 · 1 comment
Labels

Comments

@simahawk
Copy link
Contributor

simahawk commented Nov 25, 2021

I'm trying oca-migrate-branch to re-generate 15.0 branch on server-auth w/ all modules as not installable.
It fails here complaining that the branch and/or the ref that is creating does not exist (that's your task bro!):

  File "/home/sorsi/.pyenv/versions/oca/bin/oca-migrate-branch", line 33, in <module>
    sys.exit(load_entry_point('oca-maintainers-tools', 'console_scripts', 'oca-migrate-branch')())
  File "/home/sorsi/dev/sources/maintainer-tools/tools/migrate_branch.py", line 363, in main
    migrator.do_migration(projects=args.projects)
  File "/home/sorsi/dev/sources/maintainer-tools/tools/migrate_branch.py", line 334, in do_migration
    self._migrate_project(project)
  File "/home/sorsi/dev/sources/maintainer-tools/tools/migrate_branch.py", line 314, in _migrate_project
    repo.create_ref(
  File "/home/sorsi/.pyenv/versions/3.8.12/envs/oca/lib/python3.8/site-packages/github3/decorators.py", line 24, in auth_wrapper
    return func(self, *args, **kwargs)
  File "/home/sorsi/.pyenv/versions/3.8.12/envs/oca/lib/python3.8/site-packages/github3/repos/repo.py", line 1218, in create_ref
    json = self._json(self._post(url, data=data), 201)
  File "/home/sorsi/.pyenv/versions/3.8.12/envs/oca/lib/python3.8/site-packages/github3/models.py", line 153, in _json
    raise exceptions.error_for(response)
github3.exceptions.NotFoundError: 404 Not Found

Is anybody still using it? Is there any known issue?

@simahawk simahawk added the bug label Nov 25, 2021
@pedrobaeza
Copy link
Member

It should work, but you shouldn't apply it to general branches like server-auth. OK that you change the method for specific like connector or queue, but not on other general modules branches.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants