tea pulls create does not work for me
I have a local checkout of my fork of this repo:
~/src/code.gitea.io/tea $ git remote -v origin firstname.lastname@example.org:noerw/tea (fetch) origin email@example.com:noerw/tea (push) upstream firstname.lastname@example.org:gitea/tea (fetch) upstream email@example.com:gitea/tea (push)
tea pulls create will create a pull request to the
Instead, it creates a PR on my fork.
It's not great UX, but it's somewhat ok as there are flags to override the target base.
What is not ok, is that these override flags don't work:
--repo flagis ignored, still publishes on my fork
$ tea pulls create --repo gitea/tea #4 format duration as seconds for csv & yaml output noerw created 2020-08-18 15:13:08 fixes #167 https://gitea.com/noerw/tea/pulls/4
--base flagfails (with a bad error message)
$ tea pulls create --base upstream/master 2020/08/18 17:14:31 404 Not Found
--remote flagfails (with a bad error message)
$ tea pulls create --remote upstream 2020/08/18 17:15:48 404 Not Found
In addition, to me as a user (with quite some understanding of
tea internals!) it is totally unclear which of these flag would be the right one, so the help text needs clarification.
--repo gitea/tea should not be ignored but ingeneral
--repo at the moment only take paths to cloned repos
☝️ big downside witch I'd like to remove when having some time
It still doesn't work ;)
--repois broken due to #191
--remotestill seems not supported. That would be ok for me, but then we should remove this flag from the command.
--remote correctly sets login, owner, repo, but the call to
CreatePullRequest() yields a
404 Not Found error.
I now think this is because it looks for the head branch in the target repo, not in the originating repo, as
head only contains a branch name.
Can confirm the 404 issue:
It works when calling
tea pr create --remote upstream --head <owner>:<branch>, where
<owner> is the gitea username of the remote that
<branch> belongs to.
So we somehow need to find remote of current branch & extract user name from the remote URL..?
Deleting a branch is permanent. It CANNOT be undone. Continue?