diff --git a/.github/workflows/dependabot-skip-changelog.yml b/.github/workflows/dependabot-skip-changelog.yml deleted file mode 100644 index 12b516e3..00000000 --- a/.github/workflows/dependabot-skip-changelog.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Label Dependabot PRs - -on: - pull_request: - types: [opened] - -jobs: - label_dependabot: - runs-on: ubuntu-latest - permissions: - pull-requests: write - steps: - - name: Check if PR is by Dependabot - uses: actions/github-script@v7 - with: - script: | - const prAuthor = context.payload.pull_request.user.login; - const prNumber = context.payload.pull_request.number; - const repoOwner = context.repo.owner; - const repoName = context.repo.repo; - - if (prAuthor === 'dependabot[bot]' || prAuthor === 'dependabot') { - core.info(`PR #${prNumber} is authored by Dependabot. Adding label...`); - await github.rest.issues.addLabels({ - owner: repoOwner, - repo: repoName, - issue_number: prNumber, - labels: ['skip changelog'] - }); - } else { - core.info(`PR #${prNumber} is not authored by Dependabot. No action taken.`); - } diff --git a/.github/workflows/enforce-changelog.yml b/.github/workflows/enforce-changelog.yml index f04a7bb6..64027bd2 100644 --- a/.github/workflows/enforce-changelog.yml +++ b/.github/workflows/enforce-changelog.yml @@ -1,9 +1,34 @@ -name: "Enforce Changelog" +name: Enforce Changelog on: pull_request: types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] jobs: + label_dependabot: + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - name: Check if PR is by Dependabot + uses: actions/github-script@v7 + with: + script: | + const prAuthor = context.payload.pull_request.user.login; + const prNumber = context.payload.pull_request.number; + const repoOwner = context.repo.owner; + const repoName = context.repo.repo; + + if (prAuthor === 'dependabot[bot]' || prAuthor === 'dependabot') { + core.info(`PR #${prNumber} is authored by Dependabot. Adding label...`); + await github.rest.issues.addLabels({ + owner: repoOwner, + repo: repoName, + issue_number: prNumber, + labels: ['skip changelog'] + }); + } else { + core.info(`PR #${prNumber} is not authored by Dependabot. No action taken.`); + } changelog: runs-on: ubuntu-latest steps: diff --git a/package-lock.json b/package-lock.json index 293a2994..69dea0a6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1344,9 +1344,9 @@ } }, "node_modules/@sap/cds": { - "version": "8.5.1", - "resolved": "https://registry.npmjs.org/@sap/cds/-/cds-8.5.1.tgz", - "integrity": "sha512-uOja4rkv37GstTndj4PpXLjPoX7AkGy9oNCO9mMT1tyJYo7gfoVuJY5fmE50xegqDrHgKI2aMQu9kDyKGEQ/4A==", + "version": "8.6.0", + "resolved": "https://registry.npmjs.org/@sap/cds/-/cds-8.6.0.tgz", + "integrity": "sha512-MagthrcmAa1l+nAtx/4gMnDv9scfkIwXPFQT7N8+dLU0u1DitLePA5nYk9M62wHZy79mE1tPwxdoLS2NdMzQQw==", "dev": true, "dependencies": { "@sap/cds-compiler": ">=5.1", @@ -3234,11 +3234,10 @@ } }, "node_modules/globals": { - "version": "15.13.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-15.13.0.tgz", - "integrity": "sha512-49TewVEz0UxZjr1WYYsWpPrhyC/B/pA8Bq0fUmet2n+eR7yn0IvNzNaoBwnK6mdkzcN+se7Ez9zUgULTz2QH4g==", + "version": "15.14.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-15.14.0.tgz", + "integrity": "sha512-OkToC372DtlQeje9/zHIo5CT8lRP/FUgEOKBEhU4e0abL7J7CD24fD9ohiLN5hagG/kWCYj4K5oaxxtj2Z0Dig==", "dev": true, - "license": "MIT", "engines": { "node": ">=18" },