Open yeeteing opened 3 years ago
Heya @yeeteing
Sorry but I'm a little slow today and struggling to follow your issue.
- descriptionMatches was being activated even the pattern is being shown in commit. I thought descriptionMatches is only valid for pull request description, and commit should not trigger the labeling generation.
So is the commit being added to a branch that has an open pull request? And this is then triggering the descriptionMatches config? Is that right?
I would assume that
"requires":
means how many conditions need to match in order to activate the labeling generator. So, if "requires" is 1, is that mean I just need one "conditions" to be valid to activate thebugfix
label?
You are right. If it requires: 1
, it will activate if 1 or more condition matches. In branch #24 there is an $and
, $or
and $only
which I don't believe have been ported over to this project yet.
- Pull request title is "add something", I would assume this will trigger the auto labeling base on the config I have below:
Yes, this would trigger the auto labeling. IF you are not triggering it, could you provide the logs so we can investigate?
To provide the logs: Please set the ACTIONS_RUNNER_DEBUG
secret to true
to enable debug logging, rerun the labeler workflow
You can see an example of how we utilize this function here: https://github.com/Videndum/action-masterminds/blob/4ad0ff689353b86a122b3c0c5eace7303a7cd998/.github/allconfigs.json#L1071-L1083
So is the commit being added to a branch that has an open pull request? And this is then triggering the descriptionMatches config? Is that right?
Yup, correct. I also noticed that even though I didn't include descriptionMatches config, it's still triggered the auto labeling when I have some keyword being added in the description of the PR.
"modified": {
"requires": 1,
"conditions": [
{
"type": "branchMatches",
"pattern": "/modif|change|update/i"
},
{
"type": "titleMatches",
"pattern": "/restructure|modif|change|update|move|moving/i"
}
]
}
@yeeteing can you link me or screenshot the open PR for me please
I did not get any log
Describe the bug
descriptionMatches was being activated even the pattern is being shown in commit. I thought descriptionMatches is only valid for pull request description, and commit should not trigger the labeling generation.
For:
I would assume that
"requires":
means how many conditions need to match in order to activate the labeling generator. So, if "requires" is 1, is that mean I just need one "conditions" to be valid to activate thebugfix
label?