tgymnich / fork-sync

🔄 Github action to sync your forks
MIT License
382 stars 82 forks source link

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

Open tairosonloa opened 2 years ago

tairosonloa commented 2 years ago

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 commented 2 years ago

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

tairosonloa commented 2 years ago

~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 commented 1 year ago

~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 commented 1 year ago

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