Git Product home page Git Product logo

create-merge-pr's Introduction

create-merge-pr

This action downloads creates a pull request and automatically merges it.

It will create a pull request for a branch based on a github token provided. Every 30 seconds it will attempt to get the PR state. Onces the state is clean it will auto merge into the repo specified

Parameters

Parameter Description
github-token Personal access token used to approve and merge the pull request (github action bot can be used for this using ${{ secrets.GITHUB_TOKEN }})
artifact-github-token Personal access token used to create the pull request
github-owner The owner of the repo being used
github-repo The repo you want to create and merge the PR
branch-ref The branch to base the pull request from
title Name of the pull request

Usage

To use the action you will need to add in several parameters

name: Build and Release
on:
  pull_request:
jobs:
  create-and-merge-pr:
    name: Create Kubernetes Manifest PR And Merge
    runs-on: zendesk-stable
    # we only run jobs after a merge to master and if a pull_request doesn't have the `skip_manifest_generation` label
    if: github.event.pull_request.merged == true && !contains(github.event.pull_request.labels.*.name, 'skip_manifest_generation')
    needs:
      - generate_kubernetes_manifests
    steps:
      - uses: zendesk/talk-create-merge-pr@v12
        with:
           github-token: ${{ secrets.GITHUB_TOKEN }}
           artifact-github-token: ${{ secrets.ZD_SVC_TALK }}
           github-owner: "zendesk"
           github-repo: "voice"
           branch-ref: ${{ needs.generate_kubernetes_manifests.outputs.deploy_branch }}
           title: "Automatic Merge of Re-generated Kubernetes Manifests"

create-merge-pr's People

Contributors

conorsargent 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.