Skip to content

theoremlp/autosquash

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

17 Commits
 
 
 
 

Repository files navigation

autosquash@v1

This action enables automatic squash commits on pull requests when the repository has 'automatic merging' enabled.

To add this action use the following workflow:

name: autosquash
on:
  pull_request:
    types:
      - opened
      - synchronized
      - reopened
      - edited
      - labeled
      - unlabeled
      - ready_for_review
jobs:
  autosquash:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: theoremlp/autosquash@v1
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          pull-request-number: ${{ github.event.pull_request.number }}
          squash-commit-title: "${{ github.event.pull_request.title }} (#${{ github.event.pull_request.number }})"
          squash-commit-message: "${{ github.event.pull_request.body }}"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published