2018-03-29 00:18:33 -04:00
< my-complex-bot-config [ botComponent ] = " this " >
< ng-template # botParamsTemplate >
2018-03-30 16:59:25 -04:00
< my-ibox [ isCollapsible ] = " true " >
< h5 class = "my-ibox-title" >
2020-10-23 07:30:20 -04:00
{{'.travis.yml configuration and template information' | translate}}
2018-03-30 16:59:25 -04:00
< / h5 >
< div class = "my-ibox-content" >
2019-07-11 00:17:16 -04:00
< p >
2020-10-23 07:30:20 -04:00
{{'The following section needs to be added to your' | translate}} < code > .travis.yml< / code > {{'file in your repositories:' | translate}}
2019-07-11 00:17:16 -04:00
< / p >
2018-03-30 16:59:25 -04:00
< pre > {{ travisYaml }}< / pre >
< p >
2020-10-23 07:30:20 -04:00
{{'The following variables can be used in your template. This template is used to post a message to theroom when your webhook is activated.' | translate}}
2018-03-30 16:59:25 -04:00
< / p >
< ul >
2020-10-23 07:30:20 -04:00
< li > < code > {{ '%{repository_slug}' }}< / code > - {{'The repository identifier' | translate}} (eg: "matrix-org/synapse")< / li >
< li > < code > {{ '%{repository_name}' }}< / code > - {{'The repository name' | translate}} (eg: "synapse")< / li >
< li > < code > {{ '%{build_number}' }}< / code > - {{'The build number' | translate}}< / li >
< li > < code > {{ '%{build_id}' }}< / code > - {{'The build ID' | translate}}< / li >
< li > < code > {{ '%{branch}' }}< / code > - {{'The branch name' | translate}}< / li >
< li > < code > {{ '%{commit}' }}< / code > - {{'A short version of the commit SHA' | translate}}< / li >
< li > < code > {{ '%{commit_subject}' }}< / code > - {{'The first line of the commit message' | translate}}< / li >
< li > < code > {{ '%{commit_message}' }}< / code > - {{'The full commit message' | translate}}< / li >
< li > < code > {{ '%{author}' }}< / code > - {{'The author of the commit' | translate}}< / li >
< li > < code > {{ '%{result}' }}< / code > - {{'The result of the build' | translate}}< / li >
< li > < code > {{ '%{message}' }}< / code > - {{'The message from Travis CI about the build' | translate}}< / li >
< li > < code > {{ '%{duration}' }}< / code > - {{'The total duration of all builds in the matrix' | translate}}< / li >
< li > < code > {{ '%{elapsed_timed}' }}< / code > - {{'The time it took to run the build' | translate}}< / li >
< li > < code > {{ '%{compare_url}' }}< / code > - {{'A URL to see the changes which triggered the build' | translate}}< / li >
< li > < code > {{ '%{build_url}' }}< / code > - {{'A URL to see the build information' | translate}}< / li >
2018-03-30 16:59:25 -04:00
< / ul >
< / div >
< / my-ibox >
2018-03-29 00:18:33 -04:00
< my-ibox >
< h5 class = "my-ibox-title" >
2020-10-23 07:30:20 -04:00
{{'Repositories' | translate}}
2018-03-29 00:18:33 -04:00
< / h5 >
< div class = "my-ibox-content" >
< form ( submit ) = " interceptSave ( ) " novalidate name = "saveForm" >
< table class = "table table-striped table-condensed table-bordered" >
< thead >
< tr >
2020-10-23 07:30:20 -04:00
< th > {{'Repository' | translate}}< / th >
< th > {{'Template' | translate}}< / th >
< th > {{'Added by' | translate}}< / th >
< th class = "actions-col" > {{'Actions' | translate}}< / th >
2018-03-29 00:18:33 -04:00
< / tr >
< / thead >
< tbody >
< tr * ngFor = "let repo of getRepos()" >
< td > {{ repo.repoKey }}< / td >
< td >
2019-07-11 00:17:16 -04:00
< textarea title = "Repository Template" class = "repo-template form-control" rows = "3"
(change)="repo.template = $event.target.value"
[disabled]="isUpdating || !repo.isSelf">{{ repo.template }}< / textarea >
2018-03-29 00:18:33 -04:00
< / td >
< td > {{ repo.addedByUserId }}< / td >
< td class = "actions-col" >
2019-07-11 00:17:16 -04:00
< button type = "button" class = "btn btn-sm btn-outline-danger"
[disabled]="isUpdating || !repo.isSelf"
(click)="removeRepo(repo)">
2020-10-23 07:30:20 -04:00
< i class = "far fa-trash-alt" > < / i > {{'Remove' | translate}}
2019-07-11 00:17:16 -04:00
< / button >
2018-03-29 00:18:33 -04:00
< / td >
< / tr >
< tr >
< td colspan = "4" >
< div class = "input-group input-group-sm" >
< input type = "text" class = "form-control"
[(ngModel)]="newRepoKey"
placeholder="matrix-org/synapse"
name="newRepoKey"
2019-07-11 00:17:16 -04:00
title="New repository name"/>
2018-03-29 00:18:33 -04:00
< span class = "input-group-btn" >
< button type = "button" class = "btn btn-outline-success"
[disabled]="isUpdating"
(click)="addRepo()">
2020-10-23 07:30:20 -04:00
< i class = "fa fa-plus" > < / i > {{'Add' | translate}}
2018-03-29 00:18:33 -04:00
< / button >
< / span >
< / div >
< / td >
< / tr >
< / tbody >
< / table >
< div style = "margin-top: 25px" >
< button type = "submit" class = "btn btn-sm btn-primary" [ disabled ] = " isUpdating " >
2020-10-23 07:30:20 -04:00
< i class = "far fa-save" > < / i > {{'Save' | translate}}
2018-03-29 00:18:33 -04:00
< / button >
< / div >
< / form >
< / div >
< / my-ibox >
< / ng-template >
2020-10-23 07:30:20 -04:00
< / my-complex-bot-config >