You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR would presumably
Fix#20522Fix#18773Fix#19069Fix#21077Fix#13622
-----
1. Check whether unit type is currently enabled
2. Check if it _will_ be enabled via opt
3. Allow modification as necessary
Signed-off-by: jolheiser <[email protected]>
Co-authored-by: wxiaoguang <[email protected]>
Co-authored-by: 6543 <[email protected]>
// either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. `has_pull_requests` must be `true`.
170
+
// either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.
// either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. `has_pull_requests` must be `true`.
172
+
// either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.
173
173
AllowRebase*bool`json:"allow_rebase,omitempty"`
174
-
// either `true` to allow rebase with explicit merge commits (--no-ff), or `false` to prevent rebase with explicit merge commits. `has_pull_requests` must be `true`.
174
+
// either `true` to allow rebase with explicit merge commits (--no-ff), or `false` to prevent rebase with explicit merge commits.
// either `true` to enable AutodetectManualMerge, or `false` to prevent it. `has_pull_requests` must be `true`, Note: In some special cases, misjudgments can occur.
180
+
// either `true` to enable AutodetectManualMerge, or `false` to prevent it. Note: In some special cases, misjudgments can occur.
Copy file name to clipboardExpand all lines: templates/swagger/v1_json.tmpl
+9-9
Original file line number
Diff line number
Diff line change
@@ -15569,32 +15569,32 @@
15569
15569
"type": "object",
15570
15570
"properties": {
15571
15571
"allow_manual_merge": {
15572
-
"description": "either `true` to allow mark pr as merged manually, or `false` to prevent it. `has_pull_requests` must be `true`.",
15572
+
"description": "either `true` to allow mark pr as merged manually, or `false` to prevent it.",
15573
15573
"type": "boolean",
15574
15574
"x-go-name": "AllowManualMerge"
15575
15575
},
15576
15576
"allow_merge_commits": {
15577
-
"description": "either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. `has_pull_requests` must be `true`.",
15577
+
"description": "either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.",
15578
15578
"type": "boolean",
15579
15579
"x-go-name": "AllowMerge"
15580
15580
},
15581
15581
"allow_rebase": {
15582
-
"description": "either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. `has_pull_requests` must be `true`.",
15582
+
"description": "either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.",
15583
15583
"type": "boolean",
15584
15584
"x-go-name": "AllowRebase"
15585
15585
},
15586
15586
"allow_rebase_explicit": {
15587
-
"description": "either `true` to allow rebase with explicit merge commits (--no-ff), or `false` to prevent rebase with explicit merge commits. `has_pull_requests` must be `true`.",
15587
+
"description": "either `true` to allow rebase with explicit merge commits (--no-ff), or `false` to prevent rebase with explicit merge commits.",
15588
15588
"type": "boolean",
15589
15589
"x-go-name": "AllowRebaseMerge"
15590
15590
},
15591
15591
"allow_rebase_update": {
15592
-
"description": "either `true` to allow updating pull request branch by rebase, or `false` to prevent it. `has_pull_requests` must be `true`.",
15592
+
"description": "either `true` to allow updating pull request branch by rebase, or `false` to prevent it.",
15593
15593
"type": "boolean",
15594
15594
"x-go-name": "AllowRebaseUpdate"
15595
15595
},
15596
15596
"allow_squash_merge": {
15597
-
"description": "either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. `has_pull_requests` must be `true`.",
15597
+
"description": "either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.",
15598
15598
"type": "boolean",
15599
15599
"x-go-name": "AllowSquash"
15600
15600
},
@@ -15604,7 +15604,7 @@
15604
15604
"x-go-name": "Archived"
15605
15605
},
15606
15606
"autodetect_manual_merge": {
15607
-
"description": "either `true` to enable AutodetectManualMerge, or `false` to prevent it. `has_pull_requests` must be `true`, Note: In some special cases, misjudgments can occur.",
15607
+
"description": "either `true` to enable AutodetectManualMerge, or `false` to prevent it. Note: In some special cases, misjudgments can occur.",
15608
15608
"type": "boolean",
15609
15609
"x-go-name": "AutodetectManualMerge"
15610
15610
},
@@ -15619,7 +15619,7 @@
15619
15619
"x-go-name": "DefaultDeleteBranchAfterMerge"
15620
15620
},
15621
15621
"default_merge_style": {
15622
-
"description": "set to a merge style to be used by this repository: \"merge\", \"rebase\", \"rebase-merge\", or \"squash\". `has_pull_requests` must be `true`.",
15622
+
"description": "set to a merge style to be used by this repository: \"merge\", \"rebase\", \"rebase-merge\", or \"squash\".",
15623
15623
"type": "string",
15624
15624
"x-go-name": "DefaultMergeStyle"
15625
15625
},
@@ -15660,7 +15660,7 @@
15660
15660
"x-go-name": "HasWiki"
15661
15661
},
15662
15662
"ignore_whitespace_conflicts": {
15663
-
"description": "either `true` to ignore whitespace for conflicts, or `false` to not ignore whitespace. `has_pull_requests` must be `true`.",
15663
+
"description": "either `true` to ignore whitespace for conflicts, or `false` to not ignore whitespace.",
0 commit comments