Coder Social home page Coder Social logo

dailydevops / dependamerge-action Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 2.32 MB

GitHub action that automatically validates, approves and merges pull requests for branches created by dependabot[bot].

Home Page: https://dailydevops.net

License: MIT License

JavaScript 100.00%
actions dependabot dependabot-auto-merge

dependamerge-action's Introduction

DependaMerge - GitHub Action

GitHub action that processes pull requests created and processed by dependabot[bot]. Depending on the settings, the pull request is approved and/or merged. The action is triggered by the pull_request event and only processes pull requests created by dependabot[bot].

Usage

The simplest variant of the pipeline configuration could look like this. However, it is recommended to link this job with a build and test process. This ensures that the code is tested before it is merged.

name: DependaMerge

on:
  pull_request:

jobs:
  dependabot:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: DependaMerge
        uses: dailydevops/dependamerge-action@v1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          command: squash

Inputs

Name Description Required Default Available Values
token GitHub token ${{ secrets.GITHUB_TOKEN }} ---
command Merge Method with which the pull request is to be merged. squash squash, merge
approve-only If true, then the pull request is only approved, but not merged. false true, false
handle-submodule If true, Git submodules are also merged. false true, false
handle-dependency-group If true, all pull requests of a dependency group are merged. true true, false
target The maximum target of the version comparison to be merged. patch major, minor, patch, any
skip-commit-verification If true, then the action will not expect the commits to have a verification signature. It is required to set this to true in GitHub Enterprise Server. false true, false
skip-verification If true, the action will not validate the user or the commit verification status. false true, false

Outputs

Output state

Value Description
approved The pull request has been approved.
merged The pull request has been merged.
skipped The pull request is skipped and all processing steps are stopped.
failed The pull request could not be processed.
rebased The pull request was automatically rebased.

Output message

The message contains further information about the processing state of the pull request. In some cases it contains error/debug information.

dependamerge-action's People

Contributors

dependabot[bot] avatar samtrion avatar

Stargazers

 avatar

Watchers

 avatar Kristian Schlikow avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.