Skip to content

Commit 70671e2

Browse files
committed
ci: added github-issue-sync
1 parent 2a33b00 commit 70671e2

File tree

2 files changed

+33
-0
lines changed

2 files changed

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

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Introduction
22

3+
[![GitHub Issue Sync](https://github.com/paritytech/pipeline-scripts/actions/workflows/github-issue-sync.yml/badge.svg)](https://github.com/paritytech/pipeline-scripts/actions/workflows/github-issue-sync.yml)
4+
35
This repository hosts reusable scripts (that is, scripts which are useful for
46
many repositories) for our CI pipelines.
57

0 commit comments

Comments
 (0)