[PR #1834] [MERGED] Fix PR template error #16074

Closed
opened 2025-11-02 12:01:42 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/1834
Author: @ethantkoenig
Created: 5/29/2017
Status: Merged
Merged: 5/30/2017
Merged by: @appleboy

Base: masterHead: fix_pull_template


📝 Commits (1)

📊 Changes

1 file changed (+5 additions, -7 deletions)

View changed files

📝 modules/context/repo.go (+5 -7)

📄 Description

Fixes #1542. Ensures that PullRequestCtx.BaseRepo is populated when a fork's parent does not accept pull requests (since the fork should support intra-repo pull requests).

To reproduce the bug that this fixes, do the following:

  1. Create a mirror repo (call it repo1)
  2. Create a fork of repo1 (call it repo2)
  3. Create a fork of repo2 (call it repo3)
  4. Visit /:username/repo2/pulls, and you should get the error described in #1542.

If you follow the above steps with my changes, you should get no such error.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/1834 **Author:** [@ethantkoenig](https://github.com/ethantkoenig) **Created:** 5/29/2017 **Status:** ✅ Merged **Merged:** 5/30/2017 **Merged by:** [@appleboy](https://github.com/appleboy) **Base:** `master` ← **Head:** `fix_pull_template` --- ### 📝 Commits (1) - [`81addfb`](https://github.com/go-gitea/gitea/commit/81addfb23387dfe466169f3a222a83341ccfc63c) Fix PR template error ### 📊 Changes **1 file changed** (+5 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `modules/context/repo.go` (+5 -7) </details> ### 📄 Description Fixes #1542. Ensures that `PullRequestCtx.BaseRepo` is populated when a fork's parent does not accept pull requests (since the fork should support intra-repo pull requests). To reproduce the bug that this fixes, do the following: 1. Create a mirror repo (call it `repo1`) 2. Create a fork of `repo1` (call it `repo2`) 3. Create a fork of `repo2` (call it `repo3`) 4. Visit `/:username/repo2/pulls`, and you should get the error described in #1542. If you follow the above steps with my changes, you should get no such error. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:01:43 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#16074