![](https://seccdn.libravatar.org/avatar/af22e20b6884acbc89be6d7736c43e92.jpg?s=120&d=mm&r=g)
Hello community, here is the log from the commit of package python-md2workflow for openSUSE:Factory checked in at 2019-10-31 22:34:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-md2workflow (Old) and /work/SRC/openSUSE:Factory/.python-md2workflow.new.2990 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-md2workflow" Thu Oct 31 22:34:52 2019 rev:4 rq:744442 version:1.4.9 Changes: -------- --- /work/SRC/openSUSE:Factory/python-md2workflow/python-md2workflow.changes 2019-08-27 10:20:14.851944117 +0200 +++ /work/SRC/openSUSE:Factory/.python-md2workflow.new.2990/python-md2workflow.changes 2019-10-31 22:34:55.105074040 +0100 @@ -1,0 +2,19 @@ +Thu Oct 31 10:39:58 UTC 2019 - Lubos Kocman <lubos.kocman@suse.com> + +- Update to 1.4.9 + + * Improve bold highlighting in JIRA text + https://github.com/openSUSE/md2workflow/issues/8 + +------------------------------------------------------------------- +Thu Oct 31 10:16:07 UTC 2019 - Lubos Kocman <lubos.kocman@suse.com> + +- Support all jira*.suse.de instances + +* Add suse-staging.conf +* Change suse-devel from lutoslawski to jira-devel.suse.de +* lutoslawski moved to a separate file suse-lutoslawski.conf +* Update states on prod, stage, devel https://github.com/openSUSE/md2workflow/issues/5 + + +------------------------------------------------------------------- Old: ---- md2workflow-1.4.8.tar.gz New: ---- md2workflow-1.4.9.tar.gz suse-lutoslawski.conf suse-staging.conf ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-md2workflow.spec ++++++ --- /var/tmp/diff_new_pack.LSjnxK/_old 2019-10-31 22:34:56.061075227 +0100 +++ /var/tmp/diff_new_pack.LSjnxK/_new 2019-10-31 22:34:56.085075257 +0100 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-md2workflow -Version: 1.4.8 +Version: 1.4.9 Release: 0 Summary: Tool to create a JIRA or other Workflow from markdown files License: GPL-3.0-only @@ -27,6 +27,8 @@ Source: https://files.pythonhosted.org/packages/source/m/md2workflow/md2workflow-%{version}.tar.gz Source1: suse-prod.conf Source2: suse-devel.conf +Source3: suse-staging.conf +Source4: suse-lutoslawski.conf BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -58,7 +60,7 @@ %setup -q -n md2workflow-%{version} echo `pwd` -cp %{_sourcedir}/{suse-prod,suse-devel}.conf config/ +cp %{_sourcedir}/{suse-prod,suse-devel,suse-staging,suse-lutoslawski}.conf config/ %build %python_build ++++++ md2workflow-1.4.8.tar.gz -> md2workflow-1.4.9.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/md2workflow-1.4.8/PKG-INFO new/md2workflow-1.4.9/PKG-INFO --- old/md2workflow-1.4.8/PKG-INFO 2019-08-02 14:15:21.000000000 +0200 +++ new/md2workflow-1.4.9/PKG-INFO 2019-10-31 11:34:26.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: md2workflow -Version: 1.4.8 +Version: 1.4.9 Summary: Create a JIRA or other Workflow from markdown files. Home-page: https://github.com/lkocman/md2workflow.git Author: Lubos Kocman diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/md2workflow-1.4.8/md2workflow/backend/jirabackend.py new/md2workflow-1.4.9/md2workflow/backend/jirabackend.py --- old/md2workflow-1.4.8/md2workflow/backend/jirabackend.py 2019-08-02 14:13:25.000000000 +0200 +++ new/md2workflow-1.4.9/md2workflow/backend/jirabackend.py 2019-10-31 11:28:03.000000000 +0100 @@ -124,15 +124,29 @@ @property def description(self): res = self._description - res = res.replace("${%Project}", self.conf["project"]["name"]) - # both are valid - res = res.replace("${%Product}", self.conf["project"]["name"]) - res = res.replace("${Epic}", str(self.parent_by_subclass( - JiraBasedWorkflow).summary)) # XXX will not work for subtask - res = substitute_links( - res, topurl=self.environment["jira"]['relative_link_topurl']) + + # Subsitute both Product and Project with the project name + if self.conf and "project" in self.conf: + res = res.replace("${%Project}", self.conf["project"]["name"]) + res = res.replace("${%Product}", self.conf["project"]["name"]) + + if self.parent_by_subclass(JiraBasedWorkflow): + # Substitute both Epic and Miestone with the Epic name + res = res.replace("${Epic}", str(self.parent_by_subclass( + JiraBasedWorkflow).summary)) # XXX will not work for subtask + res = res.replace("${Milestone}", str(self.parent_by_subclass( + JiraBasedWorkflow).summary)) # XXX will not work for subtask + + if self.environment and "jira" in self.environment and \ + self.environment["jira"].get("relative_link_topurl", None): + res = substitute_links( + res, topurl=self.environment["jira"]['relative_link_topurl']) + #res = res.replace(">", ">") #res = res.replace("<", "<") + + res = res.replace("**", "*") # Markdown bold to JIRA bold + res = res.replace("__", "*") # Markdown bold to JIRA bold return res @description.setter diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/md2workflow-1.4.8/md2workflow.egg-info/PKG-INFO new/md2workflow-1.4.9/md2workflow.egg-info/PKG-INFO --- old/md2workflow-1.4.8/md2workflow.egg-info/PKG-INFO 2019-08-02 14:15:21.000000000 +0200 +++ new/md2workflow-1.4.9/md2workflow.egg-info/PKG-INFO 2019-10-31 11:34:26.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: md2workflow -Version: 1.4.8 +Version: 1.4.9 Summary: Create a JIRA or other Workflow from markdown files. Home-page: https://github.com/lkocman/md2workflow.git Author: Lubos Kocman diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/md2workflow-1.4.8/setup.py new/md2workflow-1.4.9/setup.py --- old/md2workflow-1.4.8/setup.py 2019-08-02 14:14:24.000000000 +0200 +++ new/md2workflow-1.4.9/setup.py 2019-10-31 11:31:16.000000000 +0100 @@ -9,7 +9,7 @@ name="md2workflow", description="Create a JIRA or other Workflow from markdown files.", long_description="Create a JIRA or other Workflow from markdown files.", - version="1.4.8", + version="1.4.9", license="GPLv3", author="Lubos Kocman", author_email="Lubos.Kocman@suse.com", ++++++ suse-devel.conf ++++++ --- /var/tmp/diff_new_pack.LSjnxK/_old 2019-10-31 22:34:56.477075744 +0100 +++ /var/tmp/diff_new_pack.LSjnxK/_new 2019-10-31 22:34:56.505075779 +0100 @@ -3,35 +3,35 @@ backend = jira [jira] -server = http://lutoslawski.arch.suse.de:8080 +server = https://jira-devel.suse.de # cert is path to cert or None for insecure connection # cert = Path/to/cert auth = basic -project = RMCT +project = RMC + # These may differ per server, or at least SubTask -mapping_JiraSubTask = Sub-task +mapping_JiraSubTask = Sub-Task mapping_JiraTask = Task mapping_JiraBasedWorkflow = Epic -mapping_EpicName = Epic-Name -mapping_EpicNameQuery = Epic-Verknüpfung +mapping_EpicName = Epic Name +mapping_EpicNameQuery = Epic Link mapping_Assignee = Worker -# mapping_ProjectName = Product +mapping_ProjectName = Product relative_link_topurl = https://gitlab.suse.de/sle-prjmgr/release-management-checklist/blob/master/ -update_states = OPEN, Backlog -epic_update_states = OPEN, Backlog, In Progress +update_states = Open, Planning +epic_update_states = Open, Planning, In Progress [logging] level = INFO [TaskRelations] relations = Blocks, Depends On, Implements, Implemented by -# for some reason they're done done in opposite direction on devel -inbound = Implements, Blocks +inbound = Implemented by, Depends On [JiraTaskRelations] # TaskRelation as in TaskRelations to the actual Jira value as it might differ per instance Blocks = Blocks Depends On = Blocks -Implements = Is Implemented By -Implemented by = Is Implemented By +Implements = Implements +Implemented by = Implements ++++++ suse-lutoslawski.conf ++++++ [global] # currently the only one supported backend = jira [jira] server = http://lutoslawski.arch.suse.de:8080 # cert is path to cert or None for insecure connection # cert = Path/to/cert auth = basic project = RMCT # These may differ per server, or at least SubTask mapping_JiraSubTask = Sub-task mapping_JiraTask = Task mapping_JiraBasedWorkflow = Epic mapping_EpicName = Epic-Name mapping_EpicNameQuery = Epic-Verknüpfung mapping_Assignee = Worker # mapping_ProjectName = Product relative_link_topurl = https://gitlab.suse.de/sle-prjmgr/release-management-checklist/blob/master/ update_states = OPEN, Backlog epic_update_states = OPEN, Backlog, In Progress [logging] level = INFO [TaskRelations] relations = Blocks, Depends On, Implements, Implemented by # for some reason they're done done in opposite direction on devel inbound = Implements, Blocks [JiraTaskRelations] # TaskRelation as in TaskRelations to the actual Jira value as it might differ per instance Blocks = Blocks Depends On = Blocks Implements = Is Implemented By Implemented by = Is Implemented By ++++++ suse-prod.conf ++++++ --- /var/tmp/diff_new_pack.LSjnxK/_old 2019-10-31 22:34:56.629075933 +0100 +++ /var/tmp/diff_new_pack.LSjnxK/_new 2019-10-31 22:34:56.641075947 +0100 @@ -19,8 +19,8 @@ mapping_Assignee = Worker mapping_ProjectName = Product relative_link_topurl = https://gitlab.suse.de/sle-prjmgr/release-management-checklist/blob/master/ -update_states = Open, Backlog -epic_update_states = Open, Backlog, In Progress +update_states = Open, Planning +epic_update_states = Open, Planning, In Progress [logging] level = INFO ++++++ suse-staging.conf ++++++ [global] # currently the only one supported backend = jira [jira] server = https://jira-staging.suse.de # cert is path to cert or None for insecure connection # cert = Path/to/cert auth = basic project = RMC # These may differ per server, or at least SubTask mapping_JiraSubTask = Sub-Task mapping_JiraTask = Task mapping_JiraBasedWorkflow = Epic mapping_EpicName = Epic Name mapping_EpicNameQuery = Epic Link mapping_Assignee = Worker mapping_ProjectName = Product relative_link_topurl = https://gitlab.suse.de/sle-prjmgr/release-management-checklist/blob/master/ update_states = Open, Planning epic_update_states = Open, Planning, In Progress [logging] level = INFO [TaskRelations] relations = Blocks, Depends On, Implements, Implemented by inbound = Implemented by, Depends On [JiraTaskRelations] # TaskRelation as in TaskRelations to the actual Jira value as it might differ per instance Blocks = Blocks Depends On = Blocks Implements = Implements Implemented by = Implements