forked from mattermost/mattermost-plugin-github
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.21 KB
/
tracker.yaml
File metadata and controls
39 lines (37 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: YC Tracker
on:
pull_request:
types:
- opened
- reopened
- ready_for_review
- synchronize
- closed
jobs:
transit-task:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Move Task When PR Opened
if: github.event.action != 'closed' && github.event.pull_request.draft == false
uses: evrone-erp/yandex-tracker-action@c61ea81f8c68f0eea0f31bfbb620098e3f83fada
with:
token: ${{secrets.GITHUB_TOKEN}}
yandex_org_id: ${{ secrets.YANDEX_ORG_ID }}
yandex_oauth2_token: ${{ secrets.YANDEX_OAUTH2_TOKEN }}
task_url: true
ignore: ERP-31,ERP-32
to: 'In Review'
- name: Move Task When PR Merged
if: github.event.pull_request.merged == true
uses: evrone-erp/yandex-tracker-action@c61ea81f8c68f0eea0f31bfbb620098e3f83fada
with:
token: ${{secrets.GITHUB_TOKEN}}
yandex_org_id: ${{ secrets.YANDEX_ORG_ID }}
yandex_oauth2_token: ${{ secrets.YANDEX_OAUTH2_TOKEN }}
task_url: true
ignore: ERP-31,ERP-32
to: 'Merged'