fuxingloh / multi-labeler Goto Github PK
View Code? Open in Web Editor NEWMulti labeler for title, body, comments, commit messages, branch, author or files with automated status checks.
License: MIT License
Multi labeler for title, body, comments, commit messages, branch, author or files with automated status checks.
License: MIT License
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These branches will be created by Renovate only once you click their checkbox below.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
.github/workflows/ci-package.yml
actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
actions/setup-node v4.0.3@1e60f620b9541d16bece96c5465dc8ee9832be0b
tibdex/github-app-token v2.1.0@3beb63f4bd073e61482598c45c71c1019b59b73a
peter-evans/create-pull-request v6.1.0@c5a7806660adbe173f04e3e038b0ccdcd758773c
.github/workflows/ci-use.yml
actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
.github/workflows/ci.yml
actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
actions/setup-node v4.0.3@1e60f620b9541d16bece96c5465dc8ee9832be0b
actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
actions/setup-node v4.0.3@1e60f620b9541d16bece96c5465dc8ee9832be0b
actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
actions/setup-node v4.0.3@1e60f620b9541d16bece96c5465dc8ee9832be0b
actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
actions/setup-node v4.0.3@1e60f620b9541d16bece96c5465dc8ee9832be0b
actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
actions/setup-node v4.0.3@1e60f620b9541d16bece96c5465dc8ee9832be0b
.github/workflows/draft.yml
release-drafter/release-drafter v6.0.0@3f0f87098bd6b5c5b9a36d49c41d998ea58f9348
.github/workflows/release.yml
actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
vweevers/additional-tags-action v2.0.0@3bab55b44e81186dcfef7db9f2cbca01a78eb710
package.json
@actions/core ^1.10.1
@actions/github ^6.0.0
fp-ts ^2.16.9
io-ts ^2.2.21
io-ts-reporters ^2.0.1
js-yaml ^4.1.0
lodash ^4.17.21
minimatch ^9.0.5
@vercel/ncc ^0.38.1
.nvmrc
node 20.17.0
Hi there.
Just started using this action so if I'm doing something silly please let me know but I can't seem to get valid parenthesis-related regex statements working in my labeler.yml.
PR title is: "build(deps): apply minor and patch dependency updates test" - we use both "^build(deps): ." and "^build(dev-deps): ." commit and PR title tags and I'd like to catch both and apply a "dependencies" label.
The following labeler.yml catches that PR title and succesfully applies the label:
version: v1
labels:
- label: "dependencies"
sync: true
matcher:
title: "^build.*"
commits: "^build.*"
However, to use parentheses I am obviously going to have to escape them. \(
isn't valid YAML so I went for \x28
instead and came up with the following valid regex:
title: "^build\x28(deps|deps-dev)\x29: .*"
However, the action then does nothing - officially passed but gives no useful logging output and doesn't apply the label.
Is there a debug flag for getting useful logging? And should valid regex like this work?
Any help much appreciated.
to create label based on the path of the changed files
for example: files changed under proj/test-proj-1
the label should be test-proj-1
here is an action with this feature
https://github.com/TinkurLab/monorepo-pr-labeler-action/blob/master/app.js
Thanks for the great tool!
Could you document more on the files.all option and output option?
Both of them are not very clear from the test case.
Here is what I got.
output.labels
as an array of labels. (This one is pretty simple)
files.all
it will match all glob expressions in the array. The behavior is like "and", while any is like "or".
Also it seems like the expression doesn't work correctly with !(xxx|zzz)/**
But it seems like it should work according to https://github.com/isaacs/minimatch
PS: if there is a way to pass the option of minimatch, that will be awesome!
I like the super-fast labels-only approach of this action.
But, one of the things I was looking for is: label based on target branch (base branch) of pull request.
For example, I want to add a release
label to PRs targeting release/*
branches.
Is this something acceptable as a feature here?
Quite often we want to be sure that only one of a specific list of labels is present. Current options like any
would indicate that it will pass even with 2+ matches, which could cause problems for changelog generation.
Runs for this action have started failing with:
Run fuxingloh/multi-labeler@v2
/home/runner/work/_actions/fuxingloh/multi-labeler/v2/webpack:/multi-labeler/lib/main.js:42
throw new Error('Could not get issue_number from pull_request or issue from context');
^
Error: Could not get issue_number from pull_request or issue from context
and
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: fuxingloh/multi-labeler@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Looking at the action.yml
here I can see:
runs:
using: 'node16'
main: 'dist/index.js'
Not being a node
user, I'm unsure if this can just be updated to node20
and all will be well again.
Add ability to sync tags and remove tags that does not fit the condition provided inlabeler.yml
?
Finally a labeler action that actually works on commit messages! We'll be having a lot of repositories using this action and would like to place the configuration in a central place (the @org/.github repo). How can I configure the action to use a configuration from a different repository?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.