Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

[WIP] Update autolink version for Mattermost (do not merge)#135

Open
SSPJ wants to merge 3 commits into
masterfrom
seamus/autolink
Open

[WIP] Update autolink version for Mattermost (do not merge)#135
SSPJ wants to merge 3 commits into
masterfrom
seamus/autolink

Conversation

@SSPJ

@SSPJ SSPJ commented Sep 19, 2019

Copy link
Copy Markdown
Contributor

No description provided.

MATTERMOST_UNLINK_VERSION: 0.3.0
# UNLINK is the autolink plugin which converts JIRA tickets to clickable URL
# https://github.com/mattermost/mattermost-plugin-autolink/releases/
MATTERMOST_UNLINK_VERSION: 1.0.1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SSPJ, the latest version is 1.1.0 and I installed that version.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lgp171188 Right, this PR isn't for merging; I just pushed it so that you would have something to look at. I should have made that clear in the description, sorry!

template:
src: autolink.json.j2
dest: "{{ MATTERMOST_CONFIG_FILE|dirname }}/autolink.json"
dest: "{{ MATTERMOST_STATUS_DIR }}/autolink.json"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SSPJ, this wasn't needed when I did the upgrade and the auto-linking works okay. So is this needed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it's just reducing some code complexity: MATTERMOST_CONFIG_FILE is "{{ MATTERMOST_STATUS_DIR }}/config.json" and so MATTERMOST_CONFIG_FILE|dirname is just MATTERMOST_STATUS_DIR.

{
"Pattern": "(?P<project>{{ project }})-(?P<id>\\d{1,6})(?P<comma>[,;]*)",
"Template": "[${project}-${id}](https://{{ domain.domain }}/browse/${project}-${id})${comma}"
},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SSPJ, I didn't see any issues with this pattern. Is there a reason for removing it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't remember why I took it out, sorry.

@SSPJ SSPJ closed this Sep 19, 2019
@SSPJ SSPJ reopened this Sep 19, 2019
@SSPJ SSPJ changed the title Update autolink version for Mattermost [WIP] Update autolink version for Mattermost (do not merge) Sep 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants