Skip to content

Links in todo messages should be consistent, include repo info #178

Closed

Description

@levb

The output of /github todo lists PRs, and assignments differs from that of Messages.

image

  1. They should be consistent
  2. They should include both the repo reference, and the PR title.
  3. bonus: Unread messages should indicate if PR or Issue

Suggested format: [org/repo-last-token-ellipsis](repoURL)[PR/IssueID title](issueURL)
The repo name should be parsed, and shortened to its last word, with an ellipsis prepended if truncated. The title should probably be truncated at say 256 characters, just in case?

example:

Unread Messages

You have 8 unread messages:

Review Requests

You have 1 pull requests awaiting your review:

Your Open Pull Requests

You have 2 open pull requests:
...

Activity

  1. levb commented on Jan 21, 2020

    @levb
    ContributorAuthor

    cc @aaronrothschild @asaadmahmood for copy/formatting suggestions

  2. added
    Good First Issue
    Help Wanted
    Up For Grabs
    on Jan 21, 2020
  3. changed the title [-]PR links in todo should be consistent, include repo info[/-] [+]Links in todo messages should be consistent, include repo info[/+] on Jan 21, 2020
  4. aaronrothschild commented on Jan 21, 2020

    @aaronrothschild
    Contributor

    Bonus Bonus: I will go on a limb and say that it may be useful to GROUP the messages/issues/PRs within the sections by repo (IF there is >1 issue/PR for that repo in the list).

    @levb @asaadmahmood Curious if you think it would help to present the summary in a tabular format (1 table per section)? Then the repo/org is more clearly visible.

    something like (sorry, can't be bothered to get this markdown right - not rendering):

    Message Org Repo Issue
    Hey I think this thing could be positioned highe... mattermost mattermost-server Issue 2938
    Not bad thinking but I need to think more about... mattermost jira-plugin Issue 8
  5. levb commented on Jan 21, 2020

    @levb
    ContributorAuthor

    -1 for tables, they consume too much space.

  6. checkaayush commented on Feb 9, 2020

    @checkaayush
    Contributor

    I'd like to take this up.

  7. levb commented on Feb 12, 2020

    @levb
    ContributorAuthor

    @checkaayush go for it! A personal thank you if you get it done!

  8. removed
    Up For Grabs
    on Feb 12, 2020
  9. checkaayush commented on Feb 12, 2020

    @checkaayush
    Contributor

    @levb In the suggested format [org/repo-last-token-ellipsis](repoURL)[PR/IssueID title](issueURL), if the title is going to be a hyperlink, isn't the PR/IssueID before it redundant?

    I'd like to suggest the following:

    If we want overall consistency at the cost of some redundancy, we can even use the format picked for unread messages and apply it in all other categories.

    Suggestions? @aaronrothschild

  10. levb commented on Feb 12, 2020

    @levb
    ContributorAuthor

    @checkaayush I like your suggestion. It may be a good idea to post this for discussing in the Plugin: GitHub channel on community - I expect more opinions on the matter.

  11. aaronrothschild commented on Feb 12, 2020

    @aaronrothschild
    Contributor

    @checkaayush I like your suggestion. It may be a good idea to post this for discussing in the Plugin: GitHub channel on community - I expect more opinions on the matter.

    @checkaayush Agree with Lev, I will take any developer suggestions over mine :)

  12. checkaayush commented on Feb 13, 2020

    @checkaayush
    Contributor

    I'm going ahead with development as per my suggestion here: #178 (comment). Have posted the suggested format on Plugin: GitHub channel for comments from the community.

    I'll extract the message formatting logic in a separate function so that changing (and testing) it as desired becomes trivial.

  13. asaadmahmood commented on Feb 13, 2020

    @asaadmahmood
    Contributor

    I agree with @levb. Tables take too much space.

  14. checkaayush commented on Feb 16, 2020

    @checkaayush
    Contributor

    Assumptions I'm making during development:

    • Trimming title to 80 characters with ellipsis as suffix.
    • Repository names, when having multiple words, will be separated by hyphens -.

    If any of the assumptions seem inappropriate, let me know.

  15. added a commit that references this issue on Feb 16, 2020
    5cd5d45
  16. added a commit that references this issue on Mar 3, 2020
    43e3f4b
  17. added
    Type/Enhancement
    and removed on Mar 7, 2020
  18. added a commit that references this issue on Mar 30, 2026
    6350167
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Difficulty/1:EasyGood First IssueHelp WantedTech/GoType/Enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions