Add clear instructions to the github trigger setup on how to authorize additional organizations
Until now, this has been quite hard for customers to find
This commit is contained in:
parent
b894d8e58c
commit
1f8e0b72be
3 changed files with 26 additions and 3 deletions
|
@ -0,0 +1,18 @@
|
||||||
|
.gh-button {
|
||||||
|
color: #0366d6;
|
||||||
|
background-color: #fff;
|
||||||
|
padding: 3px 10px;
|
||||||
|
font-size: 12px;
|
||||||
|
border: 1px solid rgba(27,31,35,0.2);
|
||||||
|
border-radius: 0.25em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gh-grant-message {
|
||||||
|
font-size: 16px;
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gh-grant-message b {
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
|
@ -61,8 +61,8 @@
|
||||||
<p>
|
<p>
|
||||||
<span class="registry-name"></span> has been granted access to read and view these {{ $ctrl.namespaceTitle }}s.
|
<span class="registry-name"></span> has been granted access to read and view these {{ $ctrl.namespaceTitle }}s.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p class="co-alert co-alert-info gh-grant-message" ng-if="$ctrl.githost == 'github'">
|
||||||
Don't see an expected {{ $ctrl.namespaceTitle }} here? Please make sure third-party access is enabled for <span class="registry-name"></span> under that {{ $ctrl.namespaceTitle }}.
|
<b>Don't see an expected organization here?</b>Please visit <a href="{{ $ctrl.githubTriggerEndpoint }}settings/connections/applications/{{ $ctrl.githubTriggerClientId }}" target="_blank" rel="nofollow noopener">Connections with <span class="registry-name"></span></a> and choose <span class="gh-button">Grant</span> or <span class="gh-button">Request</span> before reloading this page.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</linear-workflow-section><!-- /Section: Namespace -->
|
</linear-workflow-section><!-- /Section: Namespace -->
|
||||||
|
|
|
@ -3,6 +3,7 @@ import * as moment from 'moment';
|
||||||
import { Local, Trigger, TriggerConfig, Repository, Namespace } from '../../../types/common.types';
|
import { Local, Trigger, TriggerConfig, Repository, Namespace } from '../../../types/common.types';
|
||||||
import { ContextChangeEvent } from '../context-path-select/context-path-select.component';
|
import { ContextChangeEvent } from '../context-path-select/context-path-select.component';
|
||||||
import { PathChangeEvent } from '../dockerfile-path-select/dockerfile-path-select.component';
|
import { PathChangeEvent } from '../dockerfile-path-select/dockerfile-path-select.component';
|
||||||
|
import './manage-trigger.component.css';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -37,13 +38,17 @@ export class ManageTriggerComponent implements OnChanges {
|
||||||
private namespaceTitle: string;
|
private namespaceTitle: string;
|
||||||
private namespace: any;
|
private namespace: any;
|
||||||
private buildSource: string;
|
private buildSource: string;
|
||||||
|
private githubTriggerEndpoint: string;
|
||||||
|
private githubTriggerClientId: string;
|
||||||
|
|
||||||
constructor(@Inject('ApiService') private apiService: any,
|
constructor(@Inject('ApiService') private apiService: any,
|
||||||
@Inject('TableService') private tableService: any,
|
@Inject('TableService') private tableService: any,
|
||||||
@Inject('TriggerService') private triggerService: any,
|
@Inject('TriggerService') private triggerService: any,
|
||||||
@Inject('RolesService') private rolesService: any,
|
@Inject('RolesService') private rolesService: any,
|
||||||
|
@Inject('KeyService') private keyService: any,
|
||||||
@Inject('$scope') private $scope: ng.IScope) {
|
@Inject('$scope') private $scope: ng.IScope) {
|
||||||
|
this.githubTriggerEndpoint = keyService['githubTriggerEndpoint'];
|
||||||
|
this.githubTriggerClientId = keyService['githubTriggerClientId'];
|
||||||
}
|
}
|
||||||
|
|
||||||
public ngOnChanges(changes: SimpleChanges): void {
|
public ngOnChanges(changes: SimpleChanges): void {
|
||||||
|
|
Reference in a new issue