[PR #4265] [CLOSED] Implement custom regular expression for external issue tracking. #17308

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/4265
Author: @AlexanderBeyn
Created: 6/17/2018
Status: Closed

Base: mainHead: custom-regexp-external-issues


📝 Commits (9)

  • 1948b4d Implement custom regular expression for external issue tracking.
  • 36ad510 Merge branch 'master' into custom-regexp-external-issues
  • b82ffc1 Merge branch 'master' into custom-regexp-external-issues
  • 855ad08 Merge branch 'master' into custom-regexp-external-issues
  • 8bbdce2 Merge remote-tracking branch 'upstream/master' into custom-regexp-external-issues
  • 0ed1b24 Update repo.go
  • ff8ffd6 Update html.go
  • 0b6e067 Merge branch 'master' into custom-regexp-external-issues
  • 49b3ebc Fix issue link

📊 Changes

10 files changed (+116 additions, -20 deletions)

View changed files

📝 models/repo.go (+4 -0)
📝 models/repo_test.go (+3 -0)
📝 models/repo_unit.go (+4 -3)
📝 modules/auth/repo_form.go (+1 -0)
📝 modules/markup/html.go (+34 -12)
📝 modules/markup/html_internal_test.go (+41 -0)
📝 options/locale/locale_en-US.ini (+3 -0)
📝 public/js/index.js (+9 -0)
📝 routers/repo/setting.go (+4 -3)
📝 templates/repo/settings/options.tmpl (+13 -2)

📄 Description

This PR adds regex as a third style of external issue tracking. The regular expression must have at least one captured group, which will be used as the index for the link. The entire match replaced by the link when rendered.

Fixes #3468


🔄 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/4265 **Author:** [@AlexanderBeyn](https://github.com/AlexanderBeyn) **Created:** 6/17/2018 **Status:** ❌ Closed **Base:** `main` ← **Head:** `custom-regexp-external-issues` --- ### 📝 Commits (9) - [`1948b4d`](https://github.com/go-gitea/gitea/commit/1948b4d4e886d669555e2ffa715199837db34142) Implement custom regular expression for external issue tracking. - [`36ad510`](https://github.com/go-gitea/gitea/commit/36ad5105f5e2d05c89a7300db3ab43a8fc705f59) Merge branch 'master' into custom-regexp-external-issues - [`b82ffc1`](https://github.com/go-gitea/gitea/commit/b82ffc1dbbca984c39aaac718567782bf4a01a63) Merge branch 'master' into custom-regexp-external-issues - [`855ad08`](https://github.com/go-gitea/gitea/commit/855ad08016bd4a49a839004f7622954e1e25daa5) Merge branch 'master' into custom-regexp-external-issues - [`8bbdce2`](https://github.com/go-gitea/gitea/commit/8bbdce2f624ac83f335df7cb23c37d42f15537bb) Merge remote-tracking branch 'upstream/master' into custom-regexp-external-issues - [`0ed1b24`](https://github.com/go-gitea/gitea/commit/0ed1b246b0599576b9cf33b3475559ced7280bc7) Update repo.go - [`ff8ffd6`](https://github.com/go-gitea/gitea/commit/ff8ffd60838de0bc88e88ae58082b3d69ce8a65b) Update html.go - [`0b6e067`](https://github.com/go-gitea/gitea/commit/0b6e06732f1483c2806b849a0372c9089a5d0a44) Merge branch 'master' into custom-regexp-external-issues - [`49b3ebc`](https://github.com/go-gitea/gitea/commit/49b3ebcce037c88678367e89f62d9469eaf07d98) Fix issue link ### 📊 Changes **10 files changed** (+116 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `models/repo.go` (+4 -0) 📝 `models/repo_test.go` (+3 -0) 📝 `models/repo_unit.go` (+4 -3) 📝 `modules/auth/repo_form.go` (+1 -0) 📝 `modules/markup/html.go` (+34 -12) 📝 `modules/markup/html_internal_test.go` (+41 -0) 📝 `options/locale/locale_en-US.ini` (+3 -0) 📝 `public/js/index.js` (+9 -0) 📝 `routers/repo/setting.go` (+4 -3) 📝 `templates/repo/settings/options.tmpl` (+13 -2) </details> ### 📄 Description This PR adds regex as a third style of external issue tracking. The regular expression must have at least one captured group, which will be used as the index for the link. The entire match replaced by the link when rendered. Fixes #3468 --- <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:32:14 -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#17308