Skip to content

Commit

Permalink
added github-issue-sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Bullrich committed Jul 6, 2023
1 parent ed87855 commit 57e8a26
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/github-issue-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: GitHub Issue Sync

on:
issues:
types:
- opened
- labeled
workflow_dispatch:
inputs:
excludeClosed:
description: 'Exclude closed issues in the sync.'
type: boolean
default: true

jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.PROJECT_APP_ID }}
private_key: ${{ secrets.PROJECT_APP_KEY }}
- name: Sync issues
uses: paritytech/github-issue-sync@v0.3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PROJECT_TOKEN: ${{ steps.generate_token.outputs.token }}
project: 16
project_field: Tool
project_value: review-bot
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# review-bot

[![GitHub Issue Sync](/~https://github.com/paritytech/review-bot/actions/workflows/github-issue-sync.yml/badge.svg)](/~https://github.com/paritytech/review-bot/actions/workflows/github-issue-sync.yml)

Have custom review rules for PRs with auto assignment.

0 comments on commit 57e8a26

Please sign in to comment.