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
# In the first period after branching the release branch, we typically want to include all changes from `main` also in the release branch. This workflow automatically creates a PR every Monday to merge main into the release branch.
4
+
# Later in the release cycle we should stop this practice to avoid landing risky changes by disabling this workflow. To do so, disable the workflow as described in https://docs.github.com/en/actions/managing-workflow-runs-and-deployments/managing-workflow-runs/disabling-and-enabling-a-workflow
5
+
6
+
on:
7
+
schedule:
8
+
- cron: '0 0 * * MON'
9
+
workflow_dispatch:
10
+
11
+
jobs:
12
+
create_merge_pr:
13
+
name: Create PR to merge main into release branch
14
+
runs-on: ubuntu-latest
15
+
if: (github.event_name == 'schedule' && github.repository == 'swiftlang/swift-format') || (github.event_name != 'schedule') # Ensure that we don't run this on a schedule in a fork
--title 'Merge `main` into `${{ steps.variables.outputs.release_branch }}`' \
53
+
--body 'This PR was automatically opened by a GitHub action. Review the changes included in this PR and determine if they should be included in the release branch. If yes, merge the PR. Otherwise revert changes that should not be included on this branch.'
Copy file name to clipboardExpand all lines: Documentation/Configuration.md
+24-1Lines changed: 24 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -204,7 +204,30 @@ switch someValue {
204
204
---
205
205
206
206
### `reflowMultilineStringLiterals`
207
-
**type:**`string`
207
+
208
+
> [!NOTE]
209
+
> This setting should be specified as a string value (e.g. `"never"`)
210
+
> For backward compatibility with swift-format version 601.0.0, the configuration also accepts the legacy object format where the setting is specified as an object with a single key (e.g., `{ "never": {} }`).
211
+
212
+
**type:**`string` or `object` (legacy)
213
+
214
+
**example:**
215
+
216
+
For all versions above 601.0.0, the configuration should be specified as a string, for example:
217
+
```json
218
+
{
219
+
"reflowMultilineStringLiterals": "never"
220
+
}
221
+
```
222
+
223
+
For version 601.0.0, the configuration should be specified as an object, for example:
224
+
```json
225
+
{
226
+
"reflowMultilineStringLiterals": {
227
+
"never": {}
228
+
}
229
+
}
230
+
```
208
231
209
232
**description:** Determines how multiline string literals should reflow when formatted.
0 commit comments