Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can filter branch #30

Open
CritasWang opened this issue Dec 27, 2017 · 15 comments
Open

How can filter branch #30

CritasWang opened this issue Dec 27, 2017 · 15 comments

Comments

@CritasWang
Copy link

How can filter branch。
like devProject only excute by push develop branch

@s-mokrushin
Copy link

Yep, I didn't find this feature too :(

@sanderv32
Copy link
Contributor

At the moment there is no filter function like this. I only don't know the ETA for this as there are also other issues which need to be fixed and i'm the only contributor at the moment and my spare time is precious.

@geco82
Copy link

geco82 commented Feb 28, 2018

+1

@sanderv32
Copy link
Contributor

Version 1.0.11 has this feature.

@geco82
Copy link

geco82 commented Feb 28, 2018

Could you please explain me the usage? Thanks!

@sanderv32
Copy link
Contributor

Just put '[IGNORE]' in front of your commit to ignore the push.

@sanderv32
Copy link
Contributor

See: 1c1abd5

@urusha
Copy link

urusha commented Sep 28, 2018

@sanderv32 , I believe IGNORE feature - is not what @CritasWang has described. Imagine gogs repository with 10 branches, and I want to trigger builds only for 3 of them. IGNORE will not help. See https://github.com/jenkinsci/gitlab-plugin#branch-filtering
I think the issue should be reopened.

@fancyboynet
Copy link

Is it fixed now?

@sanderv32
Copy link
Contributor

Seems like PR #52 is @CritasWang was talking about. Will merge this soon.

@sanderv32 sanderv32 reopened this Jul 2, 2019
@sanderv32
Copy link
Contributor

Just merged #61 and will be in the next release

@urusha
Copy link

urusha commented Aug 13, 2019

@sanderv32 I see Branch Filter is here. Thanks! But I didn't find a way to specify multiple branches. Is it possible? Should I file new report?

@sanderv32
Copy link
Contributor

Branch filter currently only works for one branch. If you want to specify multiple branches we need to think on how to do this

@urusha
Copy link

urusha commented Aug 14, 2019

Well, this is how it's in gitlab plugin:
image
We could start with regex or comma separation (with wildcards maybe)?

@CritasWang
Copy link
Author

CritasWang commented Aug 14, 2019

Well, this is how it's in gitlab plugin:
image
We could start with regex or comma separation (with wildcards maybe)?

https://github.com/CritasWang/gogs-webhook-plugin/tree/master/bin

Here is me forked from jenkinsci/gogs-webhook-plugin

But I did not submit PR.Because I don't think it's good enough.just for temporary use。

image
image

Code:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants