git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Should we auto-close PRs on git/git?

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Nov 14, 2019, 23:03 UTC
Message-ID
<nycvar.QRO.7.76.6.1911142354290.46@tvgsbejvaqbjf.bet>
In-Reply-To
<20191114074117.GB17186@sigill.intra.peff.net>
Hi Peff,
On Thu, 14 Nov 2019, Jeff King wrote:
Show 20 quoted lines
> On Wed, Nov 13, 2019 at 01:04:35PM +0100, Johannes Schindelin wrote:
>
> > > We talked a while ago about having GitGitGadget operate on git/git,
> > > rather than on a separate mirror. That would automatically help at least
> > > one class of PR-opener: people who want their patches to reach the list
> > > but didn't realize they should be using gitgitgadget/git.
> > >
> > > I don't remember what the technical blockers are for getting that set
> > > up, but it seems like a strictly nicer outcome than auto-closing their
> > > PR.
> >
> > Okay, here are a couple of technical challenges, off the top of my head:
> > [...]
> > Not an easy, nor a small project, I am afraid.
>
> Yow. That's a lot more involved than I was hoping for.
>
> Thanks for writing it up. Some of the points raised were interesting. I
> do think we'd want git/git (the repository) to remain read-only if
> possible.
I guess you're right.

We should probably try to restrict the permissions as much as possible, not only deny write access to the repository.

For example, one thing GitGitGadget does is to add these "Checks" to the commits of the PRs which contain links to the corresponding commits in gitster/git (if any). Those can actually not be removed, there is not even any API for that. So it would probably make sense to avoid that in git/git.

This would mean that the git/git part of GitGitGadget does not install those commit mappings. I guess that's okay, they _are_ kinda hard to use.

> If GitHub's permissions model is a limiting factor here, let me know
> and I can try to bring it to the attention of the right people.

I actually don't think that my use case fits any sane permission model ;-) After all, I want the GitHub App to _span_ repositories (even orgs), and that's not really the idea of Apps.

After sleeping over it, I don't actually think that it is such a bad idea to add a second GitHub App with a more limited permission set.

Ciao, Dscho

Previous: Jeff KingNext: Johannes Schindelin
Message 8 of 22 in “Should we auto-close PRs on git/git?”
  1. Emily ShafferNov 9, 2019
  2. Junio C HamanoNov 9, 2019
  3. Stephen SmithNov 13, 2019
  4. Johannes SchindelinNov 12, 2019
  5. Jeff KingNov 13, 2019
  6. Johannes SchindelinNov 13, 2019
  7. Jeff KingNov 14, 2019
  8. Johannes SchindelinNov 14, 2019
  9. GitGitGadget on git/git, was Re: Should we auto-close PRs on git/git?Johannes Schindelin, Nov 18, 2019
  10. Jeff KingNov 21, 2019
  11. Johannes SchindelinNov 22, 2019
  12. Johannes SchindelinNov 22, 2019
  13. Jeff KingNov 25, 2019
  14. Johannes SchindelinNov 26, 2019
  15. Eric WongNov 26, 2019
  16. Johannes SchindelinNov 26, 2019
  17. Eric WongNov 26, 2019
  18. Johannes SchindelinNov 26, 2019
  19. Eric WongNov 26, 2019
  20. Junio C HamanoNov 27, 2019
  21. Eric WongNov 27, 2019
  22. Emily ShafferNov 13, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.