Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Lists of changed files of pull-requests are empty #555

Closed
4 tasks done
anbraten opened this issue Nov 29, 2021 · 2 comments · Fixed by #697
Closed
4 tasks done

Lists of changed files of pull-requests are empty #555

anbraten opened this issue Nov 29, 2021 · 2 comments · Fixed by #697
Labels
bug Something isn't working
Milestone

Comments

@anbraten
Copy link
Member

Component

server

Describe the bug

pipeline:
  build:
    image: node:14-alpine
    commands:
      - cd docs/
      - yarn install --frozen-lockfile
      - yarn build
    when:
      event: [push, pull_request]
      path: "docs/**"

Step is executed although no file in docs/** has been changed.

System Info

{"source":"https://github.com/woodpecker-ci/woodpecker","version":"next-7931bc78"}

Additional context

https://ci.woodpecker-ci.org/woodpecker-ci/woodpecker/build/1317

Validations

@anbraten anbraten added pending:bug bug Something isn't working and removed pending:bug labels Nov 29, 2021
@anbraten anbraten added this to the 0.15.0 milestone Nov 29, 2021
@anbraten anbraten changed the title step paths seems to be ignored in some cases / not working at all step path condition seems to be ignored / not working at all Nov 29, 2021
@anbraten
Copy link
Member Author

anbraten commented Dec 5, 2021

It seems to work in general. One problem I saw is that changed_files for a commit of a PR only includes the changes of that single commit instead of all changes of the PR. This is felt somehow wrong to me and does not allow to use path changes as for example the woodpecker project itself is currently trying to.

6543 added a commit to 6543-forks/woodpecker that referenced this issue Jan 8, 2022
@anbraten anbraten changed the title step path condition seems to be ignored / not working at all List of changed files of pull-request are empty Jan 10, 2022
@anbraten anbraten changed the title List of changed files of pull-request are empty Lists of changed files of pull-request are empty Jan 10, 2022
@anbraten anbraten changed the title Lists of changed files of pull-request are empty Lists of changed files of pull-requests are empty Jan 10, 2022
@anbraten
Copy link
Member Author

anbraten commented Jan 10, 2022

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant