Giter VIP home page Giter VIP logo

auto-create-pr-action's Introduction

Automated Branch Pull Requests

This action will open a pull request to the repository default branch (or otherwise specified) whenever a branch with some prefix (can be empty, will lead to executuon for all branches) is pushed to. The idea is that you can set up some workflow that pushes content to branches of the repostory, and you would then want this push reviewed for merged.

Here is an example of what to put in your .github/main.workflow file to trigger the action.

# workflow auto-pr
workflow "auto-pr" {
  resolves = ["create-pr"]
  on = "push"
}

action "create-pr" {
  uses = "smartinspereira/auto-create-pr-action@master"
  secrets = ["GITHUB_TOKEN"]
  env = {
    BRANCH_PREFIX = ""
    # BASE_BRANCH = ""
    # PULL_REQUEST_TITLE = ""
    # PULL_REQUEST_BODY = ""
    PULL_REQUEST_DRAFT = "true"
  }
}

Environment variables include:

  • BRANCH_PREFIX: the prefix to filter to. If the branch doesn't start with the prefix, it will be ignored
  • BASE_BRANCH: the branch to issue the pull request to. Defaults to the repositores default branch (optional)
  • PULL_REQUEST_BODY: the body for the pull request (optional)
  • PULL_REQUEST_TITLE: the title for the pull request (optional)
  • PULL_REQUEST_DRAFT: should the pull request be a draft PR? (optional; unset defaults to false)

auto-create-pr-action's People

Contributors

vsoch avatar propeller-system avatar keattang avatar bencooper222 avatar rbehle avatar

Watchers

James Cloos 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.