-
Notifications
You must be signed in to change notification settings - Fork 9
Update Danger setup to run via Buildkite + Add RuboCop linter #627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
c30db03
436f293
e9bd908
b349ad4
c570bde
fa5d404
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
name: ☢️ Danger | ||
name: ☢️ Trigger Danger On Buildkite | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened, ready_for_review, synchronize, edited, review_requested, review_request_removed, labeled, unlabeled, milestoned, demilestoned] | ||
types: [labeled, unlabeled, milestoned, demilestoned, review_requested, review_request_removed] | ||
mokagio marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
jobs: | ||
dangermattic: | ||
# runs on draft PRs only for opened / synchronize events | ||
if: ${{ (github.event.pull_request.draft == false) || (github.event.pull_request.draft == true && contains(fromJSON('["opened", "synchronize"]'), github.event.action)) }} | ||
uses: Automattic/dangermattic/.github/workflows/reusable-run-danger.yml@v1.0.0 | ||
if: ${{ (github.event.pull_request.draft == false) }} | ||
uses: Automattic/dangermattic/.github/workflows/reusable-retry-buildkite-step-on-events.yml@v1 | ||
with: | ||
org-slug: automattic | ||
pipeline-slug: release-toolkit | ||
retry-step-key: danger | ||
build-commit-sha: ${{ github.event.pull_request.head.sha }} | ||
cancel-running-github-jobs: false | ||
secrets: | ||
github-token: ${{ secrets.DANGERMATTIC_GITHUB_TOKEN }} | ||
buildkite-api-token: ${{ secrets.TRIGGER_BK_BUILD_TOKEN }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Notice that this workflow didn't kick in for this PR, as you can see by the fact that the Dangermattic comment still mentions the PR being a draft. But that's because for it to run it needs to land on There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎗️ To add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the branch requirements to use this name.
As a follow up, I shall open a new PR implementing the custom GitHub commit status names.