p4review2.conf #4

  • //
  • guest/
  • paul_allen/
  • p4review/
  • p4review2.conf
  • View
  • Commits
  • Open Download .zip Download (2 KB)
;; See --help for details...
[p4review]
change_template = Change {chgno} by {p4user}@{p4client} on {dt}
	{change_url}
	{user_url}
	{cldesc}
	 .
	Jobs updated:
	{jobsupdated}
	 .
	Affected files:
	{clfiles}
	    
change_url = http://main.local/changes/{chgno}
daemon = 
dbfile = :memory:
default_domain = pallen.co.uk
default_sender = Perforce Review Daemon <perforce-review-daemon>

html_change_template = 
	<div style="font-family: sans-serif;">
	Change <a style="text-decoration: none;" href="{change_url}">{chgno}</a>
	by <a style="text-decoration: none;" href="{user_url}">{p4user}</a>@{p4client}
	on {dt}
	<br/>
	<div style="margin: 1em;">{cldesc}</div>
	<br/>
	Jobs updated:
	<ul style="margin: 1em; padding: 0; list-style-type: none;">
	{jobsupdated}
	</ul>
	<br/>
	Affected files:
	<ul style="margin-left: 1em; padding: 0; list-style-type: none;">
	{clfiles}
	</ul>
	</div>
	
html_files_template = <li style="margin:0; padding:0;"><a style="text-decoration: none;" href="{change_url}#{fhash}">{dfile}</a>#{drev} {action}</li>
html_job_template = 
	<a href="{job_url}">{Job}</a>
	<dl>
	{jobdesc}
	</dl>
	
slack_change_template = 
	Change <{change_url}|{chgno}> by <{user_url}|{p4user}@{p4client}> on {dt}
	{cldesc}
	Jobs updated:
	{jobsupdated}
	Affected files:
	{clfiles}
		
slack_files_template = <http://main.local/files/{dfile}|{dfile}>#{drev} {action}
slack_job_template = 
	<{job_url}|{Job}>
	{jobdesc}

ignored_users = git-fusion-reviews-*
job_counter = 
job_datefield = Date
job_template = {job_url}
	{jobdesc}

jb_tmpl = {Job} *{Status}* {Description}
html_jb_tmpl = <li><a style="text-decoration: none;" href="{job_url}">{Job}</a> *{Status}* {Description}</li>
slack_jb_tmpl = <{job_url}|{Job}> *{Status}* {Description}
	    
job_url = http://main.local/jobs/{jobno}
log_file = 
max_email_size = 1048576
max_emails = 99
max_length = 4096
opt_in_path = 
p4bin = /usr/local/bin/p4
p4charset = utf8
p4passwd = 
p4port = localhost:1666
p4user = pallen
pid_file = /Users/pallen/Workspaces/main.p4-review/dev/p4review2.pid
poll_interval = 300
review_counter = review
skip_author = True
smtp_passwd = 
smtp_server = smtp:25
smtp_ssl = NONE/SSL/TLS
smtp_user = 
spec_depot = spec
subject_template = [{p4port} @{chgno}] {desc}
summary_email = False
slack_no_email = True
timeoffset = 0.0
user_url = http://main.local/users/{p4user}
user_icon_url = https://pbs.twimg.com/profile_images/572920496824406016/Io8m39jD.jpeg
# Change User Description Committed
#4 16416 Paul Allen Add change description to Slack format.
#3 16406 Paul Allen Use the 'Email' field in the user spec for the Slack URL.
#2 16405 Paul Allen Split template into function for slack/html.
 - Added 'False' support to true_or_false()
#1 16401 Paul Allen Slack addon to review2.
 API token is hard coded at the moment, need to add it to the Config or User spec in some form.