Changeset 55e0291f in darkpeak-services


Ignore:
Timestamp:
Jul 20, 2018, 4:49:07 PM (18 months ago)
Author:
Mat Booth <mat.booth@…>
Branches:
ansible, keycloak, master, matrix, pleroma
Children:
8cd92280
Parents:
70dc0fdf
Message:

Fixes #27 - Ticket references in commit log messages should be linkified

Implemented commit-msg filter for cgit to parse messages for ticket
numbers and commit hashs and linkify them

Location:
roles/git
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • roles/git/defaults/main.yml

    r70dc0fdf r55e0291f  
    55# Location of static resources for the cgit repo browser
    66web_root: /usr/share/cgit
     7
     8# Location of executable programs that can used as cgit filters
     9filter_dir: /usr/lib/cgit/filters
  • roles/git/tasks/main.yml

    r70dc0fdf r55e0291f  
    9191    - reload apache2
    9292
    93 - name: Install custom Dark Peak branding
     93- name: Install custom cgit filters
     94  template:
     95    src: "{{ item }}.j2"
     96    dest: "{{ filter_dir }}/{{ item }}"
     97    owner: root
     98    group: root
     99    mode: 0755
     100  with_items:
     101    - commit-links.sh
     102  notify:
     103    - reload apache2
     104
     105- name: Install custom cgit Dark Peak branding
    94106  copy:
    95107    src: "{{ item }}"
  • roles/git/templates/cgitrc.j2

    r70dc0fdf r55e0291f  
    2525
    2626# Space-separated list of clone-url templates
    27 clone-url=$REQUEST_SCHEME://$HTTP_HOST/$CGIT_REPO_URL <user>@$HTTP_HOST:$CGIT_REPO_NAME
     27clone-url=$REQUEST_SCHEME://$HTTP_HOST/$CGIT_REPO_URL $CGIT_REPO_SECTION@$HTTP_HOST:$CGIT_REPO_NAME
    2828
    2929# How much of each kind of thing to show on the summary page
     
    5757
    5858# Nice rendering for for the above kinds of "about" pages
    59 about-filter=/usr/lib/cgit/filters/about-formatting.sh
     59about-filter={{ filter_dir }}/about-formatting.sh
     60
     61# Nice rendering for commit log messages
     62commit-filter={{ filter_dir }}/commit-links.sh
    6063
    6164# Nice rendering for source files
    62 source-filter=/usr/lib/cgit/filters/syntax-highlighting.py
     65source-filter={{ filter_dir }}/syntax-highlighting.py
    6366
    6467# Location where git repos live
Note: See TracChangeset for help on using the changeset viewer.