@chisquare-tech/origine-ngx-apps-code 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3015,7 +3015,7 @@ class PullPage extends RepoPage {
|
|
|
3015
3015
|
<span class="o-lbl">Reviewers</span>
|
|
3016
3016
|
@for (r of reviewers(); track r.id) {<div class="o-flex"><span class="o-av" aria-hidden="true">{{ people().initials(r.id) }}</span><span>{{ people().name(r.id) }}</span><span class="o-r o-sm" [style.color]="r.colour">{{ r.label }}</span></div>}
|
|
3017
3017
|
@if (!reviewers().length) {<span class="o-faint o-sm">No reviewers yet.</span>}
|
|
3018
|
-
<span class="o-faint o-xs">
|
|
3018
|
+
<span class="o-faint o-xs">Code owners of changed paths (CODEOWNERS) are asked automatically.</span>
|
|
3019
3019
|
</div>
|
|
3020
3020
|
<div class="o-col"><span class="o-lbl">Labels</span><div class="o-flex o-wrap">@for (l of p.labels; track l) {<span class="o-chip o-out">{{ l }}</span>}@if (!p.labels.length) {<span class="o-faint o-sm">None</span>}</div></div>
|
|
3021
3021
|
<div class="o-col">
|
|
@@ -3185,7 +3185,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
3185
3185
|
<span class="o-lbl">Reviewers</span>
|
|
3186
3186
|
@for (r of reviewers(); track r.id) {<div class="o-flex"><span class="o-av" aria-hidden="true">{{ people().initials(r.id) }}</span><span>{{ people().name(r.id) }}</span><span class="o-r o-sm" [style.color]="r.colour">{{ r.label }}</span></div>}
|
|
3187
3187
|
@if (!reviewers().length) {<span class="o-faint o-sm">No reviewers yet.</span>}
|
|
3188
|
-
<span class="o-faint o-xs">
|
|
3188
|
+
<span class="o-faint o-xs">Code owners of changed paths (CODEOWNERS) are asked automatically.</span>
|
|
3189
3189
|
</div>
|
|
3190
3190
|
<div class="o-col"><span class="o-lbl">Labels</span><div class="o-flex o-wrap">@for (l of p.labels; track l) {<span class="o-chip o-out">{{ l }}</span>}@if (!p.labels.length) {<span class="o-faint o-sm">None</span>}</div></div>
|
|
3191
3191
|
<div class="o-col">
|
|
@@ -3224,7 +3224,7 @@ function writePref(key, value) {
|
|
|
3224
3224
|
}
|
|
3225
3225
|
}
|
|
3226
3226
|
|
|
3227
|
-
const BLANK = { id: '', pattern: '', blockDirectPush: true, blockForcePush: true, blockDeletion: true, requiredApprovals: 1, dismissStaleApprovals: true, requireUpToDate: false, requiredChecks: [] };
|
|
3227
|
+
const BLANK = { id: '', pattern: '', blockDirectPush: true, blockForcePush: true, blockDeletion: true, requiredApprovals: 1, dismissStaleApprovals: true, requireUpToDate: false, requireCodeOwnerReview: false, requiredChecks: [] };
|
|
3228
3228
|
// /{org}/{project}/code/{repo}/settings?section= (prototype "code_settings"): general settings and
|
|
3229
3229
|
// merge methods, branch protection rules, and the danger zone (archive, delete).
|
|
3230
3230
|
class RepoSettingsPage extends RepoPage {
|
|
@@ -3246,6 +3246,7 @@ class RepoSettingsPage extends RepoPage {
|
|
|
3246
3246
|
{ key: 'blockDeletion', label: 'Block deletion', hint: 'Matching branches cannot be deleted.' },
|
|
3247
3247
|
{ key: 'dismissStaleApprovals', label: 'Dismiss stale approvals', hint: 'A new commit dismisses approvals given on an older one.' },
|
|
3248
3248
|
{ key: 'requireUpToDate', label: 'Require branches to be up to date', hint: 'The branch must contain the target’s latest commit before it merges.' },
|
|
3249
|
+
{ key: 'requireCodeOwnerReview', label: 'Require review from CODEOWNERS', hint: 'Owners of changed paths are requested automatically; one of them approves each owned file.' },
|
|
3249
3250
|
];
|
|
3250
3251
|
this.collabs = signal([], ...(ngDevMode ? [{ debugName: "collabs" }] : /* istanbul ignore next */ []));
|
|
3251
3252
|
this.perms = [{ id: 'read', label: 'Read' }, { id: 'write', label: 'Write' }, { id: 'maintain', label: 'Maintain' }];
|
|
@@ -3311,6 +3312,8 @@ class RepoSettingsPage extends RepoPage {
|
|
|
3311
3312
|
parts.push('no direct push');
|
|
3312
3313
|
if (p.requireUpToDate)
|
|
3313
3314
|
parts.push('up to date');
|
|
3315
|
+
if (p.requireCodeOwnerReview)
|
|
3316
|
+
parts.push('code owners');
|
|
3314
3317
|
if (p.blockDeletion)
|
|
3315
3318
|
parts.push('no deletion');
|
|
3316
3319
|
return parts.join(' · ') || 'no restrictions';
|