Skip to content

feat: add auto dependency updater - #231

Merged
Morgy93 merged 5 commits into
mainfrom
add-auto-updater
Aug 10, 2026
Merged

feat: add auto dependency updater#231
Morgy93 merged 5 commits into
mainfrom
add-auto-updater

Conversation

@Morgy93

@Morgy93 Morgy93 commented Aug 9, 2026

Copy link
Copy Markdown
Collaborator

This pull request improves automation for dependency and linter management by updating Dependabot configuration and introducing a scheduled workflow for upgrading Trunk linters. These changes help keep dependencies and code quality tools up-to-date with minimal manual intervention.

Dependency management improvements:

  • Enhanced .github/dependabot.yml to add labels for dependency PRs and group updates by development dependencies, PHPUnit-related packages, and GitHub Actions, allowing for more organized and manageable update pull requests.

Automated linter upgrades:

  • Added .github/workflows/trunk-upgrade.yml to automatically upgrade Trunk CLI and linters weekly, creating a pull request with the changes for review. This workflow uses GitHub Actions and includes steps for checking out code, installing and upgrading Trunk, and opening a PR with dependency labels.

Copilot AI lite review requested due to automatic review settings August 9, 2026 21:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR improves repository automation around dependency updates and code-quality tooling by enhancing Dependabot grouping/labeling and adding a scheduled GitHub Action to regularly upgrade Trunk CLI/linters and open a PR with the changes.

Changes:

  • Add a scheduled trunk upgrade workflow that opens a PR for weekly Trunk CLI/linter upgrades.
  • Enhance Dependabot config to label dependency PRs and group certain update types (Composer + GitHub Actions).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/trunk-upgrade.yml Adds a scheduled/manual workflow to run trunk upgrade and open a PR with dependency labels.
.github/dependabot.yml Adds dependency PR labels and introduces grouping rules for Composer dev/PHPUnit updates and GitHub Actions updates.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/dependabot.yml
Dependabot applies only the first matching group; the catch-all
dev-dependencies group would have swallowed all PHPUnit-ecosystem
updates. Review feedback on PR #231.
Copilot AI review requested due to automatic review settings August 10, 2026 05:24
The pinned SHA 98357b1 is the refs/tags/v8 ref, not v8.1.0 — pinact
requires the annotation to match the tag the SHA actually points to.
Verified with 'pinact run --check' against the GitHub API this time.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Suppressed comments (2)

.github/dependabot.yml:34

  • Dependabot GitHub Actions updates are configured to add the dependencies label, but this repo’s label is named Dependencies (capital D). Update the label name so updates get labelled consistently.
    labels:
      - dependencies

.github/dependabot.yml:8

  • Dependabot is configured to add the dependencies label, but this repo’s label is named Dependencies (capital D). With the current config, the label won’t be applied (and some tooling can error on unknown labels).

This issue also appears on line 33 of the same file.

    labels:
      - dependencies

Comment thread .github/workflows/trunk-upgrade.yml Outdated
Copilot AI review requested due to automatic review settings August 10, 2026 05:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

Suppressed comments (4)

.github/workflows/trunk-upgrade.yml:42

  • The repository’s label naming uses "Dependencies" (capitalised) in .github/labeler.yml, but this workflow applies the lowercase dependencies label. If the exact label doesn’t exist, create-pull-request can fail to apply it and the PR will be missing the intended triage label.
          branch: chore/trunk-upgrade
          delete-branch: true
          labels: dependencies

.github/dependabot.yml:34

  • Same label-casing issue as the Composer updates entry above: use the repo’s canonical "Dependencies" label name so GitHub Actions update PRs are labelled consistently.
    labels:
      - dependencies

.github/workflows/trunk-upgrade.yml:12

  • Most workflows in this repo define concurrency to prevent overlapping runs (and related branch/PR update races). This scheduled + manual workflow can be triggered concurrently and then fight over the same chore/trunk-upgrade branch.
permissions:
  contents: write
  pull-requests: write

.github/dependabot.yml:8

  • The repo’s label set uses the capitalised "Dependencies" label (see .github/labeler.yml), but Dependabot is configured to apply a lowercase dependencies label here. Use the canonical label name to ensure Dependabot PRs are consistently labelled.

This issue also appears on line 33 of the same file.

    labels:
      - dependencies

The label 'dependencies' does not exist in this repo; applying a
non-existent label would fail the create-pull-request step and
mislabel dependabot PRs. Review feedback on PR #231.
Copilot AI review requested due to automatic review settings August 10, 2026 05:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

Suppressed comments (2)

.github/workflows/trunk-upgrade.yml:8

  • Add a concurrency block to prevent overlapping scheduled/manual runs of this workflow (the repo’s other workflows use concurrency cancellation to avoid duplicated work and PR update races).
  workflow_dispatch:

.github/workflows/trunk-upgrade.yml:11

  • peter-evans/create-pull-request applies PR labels via the Issues API; with the current permissions block the workflow can fail to add the Dependencies label. Grant issues: write (or remove the labels input).
permissions:
  contents: write
  pull-requests: write

@Morgy93
Morgy93 merged commit bc80151 into main Aug 10, 2026
22 checks passed
@Morgy93
Morgy93 deleted the add-auto-updater branch August 10, 2026 05:38
@github-actions github-actions Bot mentioned this pull request Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants