From 4744ae7070d3963c0420d101e69cff3e8ff021ce Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: May 05 2017 19:19:48 +0000 Subject: Use the project name as a prefix instead of the forge. This will change issue titles from: [pagure] Use the project name to: [sync-to-jira] Use the project name Which should be much more useful. This fixes #17. --- diff --git a/sync2jira/downstream.py b/sync2jira/downstream.py index b6177aa..690ce4e 100644 --- a/sync2jira/downstream.py +++ b/sync2jira/downstream.py @@ -135,7 +135,7 @@ def create_jira_issue(issue, config): def sync_with_jira(issue, config): - log.info("Considering upstream %s", issue.url) + log.info("Considering upstream %s, %s", issue.url, issue.title) # First, check to see if we have a matching issue using the new method. # If we do, then just bail out. No sync needed. diff --git a/sync2jira/intermediary.py b/sync2jira/intermediary.py index 1cb73d4..2529fec 100644 --- a/sync2jira/intermediary.py +++ b/sync2jira/intermediary.py @@ -29,7 +29,7 @@ class Issue(object): @property def title(self): - return u'[%s] %s' % (self.source, self._title) + return u'[%s] %s' % (self.upstream, self._title) @classmethod def from_pagure(cls, upstream, issue, config):