diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index b9ba004..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,16 +0,0 @@ -version: 2 -updates: - - package-ecosystem: gomod - directory: "/" - schedule: - interval: weekly - time: "10:00" - timezone: PST8PDT - pull-request-branch-name: - separator: "-" - open-pull-requests-limit: 10 - reviewers: - - trussworks/waddlers - labels: - - "dependencies" - - "automerge" diff --git a/.github/workflows/tidy.yml b/.github/workflows/tidy.yml deleted file mode 100644 index 5d201a1..0000000 --- a/.github/workflows/tidy.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: tidy -on: - pull_request: - paths: - - ".github/workflows/gosum.yml" - - "go.mod" - - "go.sum" -jobs: - tidy: - name: run go mod tidy and updated - runs-on: ubuntu-latest - if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' - steps: - - name: checkout - uses: actions/checkout@v1 - - name: reattach HEAD to Head Ref - # b/c checkout action leaves in detached head state https://github.com/actions/checkout/issues/6 - run: git checkout "$(echo ${{ github.head_ref }})" - if: github.head_ref != '' - - name: setup go - uses: actions/setup-go@v1 - with: - go-version: "1.15" - - name: Tidy - run: | - go version - go mod tidy - - name: set up Git - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - git config user.name "${GITHUB_ACTOR}" - git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" - git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git - - name: commit and push changes - run: | - git add . - if output=$(git status --porcelain) && [ ! -z "$output" ]; then - git commit -m 'Fix go modules' - git push - fi diff --git a/.kodiak.toml b/.kodiak.toml deleted file mode 100644 index 18d7e57..0000000 --- a/.kodiak.toml +++ /dev/null @@ -1,8 +0,0 @@ -version = 1 - -[merge] -require_automerge_label = true -delete_branch_on_merge = true - -[approve] -auto_approve_usernames = ["dependabot"] \ No newline at end of file diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..ba4e59b --- /dev/null +++ b/renovate.json @@ -0,0 +1,50 @@ +{ + "extends": [ + "config:base" + ], + "labels": [ + "dependencies" + ], + "packageRules": [ + { + "automerge": true, + "matchUpdateTypes": [ + "patch", + "pin", + "digest", + "minor" + ] + }, + { + "matchUpdateTypes": [ + "major" + ], + "reviewers": [ + "team:waddlers" + ] + }, + { + "automerge": true, + "groupName": "dependencies", + "managers": [ + "terraform", + "gomod", + "pre-commit" + ], + "matchUpdateTypes": [ + "minor", + "patch" + ] + } + ], + "postUpdateOptions": [ + "gomodTidy" + ], + "prConcurrentLimit": 2, + "schedule": [ + "every weekday", + "after 9am and before 5pm" + ], + "separateMinorPatch": true, + "timezone": "America/Los_Angeles" +}