[PR #1832] [MERGED] Fix pull request compare link #16072

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

📋 Pull Request Information

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

Base: masterHead: fix_compare


📝 Commits (2)

📊 Changes

3 files changed (+41 additions, -2 deletions)

View changed files

integrations/pull_compare_test.go (+31 -0)
📝 models/fixtures/repo_unit.yml (+9 -1)
📝 templates/repo/home.tmpl (+1 -1)

📄 Description

The link should be parentOwner/parent/compare/master...childOwner:master instead of parentOwner/parent/compare/master...parentOwner:master.

Without this fix, the owner of the child repo gets a 404 when they click on the compare-pull-request button on the parent repo's homepage.


🔄 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/1832 **Author:** [@ethantkoenig](https://github.com/ethantkoenig) **Created:** 5/29/2017 **Status:** ✅ Merged **Merged:** 5/31/2017 **Merged by:** [@appleboy](https://github.com/appleboy) **Base:** `master` ← **Head:** `fix_compare` --- ### 📝 Commits (2) - [`2df13e1`](https://github.com/go-gitea/gitea/commit/2df13e1f96ea3d5e98ba70b2dc687feee9a6f452) Fix pull request compare link - [`519c14c`](https://github.com/go-gitea/gitea/commit/519c14c3defd309abbf3ca28c3fbccebeb397111) Integration test ### 📊 Changes **3 files changed** (+41 additions, -2 deletions) <details> <summary>View changed files</summary> ➕ `integrations/pull_compare_test.go` (+31 -0) 📝 `models/fixtures/repo_unit.yml` (+9 -1) 📝 `templates/repo/home.tmpl` (+1 -1) </details> ### 📄 Description The link should be `parentOwner/parent/compare/master...childOwner:master` instead of `parentOwner/parent/compare/master...parentOwner:master`. Without this fix, the owner of the child repo gets a 404 when they click on the compare-pull-request button on the parent repo's homepage. --- <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:40 -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#16072