Skip to content
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
11 changes: 6 additions & 5 deletions .ci/bump-golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,17 @@ scms:
branch: '{{ requiredEnv "BRANCH" }}'

actions:
golang-crossbuild:
default:
title: '[Automation] Bump Golang version to {{ source "latestGoVersion" }}'
kind: github/pullrequest
scmid: githubConfig
sourceid: latestGoVersion
spec:
automerge: false
automerge: true
labels:
- dependencies
- backport-skip
title: '[Automation] Bump Golang version to {{ source "latestGoVersion" }}'
description: |
See [changelog](https://github.com/golang/go/issues?q=milestone%3AGo{{ source "latestGoVersion" }}+label%3ACherryPickApproved) for {{ source "latestGoVersion" }}

sources:
minor:
Expand Down Expand Up @@ -72,7 +73,7 @@ conditions:

targets:
update-go-versions:
name: "Update go versions"
name: 'Update go version {{ source "latestGoVersion" }}'
kind: shell
sourceid: latestGoVersion
scmid: githubConfig
Expand Down
10 changes: 10 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ pull_request_rules:
- files~=^Jenkinsfile$
actions:
delete_head_branch:
- name: automatic approval for automated pull requests with golang bump updates
conditions:
- author=apmmachine
- check-success=beats-ci/pr-merge
- label=automation
- files~=^go/Makefile.common
actions:
review:
type: APPROVE
message: Automatically approving mergify
- name: ask to resolve conflict
conditions:
- -merged
Expand Down