Skip to content
This repository has been archived by the owner on Feb 5, 2020. It is now read-only.

issues/commit to be links, not spans #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

trevorah
Copy link
Contributor

@trevorah trevorah commented Mar 1, 2016

The problems that I want to solve are these:

  • you cant write markdown for a link to a commit that has the text of a commit message but is also decorated like a commit. I.e you cant write the "pushed commits to github" commits in the activity feed in markdown.
  • we're converting all our span issues to links on the client, which is just silly.

Id also like to turn all @mentions into links as well (wdyt @lerouxb?)
Id like to also add a githubContext option to the processor, so that we stop decorating #1 as an issue if you are not in a repo room or sub channel. That make our issue decoration much more reliable.

opinions please @suprememoocow @lerouxb

(btw there are examples committed as tests)

@lerouxb
Copy link
Contributor

lerouxb commented Mar 1, 2016

Yes please. Make these things links so you can still open them in a new tab without having to go through the popup. It should also make Tim Berners-Lee proud. And if things ever fail then you can at least still click the link.

@trevorah
Copy link
Contributor Author

trevorah commented Mar 1, 2016

@lerouxb and the usernames?

@lerouxb
Copy link
Contributor

lerouxb commented Mar 1, 2016

I think everything linkable (or that started off as links) should be links, not spans. But usernames are now tricky because they aren't all github usernames, so where do you link the non-gh ones..

@trevorah
Copy link
Contributor Author

trevorah commented Mar 1, 2016

well, cant we just link them to https://gitter.im/username?

@lerouxb
Copy link
Contributor

lerouxb commented Mar 1, 2016

Sure, but that URL tends to do nothing.. Or do you mean only the non-gh ones?

@trevorah
Copy link
Contributor Author

trevorah commented Mar 1, 2016

I guess we can keep them as spans. When someone types @username, they do it to get someones attention, very rarely is it used for referencing someone.

@lerouxb
Copy link
Contributor

lerouxb commented Mar 1, 2016

Yeah. It wasn't like the person pasted a link, unlike with commits or issues or pull requests and things. Once we have profile pages and more social network type features we can rethink it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants