only-merge-from-action

1.0.1 • Public • Published

template-action-nodejs-ts

Github action to close a PR if the base branch is not from expected

message


Table of Contents

Inputs

github-token

Required The github token to comment in the PR.

protected-branch

The name of the protected branch

allowed-branch

The name of the branch allowed to merge over the protected branch

Example of usage

uses: raulanatol/only-merge-from-action@v1.0.0
with:
  github-token: ${{ secrets.GITHUB_TOKEN }}

Example using a custom branches

.github/workflows/main.yml

on: pull_request

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: raulanatol/only-merge-from-action@v1.0.0
      with:
        github-token: ${{ secrets.GITHUB_TOKEN }}
        protected-branch: production
        allowed-branch: stage

Development

Close release

To close a release you only need to execute the makefile with release_{major|minor|patch}

Example:

make release_minor

Documentation

To generate the documentation you only need to execute the makefile with docs.

Using doctoc

make docs

Readme

Keywords

none

Package Sidebar

Install

npm i only-merge-from-action

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

629 kB

Total Files

34

Last publish

Collaborators

  • raulanatol