Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit 49e7182

Browse files
authored
deprecate task feature (#51)
* deprecated messageType * deprecate userIdsToAssignTask * update README to warn deprecated feature * remove development step for task feature
1 parent 80cf58f commit 49e7182

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

.github/workflows/development.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,3 @@ jobs:
2525
apiToken: "${{ secrets.API_KEY }}"
2626
roomId: "${{ secrets.ROOM_ID }}"
2727
message: "${{ env.MESSAGE }}"
28-
- uses: ./
29-
with:
30-
apiToken: "${{ secrets.API_KEY }}"
31-
roomId: "${{ secrets.ROOM_ID }}"
32-
message: "this is your task"
33-
messageType: "task"
34-
userIdsToAssignTask: "${{ secrets.USER_ID_1 }}"

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ Chatwork の Room にメッセージを送信する Action です。
2222
message: 'ここにメッセージを書きます。'
2323
```
2424
25+
> [!WARNING]
26+
> v1.1で導入されたタスク機能は、将来のバージョンから削除されます。代わりに[okuzawats/chatwork-task-action](https://github.com/okuzawats/chatwork-task-action)を使用してください。
27+
2528
タスク機能にも対応しました(v1.1〜)。`messageType` と `userIdsToAssignTask` を追加してください。`userIdsToAssignTask` には複数IDを指定できます。カンマ区切りでユーザーIDを指定してください。
2629

2730
```yml

action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ inputs:
1212
roomId:
1313
required: true
1414
description: "Chatroom ID"
15+
# deprecated inputs. this inputs parameter will be removed in the future version.
1516
messageType:
1617
description: "Message type to send. default is message."
1718
type: "choice"
@@ -23,6 +24,7 @@ inputs:
2324
message:
2425
required: true
2526
description: "Message to send"
27+
# deprecated inputs. this inputs parameter will be removed in the future version.
2628
userIdsToAssignTask:
2729
required: false
2830
description: "User Id to be assigned to the task. Or you can specify multiple users, separated by commas. example 1,3,5"
@@ -36,6 +38,11 @@ runs:
3638
fetch-depth: 0
3739
- name: "set up ruby"
3840
uses: "ruby/setup-ruby@v1"
41+
- name: "deprecate messageType"
42+
if: ${{ !github.event.inputs.messageType }}
43+
run: |
44+
echo "::warning::messageType is now deprecated. If you use only message, just remove the parameter. Or if you use task, please use okuzawats/chatwork-task-action instead. In this case, remove userIdsToAssignTask parameter also."
45+
shell: "sh"
3946
- name: "run action"
4047
run: |
4148
ruby $GITHUB_ACTION_PATH/main.rb

0 commit comments

Comments
 (0)