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

Workflow failed #21

Open
maxbaluev opened this issue Aug 10, 2023 · 14 comments
Open

Workflow failed #21

maxbaluev opened this issue Aug 10, 2023 · 14 comments

Comments

@maxbaluev
Copy link

maxbaluev commented Aug 10, 2023

Codereviewer workflow failed with obscure error. I have the same problem with public and private forks.

My config:

name: AI Code Reviewer

on:
  pull_request:
    types:
      - opened
      - synchronize
permissions: write-all
jobs:
  review:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Repo
        uses: actions/checkout@v3

      - name: AI Code Reviewer
        uses: freeedcom/ai-codereviewer@main
        with:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
          OPENAI_API_MODEL: "gpt-4" # Optional: defaults to "gpt-4"
          exclude: "**/*.json, **/*.md" # Optional: exclude patterns separated by commas

Full log

image

@noahxp
Copy link

noahxp commented Aug 22, 2023

I am also experiencing the same error.

@MhouneyLH
Copy link

me too

@maxbaluev
Copy link
Author

@villesau Can you help us?

@BenK93
Copy link

BenK93 commented Sep 2, 2023

Getting the same error but I'm using API key for chatGPT 3.5 not sure if it is related (will it even work with 3.5?)

@villesau
Copy link
Contributor

villesau commented Sep 2, 2023

Does it fail already on pull request open or with subsequent commits?

@MhouneyLH
Copy link

Does it fail already on pull request open or with subsequent commits?

In both cases it crashes.

@SamiHK
Copy link

SamiHK commented Sep 20, 2023

Same Error

@villesau
Copy link
Contributor

Unfortunately I'm not able to reproduce this so I would really need help to understand this better.

@secrethash
Copy link

I am facing the same issue. It looks like it fails on private repos which should not be the case since it uses GITHUB_TOKEN for auth.

@villesau
Copy link
Contributor

Could it be some sort of permission issue? I'm successfully using this on private repos my self.

@secrethash
Copy link

secrethash commented Sep 23, 2023

I'm successfully using this on private repos my self.

@villesau Are you using GITHUB_TOKEN that is automatically generated by GitHub during every action or a manually generated access token?

It seems like it fails at the diff. The diff url gives a 404 page not found error.

Could it be some sort of permission issue?

I am not sure, even on one of my repos that I have full access to, I can't run it. It uses other actions like Coverage Monitor that also writes to the PR and it runs without any issues.

@secrethash
Copy link

I seem to get it to work using @octokit/action instead of @octokit/rest and also have to switch to node20.

Should I submit a PR?

@atinder
Copy link

atinder commented Oct 19, 2023

I am also facing the same issue on my private repo.

I am using GITHUB_TOKEN generated by Git Hub. And it is failing while fetching the diff.

image

@geryit
Copy link

geryit commented Oct 24, 2023

I see Page not found error as above

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

9 participants