joshcai / leetcode-sync

GitHub Action for syncing LeetCode submissions to GitHub
303 stars 61 forks source link

HttpError: At least 1 approving review is required by reviewers with write access. #19

Closed Ahmad-Abdalmageed closed 1 year ago

Ahmad-Abdalmageed commented 2 years ago

Need help with error

image

`

name: Sync Leetcode

on:
  workflow_dispatch:
  schedule:
    - cron:  '0 8 * * 6'

jobs:
  build:
    runs-on: ubuntu-latest

steps:
- name: Sync
  uses: joshcai/leetcode-sync@v1.4
  with:
    github-token: ${{ github.token }}
    leetcode-csrf-token: ${{ secrets.LEETCODE_CSRF_TOKEN }}
    leetcode-session: ${{ secrets.LEETCODE_SESSION }}
    destination-folder: LeetCodeSolutions`
joshcai commented 1 year ago

Hi @Ahmad-Abdalmageed, sorry for the delayed response. I'm assuming you have some kind of branch protection on your repo? https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/about-protected-branches

Is it possible to disable that for your repo? (if you're still having this issue)

Ahmad-Abdalmageed commented 1 year ago

I removed the Protection Yes, I don't have this problem anymore. Thank You