Giter VIP home page Giter VIP logo

oction-merge-pull-request's Introduction

Merge a pull request (Merge Button)

"Oction" is a GitHub Action that implements a single call with @octokit/request allowing easy interaction with GitHub REST APIs from your workflow.

Original documentation: https://developer.github.com/v3/pulls/#merge-a-pull-request-merge-button

This action implements PUT request to /repos/{owner}/{repo}/pulls/{pull_number}/merge

Quick start

- uses: maxkomarychev/[email protected]
  id: my_step_id
  with:
    token: <token value>
    pull_number: <pull_number value>
- name: Print outputs
  run: |
    echo ${{ steps.my_step_id.outputs.id }}
    echo ${{ steps.my_step_id.outputs.number }}

Inputs

Name Is required Description
token true Token to authenticate the request
owner false owner parameter
repo false repo parameter
pull_number true pull_number parameter
commit_title Title for the automatic commit message.
commit_message Extra detail to append to automatic commit message.
sha SHA that pull request head must match to allow merge.
merge_method Merge method to use. Possible values are merge, squash or rebase. Default is merge.

Outputs

Name Description
id id field of the response (if exists)
number number field of the response (if exists)

Friendly octions

oction-merge-pull-request's People

Contributors

maxkomarychev avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

arcarc569

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.