Label filters based on Head & Base branch names
See original GitHub issueAre there any plans to add labels based on regex matching head/base branch?
Current config -
feature: ['feature/*', 'feat/*']
fix: fix/*
chore: chore/*
fixed-branch: fixed-branch-name
Suggested config
feature:
head: ["feature/*", "feat/*"]
hotfix:
base: master
ignore: ["develop"]
release:
head: develop
base: master
This could give more control over labelling.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:11 (4 by maintainers)
Top Results From Across the Web
How can I filter all GitHub pull requests for a specific target ...
You can filter pull requests based on the branch they came from (the "head" branch) or the branch they are merging into (the...
Read more >git-filter-branch Documentation - Git
Lets you rewrite Git revision history by rewriting the branches mentioned in the <rev-list options>, applying custom filters on each revision. Those filters...
Read more >TeamCity On-Premises - Working with Feature Branches
You can also filter history by a branch name if you're interested in a particular branch. TeamCity assigns a branch label to the...
Read more >Branches - GitLab Docs
Prefix a branch name with an issue number to streamline merge request creation. ... Do you have a branch named 'HEAD' in your...
Read more >Advanced Git Log | Atlassian Git Tutorial
Formatting Log Output Filtering the Commit History Summary ... Branches, tags, HEAD , and the commit history are almost all of the information...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@TimonVS @amacado I would love to. I can probably get to this in a few weeks if nobody has picked this up by then.
Hello, I created a PR for it ➡️ https://github.com/TimonVS/pr-labeler-action/pull/61
It only adds the
head
andbase
options since there seemed to be a consensus around them, and uses the AND operator when both options are used in combination.