Skip to content

Commit

Permalink
Merge pull request #388 from WalletConnect/derek/feat/intake
Browse files Browse the repository at this point in the history
feat: moves issues to the Swift board
  • Loading branch information
arein authored Aug 1, 2022
2 parents f238588 + f2f2137 commit 98f378a
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/intake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This workflow moves issues to the Swift board
# when they receive the "accepted" label
# When WalletConnect Org members create issues they
# are automatically "accepted".
# Else they need to manually receive that label during intake.
name: intake

on:
issues:
types: [opened, labeled]
pull_request:
types: [opened, labeled]

jobs:
add-to-project:
name: Add issue to board
if: github.event.action == 'labeled' && github.event.label.name == 'accepted'
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
project-url: https://github.com/orgs/WalletConnect/projects/5
github-token: ${{ secrets.ASSIGN_TO_PROJECT_GITHUB_TOKEN }}
labeled: accepted
label-operator: OR
auto-promote:
name: auto-promote
if: github.event.action == 'opened'
runs-on: ubuntu-latest
steps:
- name: Check if organization member
id: is_organization_member
if: github.event.action == 'opened'
uses: JamesSingleton/[email protected]
with:
organization: WalletConnect
username: ${{ github.event_name != 'pull_request' && github.event.issue.user.login || github.event.sender.login }}
token: ${{ secrets.ASSIGN_TO_PROJECT_GITHUB_TOKEN }}
- name: Label issues
uses: andymckay/labeler@e6c4322d0397f3240f0e7e30a33b5c5df2d39e90
with:
add-labels: "accepted"
repo-token: ${{ secrets.ASSIGN_TO_PROJECT_GITHUB_TOKEN }}

0 comments on commit 98f378a

Please sign in to comment.