Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Update config to allow for a simpler setup by default #847

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

joshdales
Copy link
Contributor

@joshdales joshdales commented Feb 16, 2025

Description:
Update the config so that you don't need to provide as many options to the changed-files option and that it works a bit more similarly to the v5 beta, however you can still provide all the advanced configuration options if you need or want to.

Basically this

test:
  - changed-files: 'glob'

is now the same as

test:
  any:
    - changed-files:
      - any-glob-to-any-file: ['glob']

If you provide an all key then it will then default to all-globs-match-all-files behaviour:

test:
  all:
    - changed-files: 'glob'

is the same as

test:
  all:
    - changed-files:
      - all-globs-to-all-files: ['glob']

This would also probably allow an easier upgrade from v4 to v5

Related issue:
#715

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

@joshdales joshdales requested a review from a team as a code owner February 16, 2025 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant