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
feat: allow repositories input to be comma or newline-separated (actions#169)
Resolvesactions#106
- Fixes the parsing to cope with whitespace in the input string.
- Allows the input to be comma or newline-separated. (I've done this for
all array-type inputs in my own actions, but I'm happy to remove this if
you only want to support comma-separated.)
- Added tests for parsing comma and newline-separated inputs.
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -163,7 +163,9 @@ jobs:
163
163
app-id: ${{ vars.APP_ID }}
164
164
private-key: ${{ secrets.PRIVATE_KEY }}
165
165
owner: ${{ github.repository_owner }}
166
-
repositories: "repo1,repo2"
166
+
repositories: |
167
+
repo1
168
+
repo2
167
169
- uses: peter-evans/create-or-update-comment@v3
168
170
with:
169
171
token: ${{ steps.app-token.outputs.token }}
@@ -302,7 +304,7 @@ steps:
302
304
303
305
### `repositories`
304
306
305
-
**Optional:** Comma-separated list of repositories to grant access to.
307
+
**Optional:** Comma or newline-separated list of repositories to grant access to.
306
308
307
309
> [!NOTE]
308
310
> If `owner` is set and `repositories` is empty, access will be scoped to all repositories in the provided repository owner's installation. If `owner` and `repositories` are empty, access will be scoped to only the current repository.
0 commit comments