Skip to content

Commit

Permalink
Merge branch 'main' into refactor/one-csn
Browse files Browse the repository at this point in the history
  • Loading branch information
daogrady authored Jan 8, 2025
2 parents 7e8d370 + 00c2bf6 commit 9b47593
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 40 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/dependabot-skip-changelog.yml

This file was deleted.

27 changes: 26 additions & 1 deletion .github/workflows/enforce-changelog.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
13 changes: 6 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9b47593

Please sign in to comment.