action-automerge icon indicating copy to clipboard operation
action-automerge copied to clipboard

How do I save the commit message to the target branch?

Open RyanBreathings opened this issue 2 years ago • 2 comments

I want to use a commit message for the source branch. Can you tell me how to do it?

RyanBreathings avatar May 28 '22 14:05 RyanBreathings

Looks like you can't until this bit changes.

richard-scott avatar Apr 03 '23 20:04 richard-scott

For now, I've forked this repo and updated it so you can set a custom commit message:

      - name: merge
        uses: richard-scott/[email protected]
        with:
          github_token: ${{ github.token }}
          source: 'master'
          target: 'release'
          message: "${{ github.event.commits[0].message }}"

https://github.com/marketplace/actions/automerger-action

richard-scott avatar Apr 03 '23 21:04 richard-scott