Skip to content

Migrating a GitHub repository that has dependabot pull requests fails #18275

Open
@rudism

Description

@rudism

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 version 5dba8012c96f 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:

[E] Run task failed: issue does not exist [id: 0, repo_id: 11, index: 12]

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/repo-migrationMigrate repos from other platforms to Gitea, or from Gitea to themtype/enhancementAn improvement of existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions