GithubHelp home page GithubHelp logo

Comments (11)

2uasimojo avatar 2uasimojo commented on June 23, 2024 1

Thanks for working on this @mvalarh!

Perhaps next Monday (when we do our regular push) we can contrive a scenario to test this. Let me know if this would work:

  1. Prepare: merge a PR removing a user from ci.yaml. It will be @abutcher's turn on rotation next week, so if he agrees, we can experiment on him :P
  2. Andrew submits the week's PR as usual. Since he's no longer in ci.yaml, it won't be approved.
  3. Have someone who's still in ci.yaml (e.g. me) approve the PR
  4. ...and IIUC at this point we have to nudge the PR somehow? Either hold->unhold, draft->ready, or Andrew pushes an update?
  5. Clean up: Restore Andrew to ci.yaml.

Will that be an effective test?

from community-operators.

mvalarh avatar mvalarh commented on June 23, 2024
* When adding an authorized user to ci.yaml (e.g. [1](https://github.com/redhat-openshift-ecosystem/community-operators-prod/pull/63), [2](https://github.com/k8s-operatorhub/community-operators/pull/65)), a repo admin still needs to participate to get the PR merged. It would be cool if pre-existing reviewers in ci.yaml could have that power (via `/lgtm` or `/approve` or whatever).

We were already allowing it, but it is not working. The problem is that when user (authorized user) would do the comment (via /lgtm or /approve or whatever) then workflow comment handler is executed with that user's permissions and if that user (authorized user) doesn't have write access to repo (by default no one has) then label cannot be set by that user. Only repo admin can. I am still thinking about this feature (not high priority). But you can give me hint if you have some proposal.

from community-operators.

mvalarh avatar mvalarh commented on June 23, 2024
* When a test fails, even an authorized (via ci.yaml) user can't seem to [retest](https://github.com/k8s-operatorhub/community-operators/pull/75#issuecomment-891143786) or [add ok-to-test](https://github.com/k8s-operatorhub/community-operators/pull/75#issuecomment-891148861).

To retest one can do:

  • convert issue to draft
  • click on "Ready for review"

from community-operators.

mvalarh avatar mvalarh commented on June 23, 2024

Feel free to reopen

from community-operators.

mvalarh avatar mvalarh commented on June 23, 2024

@2uasimojo I just implemented feature with authorized_label when PR is approved by reviewer. Let me know when you will have such PR so we can test it. Thanks

from community-operators.

mvalarh avatar mvalarh commented on June 23, 2024

Possible workflows

  1. approve
  2. /hold
  3. /unhold

or

  1. approve
  2. author will push something

or

  1. approve
  2. make draft Issue
  3. Ready for review

Note: We always rely on information that of last github reviewer and it hase to be in state APPROVED

from community-operators.

2uasimojo avatar 2uasimojo commented on June 23, 2024

We tested this via #324 (to remove abutcher from reviewers) and #326 (which he submitted and I approved). It works! Thanks @mvalarh!

We're going to test a different flow -- say the draft/ready one? -- by having Andrew submit the PR to restore himself to ci.yaml.

from community-operators.

2uasimojo avatar 2uasimojo commented on June 23, 2024

It seems like when the submitter is not a reviewer, the bot puts a /hold on the PR anyway. So the hold-unhold flow is kind of kicked off by default.

from community-operators.

mvalarh avatar mvalarh commented on June 23, 2024

Bot is putting in hold only in case ci.yaml is changed

from community-operators.

2uasimojo avatar 2uasimojo commented on June 23, 2024

@mvalarh I'm happy with the functionality as we tested it. If you'd like us to test some other permutation, let us know. Otherwise I'm happy to close this issue.

from community-operators.

mvalarh avatar mvalarh commented on June 23, 2024

Documentation is located : https://k8s-operatorhub.github.io/community-operators/self-merge-updates/#how-do-i-approve-pr

from community-operators.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.