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

Failed to create or merge pull request: HttpError: Validation Failed: {"resource":"PullRequest","field":"head","code":"invalid"} #100

Open
tairosonloa opened this issue Jul 10, 2022 · 4 comments

Comments

@tairosonloa
Copy link

Since a few days ago, I'm getting this error message. Here is the debug trace:

Captura de pantalla 2022-07-11 011831

name: "Sync with original repo - action"
#https://github.com/marketplace/actions/fork-sync

on:
  schedule:
    - cron: '0 16 * * 1,4'
  workflow_dispatch: # on button click

jobs:
  sync:
    runs-on: ubuntu-latest

    steps:
      - uses: tgymnich/fork-sync@v1.3
        with:
          owner: mikecao
          github_token: ${{ secrets.GITHUB_TOKEN }}
          personal_token: ${{ secrets.GH_PERSONAL_TOKEN }}
          head: master
          base: production
          merge_method: merge
          pr_title: Fork Sync
          auto_approve: true

Link to repo

@SwannedLakee
Copy link

SwannedLakee commented Jul 28, 2022

Getting same error

Edit --
This is might be related to the problem #38

Edit 2 --
fixed it on my side

Edit 3 --

didnt see the replies below ... but i had the wrong base and head name

@tairosonloa
Copy link
Author

Getting same error

Edit -- This is might be related to the problem #38

Edit 2 -- fixed it on my side

How did you fix it? May have changed something in GitHub and I need to update my (until then) working configuration.

@gigich
Copy link

gigich commented Mar 8, 2023

Getting same error

Edit -- This is might be related to the problem #38

Edit 2 -- fixed it on my side

How did you fix it, I have the same problem

@PikuZheng
Copy link

PikuZheng commented Mar 22, 2023

I have the same problem...
wrong base name and head name in my case

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

4 participants