Discussion:
prevent accidentally creating branches in dist-git
Dusty Mabe
2018-11-20 14:25:13 UTC
Permalink
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 -- ***@lists.fedoraproject.org
To unsubscribe send an email to devel-***@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.o
Mohan Boddu
2018-11-20 16:22:56 UTC
Permalink
This is good to know. I should enable it on some of the packages that I
maintain.
Post by Dusty Mabe
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`.
- 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
_______________________________________________
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
Ken Dreyer
2018-11-21 15:24:24 UTC
Permalink
Wow, thanks Dusty!

This should definitely be the default for Pagure dist-git.
Post by Dusty Mabe
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`.
- 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
_______________________________________________
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
_______________________________________________
devel mailing list -- ***@lists.fedoraproject.org
To unsubscribe send an email to devel-***@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/dev
Neal Gompa
2018-11-21 15:31:34 UTC
Permalink
Post by Dusty Mabe
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`.
- 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 -- ***@lists.fedoraproject.org
To unsubscribe send an email to devel-***@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.fedoraproj
Pierre-Yves Chibon
2018-11-22 16:28:48 UTC
Permalink
Post by Neal Gompa
Post by Dusty Mabe
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`.
- 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 -- ***@lists.fedoraproject.org
To unsubscribe send an email to devel-***@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/***@lists
Jason L Tibbitts III
2018-11-21 15:34:14 UTC
Permalink
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 -- ***@lists.fedoraproject.org
To unsubscribe send an email to devel-***@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/
Dominik 'Rathann' Mierzejewski
2018-11-22 08:42:50 UTC
Permalink
Post by Jason L Tibbitts III
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 -- ***@lists.fedoraproject.org
To unsubscribe send an email to devel-***@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/***@lists
Jason L Tibbitts III
2018-11-26 20:11:53 UTC
Permalink
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 -- ***@lists.fedoraproject.org
To unsubscribe send an email to devel-***@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/***@list
Matthias Runge
2018-11-22 10:07:16 UTC
Permalink
Post by Jason L Tibbitts III
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 <***@matthias-runge.de>
_______________________________________________
devel mailing list -- ***@lists.fedoraproject.org
To unsubscribe send an email to devel-***@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.fedorapro
Loading...