Commit 796b88d
authored
feat: allow repositories input to be comma or newline-separated (actions#169)
Resolves actions#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.1 parent 3378cda commit 796b88d
File tree
10 files changed
+75
-37
lines changed- dist
- lib
- tests
- snapshots
10 files changed
+75
-37
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
167 | 169 | | |
168 | 170 | | |
169 | 171 | | |
| |||
302 | 304 | | |
303 | 305 | | |
304 | 306 | | |
305 | | - | |
| 307 | + | |
306 | 308 | | |
307 | 309 | | |
308 | 310 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39700 | 39700 | | |
39701 | 39701 | | |
39702 | 39702 | | |
39703 | | - | |
39704 | | - | |
39705 | | - | |
| 39703 | + | |
| 39704 | + | |
| 39705 | + | |
39706 | 39706 | | |
39707 | 39707 | | |
| 39708 | + | |
| 39709 | + | |
39708 | 39710 | | |
39709 | | - | |
| 39711 | + | |
39710 | 39712 | | |
39711 | 39713 | | |
39712 | | - | |
| 39714 | + | |
39713 | 39715 | | |
39714 | 39716 | | |
39715 | 39717 | | |
39716 | 39718 | | |
39717 | 39719 | | |
39718 | | - | |
| 39720 | + | |
39719 | 39721 | | |
39720 | 39722 | | |
39721 | 39723 | | |
39722 | | - | |
| 39724 | + | |
39723 | 39725 | | |
39724 | 39726 | | |
39725 | | - | |
| 39727 | + | |
39726 | 39728 | | |
39727 | 39729 | | |
39728 | 39730 | | |
39729 | | - | |
| 39731 | + | |
39730 | 39732 | | |
39731 | 39733 | | |
39732 | 39734 | | |
| |||
39735 | 39737 | | |
39736 | 39738 | | |
39737 | 39739 | | |
39738 | | - | |
| 39740 | + | |
39739 | 39741 | | |
39740 | 39742 | | |
39741 | 39743 | | |
39742 | | - | |
| 39744 | + | |
39743 | 39745 | | |
39744 | 39746 | | |
39745 | 39747 | | |
| |||
39789 | 39791 | | |
39790 | 39792 | | |
39791 | 39793 | | |
39792 | | - | |
| 39794 | + | |
39793 | 39795 | | |
39794 | 39796 | | |
39795 | 39797 | | |
39796 | 39798 | | |
39797 | 39799 | | |
39798 | 39800 | | |
39799 | 39801 | | |
39800 | | - | |
| 39802 | + | |
39801 | 39803 | | |
39802 | 39804 | | |
39803 | 39805 | | |
| |||
39847 | 39849 | | |
39848 | 39850 | | |
39849 | 39851 | | |
39850 | | - | |
| 39852 | + | |
39851 | 39853 | | |
39852 | 39854 | | |
39853 | 39855 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
| 28 | + | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | | - | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
39 | | - | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
48 | | - | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
53 | | - | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
58 | | - | |
| 60 | + | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
63 | | - | |
| 65 | + | |
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
| |||
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
76 | | - | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
80 | | - | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| |||
144 | 146 | | |
145 | 147 | | |
146 | 148 | | |
147 | | - | |
| 149 | + | |
148 | 150 | | |
149 | 151 | | |
150 | 152 | | |
| |||
154 | 156 | | |
155 | 157 | | |
156 | 158 | | |
157 | | - | |
| 159 | + | |
158 | 160 | | |
159 | 161 | | |
160 | 162 | | |
161 | 163 | | |
162 | 164 | | |
163 | 165 | | |
164 | | - | |
| 166 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
137 | 156 | | |
138 | 157 | | |
139 | 158 | | |
| |||
142 | 161 | | |
143 | 162 | | |
144 | 163 | | |
145 | | - | |
| 164 | + | |
146 | 165 | | |
147 | 166 | | |
148 | 167 | | |
| |||
Binary file not shown.
0 commit comments