allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [2/2] allura git commit: [#8081] Make ticket and MR artifact titles similar
Date Tue, 23 Oct 2018 19:54:47 GMT
[#8081] Make ticket and MR artifact titles similar


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/277e45b6
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/277e45b6
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/277e45b6

Branch: refs/heads/master
Commit: 277e45b6ba95ce31d69d370de1f42d2b087ae63c
Parents: 98bd2fd
Author: Shalitha Suranga <shalithasuranga@gmail.com>
Authored: Tue Oct 23 13:15:20 2018 +0530
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Tue Oct 23 19:54:32 2018 +0000

----------------------------------------------------------------------
 Allura/allura/model/repository.py         | 2 +-
 ForgeTracker/forgetracker/model/ticket.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/277e45b6/Allura/allura/model/repository.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/repository.py b/Allura/allura/model/repository.py
index 493f38e..cff76e3 100644
--- a/Allura/allura/model/repository.py
+++ b/Allura/allura/model/repository.py
@@ -882,7 +882,7 @@ class MergeRequest(VersionedArtifact, ActivityObject):
         result.update(
             name_s='Merge Request #%d' % self.request_number,
             type_s=self.type_s,
-            title=self.email_subject,
+            title='Merge Request #%d: %s' % (self.request_number, self.summary),
         )
         return result
 

http://git-wip-us.apache.org/repos/asf/allura/blob/277e45b6/ForgeTracker/forgetracker/model/ticket.py
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/model/ticket.py b/ForgeTracker/forgetracker/model/ticket.py
index aab5481..580bd51 100644
--- a/ForgeTracker/forgetracker/model/ticket.py
+++ b/ForgeTracker/forgetracker/model/ticket.py
@@ -687,7 +687,7 @@ class Ticket(VersionedArtifact, ActivityObject, VotableArtifact):
     def index(self):
         result = VersionedArtifact.index(self)
         result.update(
-            title='Ticket %s' % self.ticket_num,
+            title='Ticket #%d: %s' % (self.ticket_num, self.summary),
             version_i=self.version,
             type_s=self.type_s,
             created_date_dt=self.created_date,


Mime
View raw message