Skip to content

Commit

Permalink
add configurable dependabot rebase strategy (#21)
Browse files Browse the repository at this point in the history
* add configurable dependabot rebase strategy

* Update template.go
  • Loading branch information
altendky authored Jul 15, 2024
1 parent caf4e2d commit d5d82ab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/repo/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,24 @@ func ProcessTemplate(templateContent []byte, overrides map[string]string) ([]byt
"COMPANY_NAME": "Chia Network Inc.",
"CGO_ENABLED": "0",
"DEPENDABOT_GOMOD_PULL_REQUEST_LIMIT": defaultPullRequestLimit,
"DEPENDABOT_GOMOD_REBASE_STRATEGY": "auto",
"DEPENDABOT_GOMOD_DIRECTORY": "/",
"DEPENDABOT_GOMOD_REVIEWERS": "[\"cmmarslender\", \"starttoaster\"]",
"DEPENDABOT_PIP_PULL_REQUEST_LIMIT": defaultPullRequestLimit,
"DEPENDABOT_PIP_REBASE_STRATEGY": "auto",
"DEPENDABOT_PIP_DIRECTORY": "/",
"DEPENDABOT_PIP_REVIEWERS": "[\"emlowe\", \"altendky\"]",
"DEPENDABOT_ACTIONS_PULL_REQUEST_LIMIT": defaultPullRequestLimit,
"DEPENDABOT_ACTIONS_REBASE_STRATEGY": "auto",
"DEPENDABOT_ACTIONS_DIRECTORY": "/",
"DEPENDABOT_ACTIONS_REVIEWERS": "[\"cmmarslender\", \"Starttoaster\", \"pmaslana\"]",
"DEPENDABOT_NPM_PULL_REQUEST_LIMIT": defaultPullRequestLimit,
"DEPENDABOT_NPM_REBASE_STRATEGY": "auto",
"DEPENDABOT_NPM_DIRECTORY": "/",
"DEPENDABOT_NPM_REVIEWERS": "[\"cmmarslender\", \"ChiaMineJP\"]",
"DEPENDABOT_CARGO_DIRECTORY": "/",
"DEPENDABOT_CARGO_PULL_REQUEST_LIMIT": defaultPullRequestLimit,
"DEPENDABOT_CARGO_REBASE_STRATEGY": "auto",
}

// Merge `overrides` into `data`, with `overrides` taking precedence
Expand Down
5 changes: 5 additions & 0 deletions templates/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ updates:
interval: "weekly"
day: "tuesday"
open-pull-requests-limit: {{ .DEPENDABOT_GOMOD_PULL_REQUEST_LIMIT }}
rebase-strategy: {{ .DEPENDABOT_GOMOD_REBASE_STRATEGY }}
labels:
- dependencies
- go
Expand All @@ -25,6 +26,7 @@ updates:
interval: "weekly"
day: "tuesday"
open-pull-requests-limit: {{ .DEPENDABOT_PIP_PULL_REQUEST_LIMIT }}
rebase-strategy: {{ .DEPENDABOT_PIP_REBASE_STRATEGY }}
labels:
- dependencies
- python
Expand All @@ -37,6 +39,7 @@ updates:
interval: "weekly"
day: "tuesday"
open-pull-requests-limit: {{ .DEPENDABOT_ACTIONS_PULL_REQUEST_LIMIT }}
rebase-strategy: {{ .DEPENDABOT_ACTIONS_REBASE_STRATEGY }}
labels:
- dependencies
- github_actions
Expand All @@ -49,6 +52,7 @@ updates:
interval: "weekly"
day: "tuesday"
open-pull-requests-limit: {{ .DEPENDABOT_NPM_PULL_REQUEST_LIMIT }}
rebase-strategy: {{ .DEPENDABOT_NPM_REBASE_STRATEGY }}
labels:
- dependencies
- javascript
Expand All @@ -61,6 +65,7 @@ updates:
interval: "weekly"
day: "tuesday"
open-pull-requests-limit: {{ .DEPENDABOT_CARGO_PULL_REQUEST_LIMIT }}
rebase-strategy: {{ .DEPENDABOT_CARGO_REBASE_STRATEGY }}
labels:
- dependencies
- rust
Expand Down

0 comments on commit d5d82ab

Please sign in to comment.