Giter VIP home page Giter VIP logo

Comments (8)

bewuethr avatar bewuethr commented on August 17, 2024 1

I observe the same issue. Specifically, with v4.1.0, a change in a top-level README.md is not picked up; with v4.0.4, it is (for the configuration shown above). Maybe regression introduced by the dot feature?

In this PR, I switch between v4.0.4 and v4.1.0 with sync-labels: true and a change only in the top-level README.md; with v4.1.0, the label is removed, with v4.0.4, it is applied.

from labeler.

bewuethr avatar bewuethr commented on August 17, 2024 1

@alebaffa, I have investigated the PR you mentioned. Action works just fine, the issue in the PR is using / in the beginning of the blob /**/*.md. If you change it to **/*.md - it works as expected.

cc @bewuethr

I thought "that's not right" and started more reproducers, based on this config:

name: Labeler
on: 
  - pull_request_target

jobs:
  label:
    runs-on: ubuntu-22.04
    permissions:
      contents: read
      pull-requests: write

    steps:
    - uses: actions/[email protected]
      with:
        repo-token: ${{ secrets.GITHUB_TOKEN }}

Then I did this:

  1. https://github.com/bewuethr/github-actions-tests/pull/3
  2. https://github.com/bewuethr/github-actions-tests/pull/4
  3. Update config to v4.1.0
  4. https://github.com/bewuethr/github-actions-tests/pull/5
  5. https://github.com/bewuethr/github-actions-tests/pull/6

aaaand they all work as expected, so that simple reproducer is wrong.

I definitely noticed a disparity between v4.1.0 and v4.0.4 with sync-labels: true, trying to reproduce here:

  1. Enabled sync-labels: true
  2. Opened PR that touched top-level README: https://github.com/bewuethr/github-actions-tests/pull/7
  3. Switched back to v4.0.4
  4. Switched back to 4.1.0

... but that also all behaved correctly.

The only weird thing I ever observed was in this PR, where switching between v4.0.4 and v4.1.0 would add and remove the label:

image

But I haven't been able to reproduce this πŸ€·πŸ»β€β™‚οΈ

from labeler.

alebaffa avatar alebaffa commented on August 17, 2024

Just saw #526 . Probably it's the same issue? Though, this case is also mentioned in the examples in the documentation..not sure..

from labeler.

AndreiLobanovich avatar AndreiLobanovich commented on August 17, 2024

Hello, @alebaffa! I hope this message finds you well.

Firstly, thank you for bringing this issue to our attention. I've been attempting to reproduce the error based on the information you've provided, however, so far I've been unable to replicate the same behavior.

To better understand the problem and provide a solution, it would be extremely helpful if you could provide a link to the specific GitHub Actions run where you experienced the failure. This will help us to pinpoint the exact circumstances under which the issue is occurring and expedite the process of finding a resolution.

Thank you in advance for your time and assistance. Your contribution to improving our project is highly valued.

Best regards.

from labeler.

alebaffa avatar alebaffa commented on August 17, 2024

I think the comment by @bewuethr, and his PR, describes the issue and how to replicate it more clearly than what I wrote. I then tested so many other things, delete branches and merged PRs that now it's difficult to give you something replicable from my repo.
Basically, as bewuethr tested, I am just following the examples given in the documentation with the latest release and the label is not applied. Looks like v4.1.0 introduced a regression. It is working with v.4.0.4.

from labeler.

AndreiLobanovich avatar AndreiLobanovich commented on August 17, 2024

@alebaffa, I have investigated the PR you mentioned. Action works just fine, the issue in the PR is using / in the beginning of the blob /**/*.md. If you change it to **/*.md - it works as expected.

cc @bewuethr

from labeler.

AndreiLobanovich avatar AndreiLobanovich commented on August 17, 2024

@bewuethr, thanks for your efforts in reproducing the issue, much appreciated!
@alebaffa, are you still experiencing any difficulties regarding the topic? Is there anything I could help you with?

from labeler.

alebaffa avatar alebaffa commented on August 17, 2024

Thank you both for your help. I am going to close this issue.

from labeler.

Related Issues (20)

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.