Re: prevent accidentally creating branches in dist-git
I filed https://pagure.io/fedora-infrastructure/issue/7398 to see if the infrastructure folks (or pingou or whoever) would be willing to turn this on for all existing repositories. - J< ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Re: prevent accidentally creating branches in dist-git
On Wed, Nov 21, 2018 at 10:31:34AM -0500, Neal Gompa wrote: > On Tue, Nov 20, 2018 at 9:26 AM Dusty Mabe wrote: > > > > > > I've certainly made the mistake of accidentally creating branches > > in dist-git and now being stuck with them because we can't delete > > them. Now that src.fedoraproject.org (dist-git) is backed by a newer > > version of pagure you can prevent creating new branches by `git push`. > > > > For your project in the web UI: > > > > - Go to the `Settings` menu > > - Select `Hooks` from the left hand side > > - Expand `Prevent creating new branches by git push` > > - Click the checkbox > > - Click `Update` > > > > I personally think this should be the default for all projects but > > I don't know if there is a way to easily make that happen when a project > > gets created. > > > > Hope this helps someone! > > This is amazing. Please tell me there's an API call to set this for > all my projects? Because I just want this for every package I > maintain, excluding forks (obviously)! There is no API call to toggle Hooks yet, definitively worth opening a RFE though :) Pierre ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Re: prevent accidentally creating branches in dist-git
On Wed, Nov 21, 2018 at 09:34:14AM -0600, Jason L Tibbitts III wrote: > > "DM" == Dusty Mabe writes: > DM> I personally think this should be the default for all projects but I > DM> don't know if there is a way to easily make that happen when a > DM> project gets created. > I'm sure there could be. But I'd go further and say that we should set > that on all existing repositories and then let folks opt out if they > wish. Yes, that is a good suggestion. It'd prevent some unexpected things to happen otherwise. Best, Matthias -- Matthias Runge ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Re: prevent accidentally creating branches in dist-git
On Wednesday, 21 November 2018 at 16:34, Jason L Tibbitts III wrote: > > "DM" == Dusty Mabe writes: > > DM> I personally think this should be the default for all projects but I > DM> don't know if there is a way to easily make that happen when a > DM> project gets created. > > I'm sure there could be. But I'd go further and say that we should set > that on all existing repositories and then let folks opt out if they > wish. +1, definitely. Regards, Dominik -- Fedora https://getfedora.org | RPMFusion http://rpmfusion.org There should be a science of discontent. People need hard times and oppression to develop psychic muscles. -- from "Collected Sayings of Muad'Dib" by the Princess Irulan ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Re: prevent accidentally creating branches in dist-git
> "DM" == Dusty Mabe writes: DM> I personally think this should be the default for all projects but I DM> don't know if there is a way to easily make that happen when a DM> project gets created. I'm sure there could be. But I'd go further and say that we should set that on all existing repositories and then let folks opt out if they wish. - J< ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Re: prevent accidentally creating branches in dist-git
On Tue, Nov 20, 2018 at 9:26 AM Dusty Mabe wrote: > > > I've certainly made the mistake of accidentally creating branches > in dist-git and now being stuck with them because we can't delete > them. Now that src.fedoraproject.org (dist-git) is backed by a newer > version of pagure you can prevent creating new branches by `git push`. > > For your project in the web UI: > > - Go to the `Settings` menu > - Select `Hooks` from the left hand side > - Expand `Prevent creating new branches by git push` > - Click the checkbox > - Click `Update` > > I personally think this should be the default for all projects but > I don't know if there is a way to easily make that happen when a project > gets created. > > Hope this helps someone! This is amazing. Please tell me there's an API call to set this for all my projects? Because I just want this for every package I maintain, excluding forks (obviously)! -- 真実はいつも一つ!/ Always, there's only one truth! ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Re: prevent accidentally creating branches in dist-git
Wow, thanks Dusty! This should definitely be the default for Pagure dist-git. On Tue, Nov 20, 2018 at 7:25 AM Dusty Mabe wrote: > > > I've certainly made the mistake of accidentally creating branches > in dist-git and now being stuck with them because we can't delete > them. Now that src.fedoraproject.org (dist-git) is backed by a newer > version of pagure you can prevent creating new branches by `git push`. > > For your project in the web UI: > > - Go to the `Settings` menu > - Select `Hooks` from the left hand side > - Expand `Prevent creating new branches by git push` > - Click the checkbox > - Click `Update` > > I personally think this should be the default for all projects but > I don't know if there is a way to easily make that happen when a project > gets created. > > Hope this helps someone! > Dusty > ___ > devel mailing list -- devel@lists.fedoraproject.org > To unsubscribe send an email to devel-le...@lists.fedoraproject.org > Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: > https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Re: prevent accidentally creating branches in dist-git
This is good to know. I should enable it on some of the packages that I maintain. On Tue, Nov 20, 2018 at 9:25 AM Dusty Mabe wrote: > > I've certainly made the mistake of accidentally creating branches > in dist-git and now being stuck with them because we can't delete > them. Now that src.fedoraproject.org (dist-git) is backed by a newer > version of pagure you can prevent creating new branches by `git push`. > > For your project in the web UI: > > - Go to the `Settings` menu > - Select `Hooks` from the left hand side > - Expand `Prevent creating new branches by git push` > - Click the checkbox > - Click `Update` > > I personally think this should be the default for all projects but > I don't know if there is a way to easily make that happen when a project > gets created. > > Hope this helps someone! > Dusty > ___ > devel mailing list -- devel@lists.fedoraproject.org > To unsubscribe send an email to devel-le...@lists.fedoraproject.org > Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: > https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org > ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
prevent accidentally creating branches in dist-git
I've certainly made the mistake of accidentally creating branches in dist-git and now being stuck with them because we can't delete them. Now that src.fedoraproject.org (dist-git) is backed by a newer version of pagure you can prevent creating new branches by `git push`. For your project in the web UI: - Go to the `Settings` menu - Select `Hooks` from the left hand side - Expand `Prevent creating new branches by git push` - Click the checkbox - Click `Update` I personally think this should be the default for all projects but I don't know if there is a way to easily make that happen when a project gets created. Hope this helps someone! Dusty ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org