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

[API] Pull Request is null when branch was deleted #6613

Closed
2 of 7 tasks
ccaspers opened this issue Apr 14, 2019 · 1 comment · Fixed by #6705
Closed
2 of 7 tasks

[API] Pull Request is null when branch was deleted #6613

ccaspers opened this issue Apr 14, 2019 · 1 comment · Fixed by #6705
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented modifies/api This PR adds API routes or modifies them type/bug

Comments

@ccaspers
Copy link

  • Gitea version (or commit ref): 3b612ce
  • Git version: 2.20.1
  • Operating system: Linux
  • Database:
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant

When a Pull Request was merged, the API endpoint GET /api/v1/repo/<org>/<user>/pulls/<number> returns null as soon as the branch is deleted (see [1]), while the web interface still lists all information about the PR (see [2]). Recreating the branch fixes the issue. The list of all pull-requests shows the same error (see [3]).

This was already reported in #4595, but the issue was closed because there was no activity.

Examples on try.gitea.io:

@stale
Copy link

stale bot commented Jun 13, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale stale bot added the issue/stale label Jun 13, 2019
@lunny lunny added the issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented label Jun 14, 2019
@stale stale bot removed the issue/stale label Jun 14, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented modifies/api This PR adds API routes or modifies them type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants