Code Monkey home page Code Monkey logo

multi-labeler's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Pending Approval

These branches will be created by Renovate only once you click their checkbox below.

  • bump(deps): update dependency minimatch to v10
  • bump(deps): update peter-evans/create-pull-request action to v7
  • ๐Ÿ” Create all pending approval PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.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
npm
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
nvm
.nvmrc
  • node 20.17.0

  • Check this box to trigger a request for Renovate to run again on this repository

Valid regex seemingly fails silently?

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.

Documents

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.

  1. output.labels as an array of labels. (This one is pretty simple)

  2. 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!

Deploy preview failed

There is some kind of error happening right after Label job,

Deploy preview failed
Error: The process '/usr/local/bin/npx' failed with exit code 1

image

Option to set case sensitivity

It would be really great if there was an option to set case insensitivity.

At present you have to add /i to every line - I'm not sure if this might cause other issues but it's certainly a lot of repetition.

Screen Shot 2022-09-09 at 8 59 36 am

Support matching target branch of pull request?

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?

add 'oneof' option in addition to 'any' and 'all'

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.

action has started failing; Node.js 16 actions are deprecated

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.

Sync options?

Add ability to sync tags and remove tags that does not fit the condition provided inlabeler.yml?

Shared configuration

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.