Git Product home page Git Product logo

dependabot-automerge-action's Introduction

๐Ÿ“ฆ Dependabot Pull Request Action

This action is based on koj-co/dependabot-pr-action

A GitHub Action to automatically label, approve, and merge pull requests made by Dependabot. This was built because the auto-merge feature was removed when Dependabot became a native-GitHub feature.

Build CI

โญ Get started

You can run this workflow, for example, two times a day:

name: Automerge dependabot pr

on:
  schedule:
    - cron: '0 7,12 * * *'

jobs:
  automerge:
    name: Auto-merge patch updates
    runs-on: ubuntu-latest
    steps:
      - uses: mitto98/dependabot-automerge-action@master
        with:
          token: ${{ github.token }}
          merge-patch: true

Inputs

token (required)

Your GitHub token, usually {{ github.token }} or a personal access token if you have a bot account.

Optional inputs

To add labels to the Dependabot pull request, you can specify a comma-separated string of labels:

Input Description
labels-major Labels for major releases
labels-minor Labels for minor releases
labels-patch Labels for patch releases
labels-premajor Labels for premajor releases
labels-preminor Labels for preminor releases
labels-prepatch Labels for prepatch releases
labels-prerelease Labels for prerelease releases

To configure the workflow, you can set any of these inputs to true:

Input Description
approve Approve all releases
approve-major Approve major releases
approve-minor Approve minor releases
approve-patch Approve patch releases
approve-premajor Approve premajor releases
approve-preminor Approve preminor releases
approve-prepatch Approve prepatch releases
approve-prerelease Approve prerelease releases
auto-label Auto label all releases
auto-label-major Auto label major releases
auto-label-minor Auto label minor releases
auto-label-patch Auto label patch releases
auto-label-premajor Auto label premajor releases
auto-label-preminor Auto label preminor releases
auto-label-prepatch Auto label prepatch releases
auto-label-prerelease Auto label prerelease releases
merge Merge all releases
merge-major Merge major releases
merge-minor Merge minor releases
merge-patch Merge patch releases
merge-premajor Merge premajor releases
merge-preminor Merge preminor releases
merge-prepatch Merge prepatch releases
merge-prerelease Merge prerelease releases
  • If you set any auto-label parameter to true, the release type (major, minor, etc.) label will be added to the pull request automatically, if all checks have passed
  • If you set any merge parameter to true, the resulting pull request will be auto-merged, if all checks have passed
  • If you set any approve parameter to true, the pull request will be automatically approved (with a pull request review), if all checks have passed

If you don't want to check for status checks, you can set the input ignore-status-checks to true. You can also set the merge-commit input if you want a custom merge commit message.

dependabot-automerge-action's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar sparrowbrain avatar

Watchers

 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.