From 04667c1ca3a04e1f33b0ffd0bdc7b45f497312c7 Mon Sep 17 00:00:00 2001 From: Grzegorz Godlewski Date: Fri, 18 Oct 2024 15:11:42 +0200 Subject: [PATCH] Add support for github actions --- .github/workflows/feat-deploy.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/feat-deploy.yml b/.github/workflows/feat-deploy.yml index 01b40107..a65622ac 100644 --- a/.github/workflows/feat-deploy.yml +++ b/.github/workflows/feat-deploy.yml @@ -36,11 +36,12 @@ jobs: env: BRANCH_NAME: ${{ github.head_ref || github.ref_name }} GH_TOKEN: ${{ github.token }} + BODY: ${{ github.event.head_commit.message }} steps: - uses: actions/checkout@v4 - name: Create pull request run: | gh_pr_up() { - gh pr create --draft $* || gh pr edit $* + gh pr create --draft $* --body "${BODY}" || gh pr edit $* --body "${BODY}" } - gh_pr_up --base master --title "${BRANCH_NAME}" --body "Description" + gh_pr_up --base master --title "${BRANCH_NAME}"