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

Cannot set commit message as the title of the PR #249

Open
thered0ne opened this issue Sep 15, 2022 · 2 comments
Open

Cannot set commit message as the title of the PR #249

thered0ne opened this issue Sep 15, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@thered0ne
Copy link

thered0ne commented Sep 15, 2022

🐞 Describe the bug

I am triggering the action by pushing only 1 commit to test branch. But the PR title remains the default one:
Synced file(s) with user/repo name.

My workflow file:

    on:
      push:
        branches:
          - test
      workflow_dispatch:
    jobs:
      sync:
        runs-on: ubuntu-latest
        steps:
          - name: Checkout Repository
            uses: actions/checkout@v2
    
          - name: Generate token
            id: generate_token
            uses: tibdex/github-app-token@v1
            with:
              app_id: xxxxxx
              private_key: ${{ secrets.PRIVATE_KEY }}
    
          - name: Run GitHub File Sync
            uses: BetaHuhn/repo-file-sync-action@v1.17.21
            with:
              GH_INSTALLATION_TOKEN: ${{ steps.generate_token.outputs.token }}
              ORIGINAL_MESSAGE: true
              COMMIT_AS_PR_TITLE: true
              GIT_EMAIL: test@test.com
              GIT_USERNAME: test

📚 To reproduce

Create a test repo source and dest, use the action and above configuration.

💡 Expected behavior

Created PR having my commit message as its title.

🖼️ Screenshots

No response

⚙️ Environment

v1.21.17
tested also in previous versions

📋 Additional context

No response

@thered0ne thered0ne added the bug Something isn't working label Sep 15, 2022
@thered0ne thered0ne changed the title Cannot set PR title to commit message Cannot set commit message as the title of the PR Sep 15, 2022
@mijdavis2
Copy link

Same here

1 similar comment
@tbutler-qontigo
Copy link

Same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants