Skip to content

Commit

Permalink
Merge pull request #4 from tarosky/feature/backlong
Browse files Browse the repository at this point in the history
backlog is now workflow
  • Loading branch information
fumikito authored Aug 2, 2023
2 parents ddab408 + d34878e commit 732abba
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 32 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/backlog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Backlog Notification

on:
workflow_call:
inputs:
project:
description: 'Project ID of backlog. e.g. PJ_STANDARD'
required: true
type: string
host:
description: 'Backlog API host'
default: 'tarosky.backlog.jp'
type: string

jobs:
npm-lint:
runs-on: ubuntu-latest
steps:
- name: Send Notification to Backlog
uses: bicstone/backlog-notify@master
env:
PROJECT_KEY: ${{ inputs.project }}
API_HOST: ${{ inputs.host }}
API_KEY: ${{ secrets.BACKLOG_API_KEY }}
29 changes: 13 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,22 @@ jobs:
assets:
uses: tarosky/workflows/.github/workflows/npm.yml@main
with:
package: package
```

### backlog

Backlogの課題番号がコミットメッセージに含まれている場合、通知を行います。tarosky-bot というユーザーがBacklogの当該プロジェクトのメンバーになっている必要があります。

```
jobs:
notify:
uses: tarosky/workflows/.github/workflows/backlog.yml@main
with:
project: PJ_STANDARD
```


## 複合アクション

複合アクションは `job.steps` で指定します。workflowと同様、オプション項目を`with`で指定します。
Expand All @@ -64,21 +76,6 @@ jobs:
uses: tarosky/workflows/actions/distignore@main
```

### backlog

Backlogの課題番号がコミットメッセージに含まれている場合、通知を行います。tarosky-bot というユーザーがBacklogの当該プロジェクトのメンバーになっている必要があります。

```
jobs:
test:
steps:
# stepのどこかに以下を記載。
- name: Notify Backlog
uses: tarosky/workflows/actions/backlog@main
with:
project: PJ_STANDARD
```

-----

W.I.P
16 changes: 0 additions & 16 deletions actions/backlog/action.yml

This file was deleted.

0 comments on commit 732abba

Please sign in to comment.