-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #388 from WalletConnect/derek/feat/intake
feat: moves issues to the Swift board
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |