Skip to content

build(ci): Remove unused dangerfile.js#1280

Open
runningcode wants to merge 1 commit into
mainfrom
no/remove-dead-dangerfile
Open

build(ci): Remove unused dangerfile.js#1280
runningcode wants to merge 1 commit into
mainfrom
no/remove-dead-dangerfile

Conversation

@runningcode

Copy link
Copy Markdown
Contributor

The repo-local dangerfile.js has not been executed since #457 (March 2023), which switched CI to the shared getsentry/github-workflows Danger workflow. That workflow runs its own bundled dangerfile:

docker exec danger danger ci --dangerfile <action>/danger/dangerfile.js

The only way to also run a repo-local dangerfile under v3 is the extra-dangerfile: input, which danger.yml doesn't set — so this file was dead code that misleadingly looked like the source of truth for changelog enforcement.

Changelog enforcement is already covered by:

  • the shared dangerfile, which requires an entry for feat/fix/perf/security-flavored PRs (and exempts build/ci/chore/docs/deps/etc. by design), and
  • craft's changelogPolicy: auto in .craft.yml plus the changelog-preview workflow.

This brings the repo in line with sibling Sentry repos (e.g. sentry-java), which have no repo-local dangerfile.

🤖 Generated with Claude Code

This dangerfile has not run since #457 (March 2023) switched CI to the
shared getsentry/github-workflows Danger workflow. That workflow executes
its own bundled dangerfile, so the repo-local one was silently ignored.

Changelog enforcement is already handled by the shared workflow (which
requires an entry for feat/fix/perf/security PRs) together with craft's
changelogPolicy: auto. Keeping a dead dangerfile that looks authoritative
was misleading, so remove it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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