Skip to content

Conversation

@DenverCoder1
Copy link
Contributor

Why:

When I saw this example, I assumed this meant you could have groups defined outside of updates to apply to all package types. Doing so, however, causes the dependabot file check to fail with the following error:

Your .github/dependabot.yml contained invalid details

Dependabot encountered the following error when parsing your .github/dependabot.yml:

The property '#/' contains additional properties ["groups"] outside of the schema when none are allowed

Please update the config file to conform with Dependabot's specification.

Closes #27987

What's being changed (if available, include any code snippets, screenshots, or gifs):

This example shows groups at the top level of a dependabot.yml. This PR corrects it to have the groups indented within the npm updates settings since it otherwise fails.

# `dependabot.yml` file using the `update-types` option to group updates.
# Any packages matching the pattern @angular* where the highest resolvable
# version is minor or patch will be grouped together.
version: 2
updates:
  - package-ecosystem: "npm"
    directory: "/"
    schedule:
      interval: "weekly"
groups:
  angular:
    patterns:
    - "@angular*"
    update-types:
    - "minor"
    - "patch"

Check off the following:

  • I have reviewed my changes in staging, available via the View deployment link in this PR's timeline.

    • For content changes, you will also see an automatically generated comment with links directly to pages you've modified. The comment won't appear if your PR only edits files in the data directory.
  • For content changes, I have completed the self-review checklist.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 6, 2023

Thanks for submitting a PR to the GitHub Docs project!

In order to review and merge PRs most efficiently, we require that all PRs grant maintainer edit access before we review them. For information on how to do this, see the documentation.

@github-actions github-actions bot added the triage Do not begin working on this issue until triaged by the team label Sep 6, 2023
@DenverCoder1
Copy link
Contributor Author

In order to review and merge PRs most efficiently, we require that all PRs grant maintainer edit access before we review them. For information on how to do this, see the documentation.

It is not possible to do this with a repo in an organization

@DenverCoder1
Copy link
Contributor Author

superseded by #28056

@DenverCoder1 DenverCoder1 deleted the groups-example branch September 6, 2023 18:52
@cmwilson21 cmwilson21 removed the triage Do not begin working on this issue until triaged by the team label Sep 7, 2023
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.

DOCS: Examples of groups parameter for Dependabot updates has wrong indentation level

2 participants