fork-sync icon indicating copy to clipboard operation
fork-sync copied to clipboard

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

Open tairosonloa opened this issue 2 years ago • 4 comments

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/[email protected]
        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

tairosonloa avatar Jul 10 '22 23:07 tairosonloa

~~Getting same error~~

~~Edit --~~ ~~This is might be related to the problem https://github.com/tgymnich/fork-sync/issues/38~~

Edit 2 -- fixed it on my side

Edit 3 --

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

SwannedLakee avatar Jul 28 '22 13:07 SwannedLakee

~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.

tairosonloa avatar Aug 13 '22 20:08 tairosonloa

~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

gigich avatar Mar 08 '23 14:03 gigich

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

PikuZheng avatar Mar 22 '23 13:03 PikuZheng