GithubHelp home page GithubHelp logo

Comments (7)

ezyang avatar ezyang commented on May 20, 2024 3

Another idea is we can create a bot integration that knows how to land ghstack PRs, and then let people install it to their repos.

from ghstack.

ailzhang avatar ailzhang commented on May 20, 2024 3

For anyone who're interested in using ghstack in an open source project, you may find @feisuzhu's land bot command which limits landing from repo writers helpful. It also performs a few additional checks before landing, e.g.

  • all github action jobs must pass
  • PRs(including all PRs below) must be approved

This allows us to use ghstack project wide without granting everyone admin access, cheers!

from ghstack.

ezyang avatar ezyang commented on May 20, 2024 1

Nope, no new ideas. Do you have mandatory checks? If you don't, opening a new PR and immediately merging it should work pretty good.

from ghstack.

ailzhang avatar ailzhang commented on May 20, 2024 1

Another idea is we can create a bot integration that knows how to land ghstack PRs, and then let people install it to their repos.

+1 on this! Opening up force pushes to everyone is kinda risky so delegating that to a bot account seems much more reasonable.
(In fact I did allow force pushes from myself so that I was the only one who can land ghstack PRs in taichi team but that made me effectively a landing bot haha :P

from ghstack.

ailzhang avatar ailzhang commented on May 20, 2024

Hey Ed! What's the latest workaround for this issue? Is opening up master branch still the only way to do it? :P

from ghstack.

ezyang avatar ezyang commented on May 20, 2024

My new idea is you can enable force pushes on the protected branch

image

and I am going to make ghstack land force push

from ghstack.

aspiers avatar aspiers commented on May 20, 2024

Totally agree - opening up force pushes for everyone is absolutely not going to work for very many projects who need tighter security than that. Also creating a separate PR just for merging would create an unholy mess of duplicate / overlapping PRs, so I don't think that's a good option either.

I would suggest finding one or more great existing mergebots (i.e. ones which support flexible policies around what is required in terms of approvals, CI passing etc. in order to allow a merge) and integrate the landing process with those.

from ghstack.

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.