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
Migrating a GitHub repository that has dependabot pull requests fails #18275
Comments
It seems there is different information for a user type bot. |
But I get these errors in the log:
|
@KN4CK3R to replicate you need a GitHub private token with repo API access--the failure only happens if you tick the box to import issues. Without issues it still succeeds (with those errors in the log about missing branches). I don't think there's a safe way for me to generate and share a token on my repo that could be used for testing, so might be a difficult one to replicate generally. My suspicion is that since the issues don't link to actual issues (instead they redirect to the PR directly) there's something special about the dependabot issues/PRs that the Gitea migration doesn't know how to handle. |
@rudism Could you please read https://docs.gitea.io/en-us/logging-configuration/#debugging-problems And send us the logs from when you try to migrate? |
@zeripath I've added the debug logs to the same gist https://gist.github.com/rudism/862eb9b4653658720f8b7782cac90303#file-docker-debug-log-txt |
As you can see the screenshot shows the migrated PR on Gitea. |
I see--I was trying to migrate just the issues and had left pull requests unchecked. However I just tried migrating again with both issues and pull requests and then it worked for me as well. |
Which appears to relate to:
|
Gitea Version
1.15.9
Git Version
2.30.2
Operating System
Arch Linux 5.15.13-arch1-1
How are you running Gitea?
Official docker image
gitea/gitea:1
with image version5dba8012c96f
currently active.Database
PostgreSQL
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
https://gist.github.com/rudism/862eb9b4653658720f8b7782cac90303
Description
When attempting to migrate a repository from GitHub with issues included, I believe that pull requests created by GitHub's dependabot cause the migration to fail.
This happens on my self-hosted gitea instance with the attached logs, and trying to import the repo on the demo site also fails (I assume for the same reason).
The repo I'm trying to import is https://github.com/rudism/ficdown.js
The logs show this failure:
Going to the url for that issue number (12) redirects to one of the dependabot pull requests: rudism/ficdown.js#12
This was happening while the PRs were open, so I tried closing them, but the problem persists. GitHub does not provide a way to delete pull requests, so I can't test that. When I try to migrate the repository without issues it works fine.
Screenshots
No response
The text was updated successfully, but these errors were encountered: