Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Title and Body do not seem to be working #145

Open
Pexeed opened this issue Jul 13, 2023 · 2 comments
Open

Title and Body do not seem to be working #145

Pexeed opened this issue Jul 13, 2023 · 2 comments

Comments

@Pexeed
Copy link

Pexeed commented Jul 13, 2023

Hello! Thanks for the great action!

So I'm testing it before adding to my professional project and the PRs that are being created are not following the Title and Body that I set, here is the action implementation:

name: Auto Generate PRs marked as hotfix from Main to Version Branch
on:
  pull_request:
    branches: main

jobs:
  cherry_pick_to_version_branch:
    runs-on: ubuntu-latest
    name: Cherry pick into version branch
    if: ${{ contains(github.event.pull_request.labels.*.name, 'hotfix') }}
    steps:
      - name: Checkout
        uses: actions/checkout@v2
        with:
          fetch-depth: 0
      - name: Cherry pick into version branch
        uses: carloscastrojumo/[email protected]
        with:
          branch: v0.1
          title: "v0.1 - {old_title}"
          body: "Cherry picking #{old_pull_request_id} onto this branch"
          labels: |
            cherry-pick
          reviewers: |
            mobile

Another question I have, is there a way to put a regex instead of a fixed branch in the branch parameter?
Would be nice cause then we don't need to update the action for each new version with the hardcoded version name.

Another thing I was wondering is if there is a way to add a check for a previously created PR, so it overwrites or deletes it, and then create the new one, to avoid creating multiple PRs.

Again, thanks for this action, very useful!

@sohaibomr
Copy link

this was developed in this pr: #10

@skeck
Copy link

skeck commented Aug 29, 2024

bump the version to @v1.0.10 instead of @v1.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants