Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.
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
4 changes: 3 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
* @primetheus @zkoppert @admiralawkbar @migarjo @steffen
# Users that can approve pull requests
# @dependabot-bot needed for .github/workflows/auto-merge-depedabot.yml
* @primetheus @zkoppert @admiralawkbar @migarjo @steffen @dependabot-bot
Comment thread
zkoppert marked this conversation as resolved.
25 changes: 25 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#################################
# GitHub Dependabot Config info #
#################################
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10

# Maintain dependencies for js with npm
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
open-pull-requests-limit: 10


# Maintain dependencies for docker
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "daily"
open-pull-requests-limit: 10
63 changes: 63 additions & 0 deletions .github/workflows/auto-merge-depedabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
#######################################
#######################################
## Dependabot automerge dependencies ##
#######################################
#######################################

#
# Documentation:
# https://medium.com/@toufik.airane/automerge-github-dependabot-alerts-with-github-actions-7cd6f5763750
#

######################
# name of the action #
######################
name: automerge on pull request

###############
# When to run #
###############
on: [pull_request]

#################
# Start the job #
#################
jobs:
automerge:
name: automerge dependabot
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Wait for CI/CT/CD to succeed
uses: fountainhead/action-wait-for-check@v1.0.0
id: wait-for-build
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: Build Compile Test
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Wait for CI/CT/CD to succeed pt2
uses: fountainhead/action-wait-for-check@v1.0.0
id: wait-for-ci
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: Preflight linter
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: merge
if: steps.wait-for-build.outputs.conclusion == 'success' && steps.wait-for-ci.outputs.conclusion == 'success'
uses: actions/github-script@v2
with:
script: |
github.pulls.createReview({
owner: context.payload.repository.owner.login,
repo: context.payload.repository.name,
pull_number: context.payload.pull_request.number,
event: 'APPROVE'
})
github.pulls.merge({
owner: context.payload.repository.owner.login,
repo: context.payload.repository.name,
pull_number: context.payload.pull_request.number
})