-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ADD] rebase_bot #71
[ADD] rebase_bot #71
Conversation
f4e3f9e
to
da58f32
Compare
@sbidoul ready to be reviewed! :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've mixed feeling about this. Mainly because force pushing to a contributor branch... well that sounds intrusive to me.
906badf
to
bba97d1
Compare
@sbidoul all comments attended. In my opinion, I think it's not intrusive. This is just a tool. It depends of the maintainers on how they use the tool. If they are rebasing continuously around wantonly, then they may be in the intrusive side. But I think the correct use of this tool is to be used sporadically, when the creator of the PR is not rebasing or don't know how to rebase correctly. Or simply, the creator of the PR wants to rebase (but don't want to push anymore) so they call this tool :) |
bba97d1
to
162c2de
Compare
@sbidoul all comments attended :) |
162c2de
to
24f826e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to adress this comment #71 (comment). BeautifulSoup is not the right approach for sure.
Also I was expecting to have some call to temporary_clone
? Where is the part where you git clone the repo to work on?
Does the git push to https without token work?
There must still be some work to do to finalize this.
I'll check back end of September.
Why the clone? I don't understand. You fetch the branch, does the rebase on local and then push again to the same branch. It's a simple process, I don't see why adding more complicated steps. :S Well, I may be wrong, not sure of all of this kind of process. |
fcf38d6
to
9216d15
Compare
Done now without using beautifulsoup 🎉🎉🎉🎉🎉🎉 |
9216d15
to
3e669dd
Compare
3b73602
to
a10170a
Compare
@sbidoul I have added the call to |
It looks better. Travis is red though. Generally I'm concerned that you may not have done enough manual tests on this PR. I'll be around at #OCAdays to help you running the bot locally for testing. |
a10170a
to
8d05bab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks !
a single question. LGTM otherwise.
code review / no test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MiquelRForgeFlow a few minor comments and a some more significant one in the main function.
aca3627
to
53b5ba2
Compare
@sbidoul Thanks for your your tips. I think now it works. Please, can you check again? |
53b5ba2
to
bab1bc7
Compare
@MiquelRForgeFlow could you fix conflict ? |
l love the idea of this PR. Any hope to be merged in September ? |
d05a0e3
to
2dcacf9
Compare
@legalsylvain done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just deployed this PR for my GRAP bot.
Tested to rebase here : grap-org-test-bot/github-ocabot-test#15
It doesn't work. maybe I missed something in the deployment, but the code seems up to date.
Another people are using this branch on production ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The OCABOT_USAGE
should be updated.
https://github.com/OCA/oca-github-bot/blob/master/src/oca_github_bot/config.py#L110
I don't know if it's in the intention of this PR but it could be a good option if author of the PR could apply itself this rebase cmd. But not mandatory |
2dcacf9
to
71668af
Compare
@bealdav yes, author of PR can rebase because they can push. |
71668af
to
758cf13
Compare
Renamed and relocated method to be able to be used in other bots.
758cf13
to
489b4a1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi.
I justed deployed the last version of this PR that is fixing authentication trouble.
Tested on a demo repository, on that PR : grap-org-test-bot/github-ocabot-test#15
Works like a charm. Thanks a lot for this great addition @MiquelRForgeFlow !
functional test / No code review.
@sbidoul now that it has been tested, I hope we can proceed forward :) |
Great. I'll now re-read since it touches a security sensitive part. |
Thanks for testing @legalsylvain |
New command. I hope it will be useful.