[PR #3648] [MERGED] Display PR commits and diffs using base repo rather than forked #17029

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/3648
Author: @krrutkow
Created: 3/8/2018
Status: Merged
Merged: 12/18/2019
Merged by: @techknowlogick

Base: masterHead: use-base-repo-not-fork


📝 Commits (3)

  • 508209d Change PR commits and diffs to use base repo rather than forked
  • 216aa1e Merge branch 'master' into use-base-repo-not-fork
  • cf63174 Merge branch 'master' into use-base-repo-not-fork

📊 Changes

1 file changed (+35 additions, -70 deletions)

View changed files

📝 routers/repo/pull.go (+35 -70)

📄 Description

Change the repository referenced when displaying commits or diffs in
pull request to the base repository. The forked repository may not be
readable by users who can read the base repository. See discussion for
(#3356).

@lafriks does this implement what you mentioned in https://github.com/go-gitea/gitea/issues/3356#issuecomment-371304057

Also, I'm new to Go and Gitea development, so please give feedback.

Fixes #3356


🔄 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/3648 **Author:** [@krrutkow](https://github.com/krrutkow) **Created:** 3/8/2018 **Status:** ✅ Merged **Merged:** 12/18/2019 **Merged by:** [@techknowlogick](https://github.com/techknowlogick) **Base:** `master` ← **Head:** `use-base-repo-not-fork` --- ### 📝 Commits (3) - [`508209d`](https://github.com/go-gitea/gitea/commit/508209d55bbe14bd85198e5d6b5f5b3efce6c7c7) Change PR commits and diffs to use base repo rather than forked - [`216aa1e`](https://github.com/go-gitea/gitea/commit/216aa1ef336dceb3392887dd4a9733c01cf5e4cb) Merge branch 'master' into use-base-repo-not-fork - [`cf63174`](https://github.com/go-gitea/gitea/commit/cf63174dd509ed12ea03fe9267315c220fe6db30) Merge branch 'master' into use-base-repo-not-fork ### 📊 Changes **1 file changed** (+35 additions, -70 deletions) <details> <summary>View changed files</summary> 📝 `routers/repo/pull.go` (+35 -70) </details> ### 📄 Description Change the repository referenced when displaying commits or diffs in pull request to the base repository. The forked repository may not be readable by users who can read the base repository. See discussion for (#3356). @lafriks does this implement what you mentioned in https://github.com/go-gitea/gitea/issues/3356#issuecomment-371304057 Also, I'm new to Go and Gitea development, so please give feedback. Fixes #3356 --- <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:24:37 -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#17029