question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Label filters based on Head & Base branch names

See original GitHub issue

Are 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:open
  • Created 4 years ago
  • Reactions:4
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
deepakputhrayacommented, Nov 22, 2019

@TimonVS @amacado I would love to. I can probably get to this in a few weeks if nobody has picked this up by then.

1reaction
gdostiecommented, Aug 15, 2022

Hello, I created a PR for it ➡️ https://github.com/TimonVS/pr-labeler-action/pull/61

It only adds the head and base options since there seemed to be a consensus around them, and uses the AND operator when both options are used in combination.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found