#3775 commit notifications should say the branch, and use markdown

v1.0.0
closed
nobody
42cc (432)
SCM
2015-08-20
2012-02-21
No

http://screencast.com/t/zMVPh6huD should include the branch(es) that the commits are on. Each commit should have a link to view it. And each commit should go through standard markdown processing.

Related

Tickets: #3775

Discussion

  • Dave Brondsema

    Dave Brondsema - 2012-04-26
    • labels: --> 42cc
     
  • Yaroslav Luzin - 2012-04-27

    created #43: [3775] commit notifications should say the branch, and use markdown (2cp)

     
  • Anonymous - 2012-05-08

    Originally by: tramadolmen

    I have generated this notification message:

    ticket:10 process all models by bolkimen </p/project1/code/ci/237f9a4507f04770ffb1b7079f1725c65f1faf40/>

    Merge branch 't14_codingstyle' by bolkimen </p/project1/code/ci/5ace3cb4abc2a6283baefab2460f35521c98113f/>

    ticket:3 change test case by bolkimen </p/project1/code/ci/24599f9d8b901be553e22d44fa2c03f7f7e0565c/>

    ticket:5 remove unused import by bolkimen </p/project1/code/ci/cf6f9c74a3c6dde93060c0beee0e51c910a66637/>

    It seems that link in tags not showed. Can i place link without tags?

     
  • Dave Brondsema

    Dave Brondsema - 2012-05-08

    I'm pretty sure the notification message should be Markdown and then links will be generated properly for text/plain and text/html components of the HTML. Perhaps you just need to add the domain (config['base_url']) and the links will work.

     
  • Yaroslav Luzin - 2012-05-10

    closed #43, please check branch '42cc_3775'

     
  • Dave Brondsema

    Dave Brondsema - 2012-05-10
    • status: open --> code-review
    • qa: ᗫave ᙖrondsema
     
  • Dave Brondsema

    Dave Brondsema - 2012-05-22
    • status: code-review --> open
     
  • Dave Brondsema

    Dave Brondsema - 2012-05-22

    The branch name in brackets like [master] doesn't work well when it gets converted to html because brackets are used for links and there's not an artifact called master, so the brackets get dropped. Maybe (master) would be better. Or master: sample commit message

    I don't think _make_notification needs to do markdown conversion since mail_tasks.py already has that logic. (see the end of the sendmail function). Moreover, within _make_notification, the c.user.get_pref('email_format') refers to the committer, not the recipient. Will it work without modifying _make_notification at all?

    And then can you add the branch name and link for the notification of a single commit also? Markdown/html works correctly for a single commit notification.

    Thanks

     
  • Yaroslav Luzin - 2012-05-23

    Created #70: [#3775] Refactoring and small amendments (1cp)

     

    Related

    Tickets: #3775

  • Yaroslav Luzin - 2012-05-28

    Closed #70 and updated 42cc_3775 branch. There's one merge commit in the branch, it should disappear when you'll make git rebase. I could not get the two branches (in your and our repository) merged/rebased without that commit.

     
  • Dave Brondsema

    Dave Brondsema - 2012-05-29
    • status: open --> code-review
     
  • Dave Brondsema

    Dave Brondsema - 2012-05-29
    • status: code-review --> closed
    • milestone: forge-backlog --> forge-jun-01
     

Log in to post a comment.