Skip to content

sanjeev-labs/manage-merge

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

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

manage-merge Action

Merge pull request on given date and target branch

How to Use

  • Add any future date in pull request body in yyy-mm-dd format
/mergeon 2021-01-01

  • Add yaml file in your .github/workflows like .github/workflows/manage-merge.yaml
- name: Manage Merge
on:
  pull_request:
    types:
      - opened
      - edited
  schedule:
    # https://crontab.guru/every-hour
    - cron: 0 * * * *

jobs:
  merge_schedule:
    runs-on: ubuntu-latest
    steps:
      - uses: sanjeev-labs/manage-merge@v1.0
        with:
          # Merge method, use one of possible values merge, squash or
          # rebase. Default is merge.
          merge_method: "merge"
          # Name here target branch. Default is main
          target_branch: "main"
          #  Time zone to use. Default is UTC.
          time_zone: "America/New_York"
          #  Branch label
          label_name: "merge-ready"
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published