Skip to content
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

Customize Mergify config #1238

Merged
merged 1 commit into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
112 changes: 14 additions & 98 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,108 +6,24 @@
# to meet your needs, then regenerate this file.

pull_request_rules:
- name: merge scala-steward's PRs
conditions:
- author=scala-steward
- body~=labels:.*early-semver-patch
- status-success=Build and Test (ubuntu-latest, 2.12, temurin@8)
- status-success=Build and Test (ubuntu-latest, 2.13, temurin@8)
- status-success=Build and Test (ubuntu-latest, 3, temurin@8)
actions:
merge: {}
- name: Label benchmark PRs
conditions:
- files~=^modules/benchmark/
actions:
label:
add:
- benchmark
remove: []
- name: Label cats PRs
conditions:
- files~=^modules/cats/
actions:
label:
add:
- cats
remove: []
- name: Label core PRs
- name: label scala-steward's PRs
conditions:
- files~=^modules/core/
- or:
- author=scala-steward
- author=scala-steward[bot]
actions:
label:
add:
- core
- dependency-update
remove: []
- name: Label docs PRs
conditions:
- files~=^modules/docs/
actions:
label:
add:
- docs
remove: []
- name: Label eval PRs
conditions:
- files~=^modules/eval/
actions:
label:
add:
- eval
remove: []
- name: Label jsonpath PRs
conditions:
- files~=^modules/jsonpath/
actions:
label:
add:
- jsonpath
remove: []
- name: Label pureconfig PRs
conditions:
- files~=^modules/pureconfig/
actions:
label:
add:
- pureconfig
remove: []
- name: Label scalacheck PRs
conditions:
- files~=^modules/scalacheck/
actions:
label:
add:
- scalacheck
remove: []
- name: Label scalaz PRs
conditions:
- files~=^modules/scalaz/
actions:
label:
add:
- scalaz
remove: []
- name: Label scodec PRs
conditions:
- files~=^modules/scodec/
actions:
label:
add:
- scodec
remove: []
- name: Label scopt PRs
conditions:
- files~=^modules/scopt/
actions:
label:
add:
- scopt
remove: []
- name: Label shapeless PRs
- name: merge scala-steward's PRs
conditions:
- files~=^modules/shapeless/
- or:
- author=scala-steward
- author=scala-steward[bot]
- status-success=Build and Test (ubuntu-latest, 2.12, temurin@8)
- status-success=Build and Test (ubuntu-latest, 2.13, temurin@8)
- status-success=Build and Test (ubuntu-latest, 3, temurin@8)
actions:
label:
add:
- shapeless
remove: []
merge:
method: merge
20 changes: 20 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,26 @@ ThisBuild / githubWorkflowBuild :=
),
WorkflowStep.Use(UseRef.Public("codecov", "codecov-action", "v1"), name = Some("Codecov"))
)
ThisBuild / mergifyPrRules := {
val authorCondition = MergifyCondition.Or(
List(
MergifyCondition.Custom("author=scala-steward"),
MergifyCondition.Custom("author=scala-steward[bot]")
)
)
Seq(
MergifyPrRule(
"label scala-steward's PRs",
List(authorCondition),
List(MergifyAction.Label(List("dependency-update")))
),
MergifyPrRule(
"merge scala-steward's PRs",
List(authorCondition) ++ mergifySuccessConditions.value,
List(MergifyAction.Merge(Some("merge")))
)
)
}

/// projects

Expand Down
Loading