GithubHelp home page GithubHelp logo

Comments (4)

jackton1 avatar jackton1 commented on June 14, 2024

Hi @gstokkink, the path input is only required when you clone the repository and wouldn’t be useful otherwise.

See: https://github.com/tj-actions/changed-files/blob/main/src/inputs.ts#L250-L269 for a full list of unsupported inputs when using GitHub’s API

from changed-files.

gstokkink avatar gstokkink commented on June 14, 2024

@jackton1 maybe it should raise an error then? Or is that too complicated 😄 Anyway, that just means I will have to prefix the file paths manually. Thanks for the reply.

from changed-files.

jackton1 avatar jackton1 commented on June 14, 2024

Hi @gstokkink not sure what you mean by I will have to prefix the file paths manually if you plan to change your working directory you can do so but none of that information is used to determine the list of changed files which only relies on the pull request number. Hopefully that provides some clarification.

from changed-files.

gstokkink avatar gstokkink commented on June 14, 2024

@jackton1 I meant prefixing the file patterns with the path I'm interested in. In this case the monorepo contains three apps apps/A, apps/B and apps/C. In one job I'm then only interested in the file changes for, e.g., apps/A.

With the local .git directory approach I could then set the path input to apps/A and use file pattern **.rb, for example. The list of changed files would then also be relative to this directory. With the Github REST API approach I have to use the pattern apps/A/**/*.rb, and also manually chop off the apps/A prefix from the list of changed files when processing these as paths relative to the apps/A directory.

from changed-files.

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.