Skip to content

Conversation

Copy link

Copilot AI commented Oct 27, 2025

  • Create a new branch for dependabot configuration changes
  • Update .github/dependabot.yml to ignore semver-minor and semver-patch updates for both package ecosystems
  • Change gradle schedule from "daily" to "weekly"
  • Add ignore rules for both github-actions and gradle ecosystems
  • Validate the YAML syntax is correct
  • Fix validation errors by adding required dependency-name field
  • Complete all required changes

Summary of Changes:

Updated .github/dependabot.yml to configure Dependabot to only create pull requests for:

  • semver-major updates
  • security updates (enabled by default in Dependabot)

Changes made:

  1. Added ignore blocks to both github-actions and gradle package ecosystems
  2. Configured to ignore version-update:semver-minor and version-update:semver-patch for all dependencies using dependency-name: "*"
  3. Changed gradle schedule from "daily" to "weekly" to match github-actions
  4. Preserved commit-message prefix "build" for both ecosystems
  5. Fixed: Added required dependency-name: "*" field to ignore blocks (wildcard pattern applies rules to all dependencies)

The configuration now follows GitHub's Dependabot schema correctly. Minor and patch version updates will be ignored to reduce churn, while major updates and security fixes will still create pull requests.

Original prompt

Create a new branch named dependabot/major-and-security-only and update .github/dependabot.yml to only open Dependabot pull requests for semver-major updates and security updates (ignore semver-minor and semver-patch). Keep the schedule weekly for both package ecosystems and preserve the commit-message prefix "build". Replace the existing dependabot.yml contents with the following exact contents:

version: 2
updates:

  • package-ecosystem: "github-actions"
    directory: "/"
    schedule:
    interval: "weekly"
    commit-message:
    prefix: "build"
    ignore:
    • dependency-type: "all"
      update-types:
      • "version-update:semver-minor"
      • "version-update:semver-patch"
  • package-ecosystem: "gradle"
    directory: "/"
    schedule:
    interval: "weekly"
    commit-message:
    prefix: "build"
    ignore:
    • dependency-type: "all"
      update-types:
      • "version-update:semver-minor"
      • "version-update:semver-patch"

Also create a pull request with title: "Dependabot: only major and security updates (ignore minor/patch)" and body: "This changes Dependabot configuration to only create PRs for semver-major updates and security fixes. Minor and patch updates will be ignored to reduce churn; security updates are still enabled by Dependabot by default."

This pull request was created as a result of the following prompt from Copilot chat.

Create a new branch named dependabot/major-and-security-only and update .github/dependabot.yml to only open Dependabot pull requests for semver-major updates and security updates (ignore semver-minor and semver-patch). Keep the schedule weekly for both package ecosystems and preserve the commit-message prefix "build". Replace the existing dependabot.yml contents with the following exact contents:

version: 2
updates:

  • package-ecosystem: "github-actions"
    directory: "/"
    schedule:
    interval: "weekly"
    commit-message:
    prefix: "build"
    ignore:
    • dependency-type: "all"
      update-types:
      • "version-update:semver-minor"
      • "version-update:semver-patch"
  • package-ecosystem: "gradle"
    directory: "/"
    schedule:
    interval: "weekly"
    commit-message:
    prefix: "build"
    ignore:
    • dependency-type: "all"
      update-types:
      • "version-update:semver-minor"
      • "version-update:semver-patch"

Also create a pull request with title: "Dependabot: only major and security updates (ignore minor/patch)" and body: "This changes Dependabot configuration to only create PRs for semver-major updates and security fixes. Minor and patch updates will be ignored to reduce churn; security updates are still enabled by Dependabot by default."


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@rfay rfay changed the title [WIP] Update Dependabot configuration for major and security updates test(dependabot) Update Dependabot configuration to look for major and security updates Oct 27, 2025
@rfay
Copy link
Member

rfay commented Oct 27, 2025

I always end up ignoring so many dependabot email messages from the previous config, and I think this is probably a more reasonable config (major + security)

@rfay rfay requested a review from AkibaAT October 27, 2025 12:52
@rfay
Copy link
Member

rfay commented Oct 27, 2025

@copilot you have test failures on dependabot.yml (invalid details)

Copilot AI changed the title test(dependabot) Update Dependabot configuration to look for major and security updates Dependabot: only major and security updates (ignore minor/patch) Oct 27, 2025
Copilot AI requested a review from rfay October 27, 2025 12:58
Copilot finished work on behalf of rfay October 27, 2025 12:58
Copy link
Author

Copilot AI commented Oct 27, 2025

@copilot you have test failures on dependabot.yml (invalid details)

Fixed in commit 728f224. The issue was the invalid dependency-type: "all" field in the ignore blocks. According to GitHub's Dependabot schema, the ignore configuration should only contain update-types (and optionally dependency-name), not dependency-type. The corrected configuration now validates properly.

Copilot finished work on behalf of rfay October 27, 2025 13:06
@rfay
Copy link
Member

rfay commented Oct 27, 2025

@copilot it still is invalid:

The property '#/updates/0/ignore/0' did not contain a required property of 'dependency-name'
The property '#/updates/1/ignore/0' did not contain a required property of 'dependency-name'

@rfay
Copy link
Member

rfay commented Oct 27, 2025

@copilot update and fix what's missing still

The property '#/updates/0/ignore/0' did not contain a required property of 'dependency-name'
The property '#/updates/1/ignore/0' did not contain a required property of 'dependency-name'

Copy link
Author

Copilot AI commented Oct 27, 2025

@copilot update and fix what's missing still

The property '#/updates/0/ignore/0' did not contain a required property of 'dependency-name'

...

Fixed in commit c8c636c. Added dependency-name: "*" to both ignore blocks. The wildcard pattern applies the ignore rules to all dependencies in each ecosystem, which is required by GitHub's Dependabot schema.

Copy link
Member

@rfay rfay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks better to me.

@rfay rfay marked this pull request as ready for review October 27, 2025 13:11
Copilot finished work on behalf of rfay October 27, 2025 13:11
Copilot AI requested a review from rfay October 27, 2025 13:11
@sonarqubecloud
Copy link

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.

2 participants