Skip to content

Before starting work on a reported issue, a pull-request can be created arbitrarily by using the --allow-empty option of the git commit command.

License

Notifications You must be signed in to change notification settings

chyccs/empty-pr-actions

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Empty Pull-Request Actions

Background

Before starting work on a reported issue, a pull-request can be created arbitrarily by using the --allow-empty option of the git commit command.

Usage

  • Use issue_comment event trigger
on:
  issue_comment:
    types: [created]
  
permissions:
  contents: write
  issues: write
  pull-requests: write

jobs:
  create-pr:
    runs-on: ubuntu-latest
    if: ${{ !github.event.issue.pull_request }}
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Create PR when issue_comment event occured
        if: ${{ startsWith(github.event.comment.body, '@pr ') }}
        uses: chyccs/empty-pr-actions@master
        with:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  • Use issues event trigger
on:
  issues:
    types: [opened, edited]
  
permissions:
  contents: write
  issues: write
  pull-requests: write

jobs:
  create-pr:
    runs-on: ubuntu-latest
    if: ${{ !github.event.issue.pull_request }}
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Create PR when issues was created
        uses: chyccs/empty-pr-actions@master
        with:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

About

Before starting work on a reported issue, a pull-request can be created arbitrarily by using the --allow-empty option of the git commit command.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages