You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Elliotte Rusty Harold <el...@ibiblio.org> on 2023/03/04 23:55:19 UTC

Protect master branch

Could a repo owner please protect the master branch on github, at
least for the core project? I accidentally pushed a change to master
without review or test because I thought I was working on a branch and
I wasn't. Cleaned up now, I think, but it shouldn't have been possible
for me to do this.

-- 
Elliotte Rusty Harold
elharo@ibiblio.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: Protect master branch

Posted by Elliotte Rusty Harold <el...@ibiblio.org>.
Thanks. PR sent:

https://github.com/apache/maven/pull/1035

On Sun, Mar 5, 2023 at 7:12 AM tison <wa...@gmail.com> wrote:
>
> Hi Elliotte,
>
> Which repository would you like to add such protection to? With ASF INFRA
> settings you can check in a .asf.yaml file to control the rule.
>
> See
> https://cwiki.apache.org/confluence/display/INFRA/Git+-+.asf.yaml+features#Git.asf.yamlfeatures-Branchprotection
>
> Best,
> tison.
>
>
> Christoph Läubrich <ma...@laeubi-soft.de> 于2023年3月5日周日 12:46写道:
>
> > If you don't want to rely on branch protection you can do the following:
> >
> >
> >     git remote add fork <your fork url where you want to push>
> >     git remote set-url --push origin no_push
> >
> >
> >
> >
> > Am 05.03.23 um 00:55 schrieb Elliotte Rusty Harold:
> > > Could a repo owner please protect the master branch on github, at
> > > least for the core project? I accidentally pushed a change to master
> > > without review or test because I thought I was working on a branch and
> > > I wasn't. Cleaned up now, I think, but it shouldn't have been possible
> > > for me to do this.
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > For additional commands, e-mail: dev-help@maven.apache.org
> >
> >



-- 
Elliotte Rusty Harold
elharo@ibiblio.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: Protect master branch

Posted by tison <wa...@gmail.com>.
Hi Elliotte,

Which repository would you like to add such protection to? With ASF INFRA
settings you can check in a .asf.yaml file to control the rule.

See
https://cwiki.apache.org/confluence/display/INFRA/Git+-+.asf.yaml+features#Git.asf.yamlfeatures-Branchprotection

Best,
tison.


Christoph Läubrich <ma...@laeubi-soft.de> 于2023年3月5日周日 12:46写道:

> If you don't want to rely on branch protection you can do the following:
>
>
>     git remote add fork <your fork url where you want to push>
>     git remote set-url --push origin no_push
>
>
>
>
> Am 05.03.23 um 00:55 schrieb Elliotte Rusty Harold:
> > Could a repo owner please protect the master branch on github, at
> > least for the core project? I accidentally pushed a change to master
> > without review or test because I thought I was working on a branch and
> > I wasn't. Cleaned up now, I think, but it shouldn't have been possible
> > for me to do this.
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>

Re: Protect master branch

Posted by Christoph Läubrich <ma...@laeubi-soft.de>.
If you don't want to rely on branch protection you can do the following:


    git remote add fork <your fork url where you want to push>
    git remote set-url --push origin no_push




Am 05.03.23 um 00:55 schrieb Elliotte Rusty Harold:
> Could a repo owner please protect the master branch on github, at
> least for the core project? I accidentally pushed a change to master
> without review or test because I thought I was working on a branch and
> I wasn't. Cleaned up now, I think, but it shouldn't have been possible
> for me to do this.
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org