Skip to content

Commit 1a81f7f

Browse files
authored
ci: created GitHub Issue Sync workflow (#55)
Created the configuration file for github-issue-sync that will assign the github issues to the project of OpsTooling
1 parent 468a54b commit 1a81f7f

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: GitHub Issue Sync
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
- labeled
8+
workflow_dispatch:
9+
inputs:
10+
excludeClosed:
11+
description: 'Exclude closed issues in the sync.'
12+
type: boolean
13+
default: true
14+
15+
jobs:
16+
sync:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Generate token
20+
id: generate_token
21+
uses: tibdex/github-app-token@v1
22+
with:
23+
app_id: ${{ secrets.PROJECT_APP_ID }}
24+
private_key: ${{ secrets.PROJECT_APP_KEY }}
25+
- name: Sync issues
26+
uses: paritytech/[email protected]
27+
with:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
PROJECT_TOKEN: ${{ steps.generate_token.outputs.token }}
30+
project: 16
31+
project_field: Tool
32+
project_value: github-issue-sync

0 commit comments

Comments
 (0)