Skip to content

Commit c3d93de

Browse files
committed
chore: Manage Composer dependencies with Dependabot
Add a composer ecosystem to dependabot.yml so runtime and development dependencies are kept current, using a chore prefix for development updates so they do not cut a release. Remove renovate.json, which used the deprecated config:base preset and overlapped with Dependabot. Guard the automerge close job so it only closes dependency pull requests that touch the npm manifests. Without it a Composer update, which never changes src/**, would be closed automatically. Set CODEOWNERS to the sdk team to match the other SDK repositories. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RFK47311nWtbd3gHmjdknR
1 parent fc5bd86 commit c3d93de

4 files changed

Lines changed: 22 additions & 18 deletions

File tree

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @rchodava @andrii-balitskyi @seveibar
1+
* @seamapi/sdk

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,15 @@ updates:
2121
update-types:
2222
- patch
2323
- minor
24+
- package-ecosystem: composer
25+
directory: '/'
26+
schedule:
27+
interval: daily
28+
commit-message:
29+
prefix: feat
30+
prefix-development: chore
31+
include: scope
32+
ignore:
33+
- dependency-name: '*'
34+
update-types:
35+
- 'version-update:semver-major'

.github/workflows/automerge.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
checks: read
1717
outputs:
1818
has_changes: ${{ steps.changed.outputs.any_changed == 'true' }}
19+
is_npm_update: ${{ steps.npm.outputs.any_changed == 'true' }}
1920
is_generation_successful: ${{ steps.checks.outputs.conclusion == 'success' }}
2021
steps:
2122
- name: Wait for checks
@@ -31,6 +32,13 @@ jobs:
3132
with:
3233
files: |
3334
src/**
35+
- name: Get changed npm manifests
36+
id: npm
37+
uses: tj-actions/changed-files@v44
38+
with:
39+
files: |
40+
package.json
41+
package-lock.json
3442
merge:
3543
name: Merge
3644
runs-on: ubuntu-latest
@@ -53,7 +61,7 @@ jobs:
5361
runs-on: ubuntu-latest
5462
timeout-minutes: 30
5563
needs: changes
56-
if: needs.changes.outputs.has_changes == 'false' && needs.changes.outputs.is_generation_successful == 'true'
64+
if: needs.changes.outputs.has_changes == 'false' && needs.changes.outputs.is_generation_successful == 'true' && needs.changes.outputs.is_npm_update == 'true'
5765
steps:
5866
- name: Close pull request
5967
run: gh pr close "$PR_URL"

renovate.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)