Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
855faaab
Commit
855faaab
authored
Oct 24, 2014
by
Matt Selsky
Committed by
Gervase Markham
Oct 24, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1088399 - Add support for Github pull requests in See Also field. r=gerv, a=glob.
parent
bd9062bb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
GitHub.pm
Bugzilla/BugUrl/GitHub.pm
+3
-1
user-error.html.tmpl
template/en/default/global/user-error.html.tmpl
+1
-1
No files found.
Bugzilla/BugUrl/GitHub.pm
View file @
855faaab
...
...
@@ -22,8 +22,10 @@ sub should_handle {
# GitHub issue URLs have only one form:
# https://github.com/USER_OR_TEAM_OR_ORGANIZATION_NAME/REPOSITORY_NAME/issues/111
# GitHub pull request URLs have only one form:
# https://github.com/USER_OR_TEAM_OR_ORGANIZATION_NAME/REPOSITORY_NAME/pull/111
return
(
lc
(
$uri
->
authority
)
eq
'github.com'
and
$uri
->
path
=~
m
|^
/[^/
]
+
/[^/
]
+
/issues/
\
d
+
$|
)
?
1
:
0
;
and
$uri
->
path
=~
m
!^/[^/]+/[^/]+/(?:issues|pull)/\d+$!
)
?
1
:
0
;
}
sub
_check_value
{
...
...
template/en/default/global/user-error.html.tmpl
View file @
855faaab
...
...
@@ -290,7 +290,7 @@
<li>A ticket in a Trac installation.</li>
<li>A b[% %]ug in a MantisBT installation.</li>
<li>A b[% %]ug on sourceforge.net.</li>
<li>An issue on github.com.</li>
<li>An issue
/pull request
on github.com.</li>
[% Hook.process('bug_url_invalid_tracker') %]
</ul>
[% END %]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment