Skip to content

Commit 8e05706

Browse files
authored
feat: add random to (#35)
* feat: add random to * add actions * up * up version * add less
1 parent 3836013 commit 8e05706

File tree

20 files changed

+1768
-158
lines changed

20 files changed

+1768
-158
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## v1.9
2+
3+
`2021.01.11`
4+
5+
- feat: add random to. [#35](https://github.com/actions-cool/issues-helper/pull/35)
6+
17
## v1.8
28

39
`2021.01.07`

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 xrkffgg
3+
Copyright (c) 2020-present xrkffgg
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.en-US.md

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,13 @@ jobs:
134134
runs-on: ubuntu-latest
135135
steps:
136136
- name: Add assigness
137-
uses: actions-cool/issues-helper@v1.8
137+
uses: actions-cool/issues-helper@v1.9
138138
with:
139139
actions: 'add-assignees'
140140
token: ${{ secrets.GITHUB_TOKEN }}
141141
issue-number: ${{ github.event.issue.number }}
142142
assignees: 'xxx' or 'xx1,xx2'
143+
random-to: 1
143144
```
144145
145146
| Param | Desc | Type | Required |
@@ -148,6 +149,7 @@ jobs:
148149
| token | [Token explain](#token) | string | ✔ |
149150
| issue-number | The number of issue | number | ✔ |
150151
| assignees | Designated person. No operation when no input or empty character | string | ✖ |
152+
| random-to | When set, it will be randomly selected in assignees | number | ✖ |
151153
152154
- `actions` support multiple and separated by comma. Like: `add-assignees,add-labels`
153155
- The `name` can be modified according to the actual situation
@@ -174,7 +176,7 @@ jobs:
174176
if: contains(github.event.issue.body, 'xxx') == false
175177
steps:
176178
- name: Add labels
177-
uses: actions-cool/issues-helper@v1.8
179+
uses: actions-cool/issues-helper@v1.9
178180
with:
179181
actions: 'add-labels'
180182
token: ${{ secrets.GITHUB_TOKEN }}
@@ -199,7 +201,7 @@ Close the specified issue.
199201

200202
```yml
201203
- name: Close issue
202-
uses: actions-cool/issues-helper@v1.8
204+
uses: actions-cool/issues-helper@v1.9
203205
with:
204206
actions: 'close-issue'
205207
token: ${{ secrets.GITHUB_TOKEN }}
@@ -232,7 +234,7 @@ jobs:
232234
if: github.event.label.name == 'xxx'
233235
steps:
234236
- name: Create comment
235-
uses: actions-cool/issues-helper@v1.8
237+
uses: actions-cool/issues-helper@v1.9
236238
with:
237239
actions: 'create-comment'
238240
token: ${{ secrets.GITHUB_TOKEN }}
@@ -276,7 +278,7 @@ jobs:
276278
runs-on: ubuntu-latest
277279
steps:
278280
- name: Create issue
279-
uses: actions-cool/issues-helper@v1.8
281+
uses: actions-cool/issues-helper@v1.9
280282
with:
281283
actions: 'create-issue'
282284
token: ${{ secrets.GITHUB_TOKEN }}
@@ -295,6 +297,7 @@ jobs:
295297
| body | The body of the new issue | string | ✖ |
296298
| labels | The labels for the new issue | string | ✖ |
297299
| assignees | The assignees for the new issue | string | ✖ |
300+
| random-to | When set, it will be randomly selected in assignees | number | ✖ |
298301
| contents | Add [reaction](#reactions-types) | string | ✖ |
299302

300303
- `title` default is `Default Title`
@@ -308,7 +311,7 @@ According to [`comment-id`](#comment-id) delete the specified comment.
308311

309312
```yml
310313
- name: Delete comment
311-
uses: actions-cool/issues-helper@v1.8
314+
uses: actions-cool/issues-helper@v1.9
312315
with:
313316
actions: 'delete-comment'
314317
token: ${{ secrets.GITHUB_TOKEN }}
@@ -340,7 +343,7 @@ jobs:
340343
if: github.event.label.name == 'invalid'
341344
steps:
342345
- name: Lock issue
343-
uses: actions-cool/issues-helper@v1.8
346+
uses: actions-cool/issues-helper@v1.9
344347
with:
345348
actions: 'lock-issue'
346349
token: ${{ secrets.GITHUB_TOKEN }}
@@ -371,7 +374,7 @@ jobs:
371374
runs-on: ubuntu-latest
372375
steps:
373376
- name: mark-duplicate
374-
uses: actions-cool/issues-helper@v1.8
377+
uses: actions-cool/issues-helper@v1.9
375378
with:
376379
actions: 'mark-duplicate'
377380
token: ${{ secrets.GITHUB_TOKEN }}
@@ -399,7 +402,7 @@ Open the specified issue.
399402

400403
```yml
401404
- name: Open issue
402-
uses: actions-cool/issues-helper@v1.8
405+
uses: actions-cool/issues-helper@v1.9
403406
with:
404407
actions: 'open-issue'
405408
token: ${{ secrets.GITHUB_TOKEN }}
@@ -420,7 +423,7 @@ Remove the person designated by issue.
420423

421424
```yml
422425
- name: Remove assignees
423-
uses: actions-cool/issues-helper@v1.8
426+
uses: actions-cool/issues-helper@v1.9
424427
with:
425428
actions: 'remove-assignees'
426429
token: ${{ secrets.GITHUB_TOKEN }}
@@ -443,7 +446,7 @@ Remove the specified labels.
443446

444447
```yml
445448
- name: Remove labels
446-
uses: actions-cool/issues-helper@v1.8
449+
uses: actions-cool/issues-helper@v1.9
447450
with:
448451
actions: 'remove-labels'
449452
token: ${{ secrets.GITHUB_TOKEN }}
@@ -468,7 +471,7 @@ Replace the labels of issue.
468471

469472
```yml
470473
- name: Set labels
471-
uses: actions-cool/issues-helper@v1.8
474+
uses: actions-cool/issues-helper@v1.9
472475
with:
473476
actions: 'set-labels'
474477
token: ${{ secrets.GITHUB_TOKEN }}
@@ -491,7 +494,7 @@ Unlock the specified issue.
491494

492495
```yml
493496
- name: Unlock issue
494-
uses: actions-cool/issues-helper@v1.8
497+
uses: actions-cool/issues-helper@v1.9
495498
with:
496499
actions: 'unlock-issue'
497500
token: ${{ secrets.GITHUB_TOKEN }}
@@ -524,7 +527,7 @@ jobs:
524527
runs-on: ubuntu-latest
525528
steps:
526529
- name: Update comment
527-
uses: actions-cool/issues-helper@v1.8
530+
uses: actions-cool/issues-helper@v1.9
528531
with:
529532
actions: 'update-comment'
530533
token: ${{ secrets.GITHUB_TOKEN }}
@@ -552,7 +555,7 @@ Update the specified issue according to the `issue-number`.
552555

553556
```yml
554557
- name: Update issue
555-
uses: actions-cool/issues-helper@v1.8
558+
uses: actions-cool/issues-helper@v1.9
556559
with:
557560
actions: 'update-issue'
558561
token: ${{ secrets.GITHUB_TOKEN }}
@@ -602,7 +605,7 @@ jobs:
602605
runs-on: ubuntu-latest
603606
steps:
604607
- name: welcome
605-
uses: actions-cool/issues-helper@v1.8
608+
uses: actions-cool/issues-helper@v1.9
606609
with:
607610
actions: 'welcome'
608611
token: ${{ secrets.GITHUB_TOKEN }}
@@ -645,7 +648,7 @@ jobs:
645648
runs-on: ubuntu-latest
646649
steps:
647650
- name: check-inactive
648-
uses: actions-cool/issues-helper@v1.8
651+
uses: actions-cool/issues-helper@v1.9
649652
with:
650653
actions: 'check-inactive'
651654
token: ${{ secrets.GITHUB_TOKEN }}
@@ -698,7 +701,7 @@ jobs:
698701
runs-on: ubuntu-latest
699702
steps:
700703
- name: check-issue
701-
uses: actions-cool/issues-helper@v1.8
704+
uses: actions-cool/issues-helper@v1.9
702705
with:
703706
actions: 'check-issue'
704707
token: ${{ secrets.GITHUB_TOKEN }}
@@ -737,7 +740,7 @@ jobs:
737740
runs-on: ubuntu-latest
738741
steps:
739742
- name: close-issues
740-
uses: actions-cool/issues-helper@v1.8
743+
uses: actions-cool/issues-helper@v1.9
741744
with:
742745
actions: 'close-issues'
743746
token: ${{ secrets.GITHUB_TOKEN }}
@@ -771,7 +774,7 @@ Find the current warehouse issue No. 1, the creator is k and the content contain
771774

772775
```yml
773776
- name: Find comments
774-
uses: actions-cool/issues-helper@v1.8
777+
uses: actions-cool/issues-helper@v1.9
775778
with:
776779
actions: 'find-comments'
777780
token: ${{ secrets.GITHUB_TOKEN }}
@@ -819,7 +822,7 @@ jobs:
819822
runs-on: ubuntu-latest
820823
steps:
821824
- name: lock-issues
822-
uses: actions-cool/issues-helper@v1.8
825+
uses: actions-cool/issues-helper@v1.9
823826
with:
824827
actions: 'lock-issues'
825828
token: ${{ secrets.GITHUB_TOKEN }}
@@ -865,7 +868,7 @@ jobs:
865868
runs-on: ubuntu-latest
866869
steps:
867870
- name: month-statistics
868-
uses: actions-cool/issues-helper@v1.8
871+
uses: actions-cool/issues-helper@v1.9
869872
with:
870873
actions: 'month-statistics'
871874
token: ${{ secrets.GITHUB_TOKEN }}
@@ -908,7 +911,7 @@ jobs:
908911
if: github.event.label.name == 'watch'
909912
steps:
910913
- name: find comments
911-
uses: actions-cool/issues-helper@v1.8
914+
uses: actions-cool/issues-helper@v1.9
912915
id: fcid
913916
with:
914917
actions: 'find-comments'
@@ -919,7 +922,7 @@ jobs:
919922
920923
- name: create comment
921924
if: ${{ steps.fcid.outputs.comments.length == 0 }}
922-
uses: actions-cool/issues-helper@v1.8
925+
uses: actions-cool/issues-helper@v1.9
923926
with:
924927
actions: 'create-comment'
925928
token: ${{ secrets.GITHUB_TOKEN }}
@@ -928,7 +931,7 @@ jobs:
928931
929932
- name: update comment
930933
if: ${{ steps.fcid.outputs.comments.length == 1 }}
931-
uses: actions-cool/issues-helper@v1.8
934+
uses: actions-cool/issues-helper@v1.9
932935
with:
933936
actions: 'update-comment'
934937
token: ${{ secrets.GITHUB_TOKEN }}
@@ -960,7 +963,7 @@ When the token is not filled in actions or the corresponding secrets are not add
960963

961964
```yml
962965
- name: Create issue
963-
uses: actions-cool/issues-helper@v1.8
966+
uses: actions-cool/issues-helper@v1.9
964967
id: createissue
965968
with:
966969
actions: 'create-issue'

0 commit comments

Comments
 (0)