Skip to content
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

[#33] Address Twisted needs #43

Merged
merged 19 commits into from
Oct 25, 2022
Merged

[#33] Address Twisted needs #43

merged 19 commits into from
Oct 25, 2022

Conversation

danuker
Copy link
Contributor

@danuker danuker commented Jul 8, 2022

Fixes #33

TODO:

  • needs-review from a "review" asks for another review (useful for pre-real-review comments on code)
  • more flexible matching for please review text
  • Fix error Investigate bug #46 (comment)

Not implemented:

  • need discussing: approving a PR via comment, as a member of a team. It would be harder (probably another GH API request) to detect if the commenter is member of a team, to check if to remove the team from the team-review-requests. Is it worth it?
  • Automated deployment. this will be done in Auto-deployment to Azure Functions #20

reviewers: @adiroiban

The new version was deployed manually (instructions in README.rst). Feel free to test!

@danuker danuker self-assigned this Jul 8, 2022
@danuker danuker changed the title Address Twisted needs [#33] Address Twisted needs Aug 16, 2022
@danuker
Copy link
Contributor Author

danuker commented Aug 18, 2022

Testing attempt to assign @octocat

needs-review

@danuker
Copy link
Contributor Author

danuker commented Aug 18, 2022

needs-changes

Never mind, the new bot is not deployed yet.

@danuker
Copy link
Contributor Author

danuker commented Aug 23, 2022

please review
testing

@danuker
Copy link
Contributor Author

danuker commented Aug 23, 2022

needs-review

testing

@danuker
Copy link
Contributor Author

danuker commented Aug 23, 2022

please review
testing

@danuker
Copy link
Contributor Author

danuker commented Aug 23, 2022

please review
testing again

@chevah-robot chevah-robot removed the request for review from adiroiban August 24, 2022 08:29
@danuker
Copy link
Contributor Author

danuker commented Aug 24, 2022

please review :)

Feel free to keep it in review for a week, while we test it extensively.

@adiroiban
Copy link
Member

I think that the review request regex should be more relaxed... to allow requesting a review via this "natural language"

this is ready. Please review. Thanks!

I now found out about the CODEOWNERS feature.
I think it can be used to automatically request a review from the team, when a PR is created.

But I think that our current implementation is better as you can re-request the review later.
I have not used CODEOWNERS, but I guess it only ask for the team once.
It might re-request is you mark a PR as draft and then back as final

@adiroiban
Copy link
Member

CODEOWNER only adds the review first time the PR is created.
it doens't re-add the team on re-review request. Even after marking a PR as draft and then as ready again.

So our hook is still very useful... unfortunately. The goal is to have all these actions supported by Github.

@adiroiban
Copy link
Member

It would be nice if 'needs-review' would work for a normal review comment.

See example here twisted/twisted#11629 (review)

The idea is that you leave inline comments and then leave a final comment with the marker.
And the review process is trigerred

@adiroiban
Copy link
Member

Let me know when this is deployed.

We also need to allow please review. and please review! ... I guess

Thanks

@danuker
Copy link
Contributor Author

danuker commented Sep 30, 2022

We also need to allow please review. and please review! ... I guess

The regex I used does not match anything after please review.

So, your examples will match. But so will please review another PR not this one. Is this a problem?

@adiroiban
Copy link
Member

So, your examples will match. But so will please review another PR not this one. Is this a problem?

It should not be a problem.
This is what was asked by other Twisted devs.

@danuker
Copy link
Contributor Author

danuker commented Oct 25, 2022

needs-changes is still case sensitive. I didn't think it'd matter since we should be using reviews anyway.

@chevah-robot chevah-robot removed the request for review from adiroiban October 25, 2022 12:52
@danuker
Copy link
Contributor Author

danuker commented Oct 25, 2022

But Please review! <-- should trigger the change.

I have deployed the last commit (#df0edf13).

Feel free to take more time again for testing before I merge.

@adiroiban
Copy link
Member

This is already a branch too old and too big and already in prod.

I think is best to merge it.

If anything needs a fix we should create a separate PR.

Thanks!

@adiroiban
Copy link
Member

adiroiban commented Oct 25, 2022

we will need to see how to re-deploy it for Twisted Org only.
Is ok to share it during development... but for production is best to have separate accounts.

btw... there a are now new personal API tokens with more granular access

@adiroiban
Copy link
Member

@danuker
Copy link
Contributor Author

danuker commented Oct 25, 2022

we will need to see how to re-deploy it for Twisted Org only. Is ok to share it during development... but for production is best to have separate accounts.

All right. Should I create a new ProAtria Azure Functions app with the twisted-trac token? Or another, new user, maybe twisted-bot?

btw... there a are now new personal API tokens with more granular access

I saw them, but I can only create them for repos owned by my account.

@adiroiban
Copy link
Member

I don't know what is best.

Twisted has its own Azure organization...so is best to host the functions there...
but if you will be the one looking after the code, we can continue to keep it shared with our Chevah org.

I will try to find some time and see what can be done for Twisted.

@danuker danuker merged commit a9b8a78 into main Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Twisted hook requirements
3 participants