Skip to content
This repository has been archived by the owner on Feb 11, 2024. It is now read-only.

Commit

Permalink
feat: add project issues workflow, remove intake
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier Basty committed Jun 9, 2023
1 parent f73f16c commit 5ee587c
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 48 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:

pull_request:
paths-ignore:
- ".github/**"
- "spec/**"
- "terraform/**"
- "*.md"
Expand All @@ -14,6 +15,7 @@ on:
branches:
- "main"
paths-ignore:
- ".github/**"
- "spec/**"
- "terraform/**"
- "*.md"
Expand Down
48 changes: 0 additions & 48 deletions .github/workflows/intake.yml

This file was deleted.

64 changes: 64 additions & 0 deletions .github/workflows/issues.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Project Workflows

on:
issues:
types:
- reopened
- closed
pull_request_target:
types:
- opened
- edited
- reopened
- synchronize

env:
project_id: 20
new: πŸ†• New
backlog: πŸ—ƒ Backlog
prioritized: πŸ”– Prioritized
in_progress: πŸ— In progress
blocked: πŸ›‘ Blocked
in_review: πŸ‘€ In review
done: βœ… Done

jobs:

issue_reopened:
name: Issue Reopened
runs-on: ubuntu-latest
if: github.event_name == 'issues' && github.event.action == 'reopened'
steps:
- name: Move issue to ${{ env.prioritized }}
uses: leonsteinhaeuser/project-beta-automations@v2.1.0
with:
gh_token: ${{ secrets.GITHUB_TOKEN }}
organization: WalletConnect
project_id: ${{ env.project_id }}
resource_node_id: ${{ github.event.issue.node_id }}
status_value: ${{ env.prioritized }}

issue_closed:
name: issue_closed
runs-on: ubuntu-latest
if: github.event_name == 'issues' && github.event.action == 'closed'
steps:
- name: Moved issue to ${{ env.done }}
uses: leonsteinhaeuser/project-beta-automations@v2.1.0
with:
gh_token: ${{ secrets.GITHUB_TOKEN }}
organization: WalletConnect
project_id: ${{ env.project_id }}
resource_node_id: ${{ github.event.issue.node_id }}
status_value: ${{ env.done }}

check_pull_requests:
name: Check linked issues
runs-on: ubuntu-latest
if: github.event_name == 'pull_request_target'
permissions:
issues: read
pull-requests: write
steps:
- uses: nearform-actions/github-action-check-linked-issues@v1
id: check-linked-issues

0 comments on commit 5ee587c

Please sign in to comment.