-
Notifications
You must be signed in to change notification settings - Fork 6
47 lines (42 loc) · 1.38 KB
/
planning.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# This workflow file defines automation for managing Rocket 2 planning,
# primarily via the Rocket 2 Planning board:
# https://github.com/ubclaunchpad/rocket2/projects/1?fullscreen=true
name: Planning
on:
issues:
types:
- opened
- assigned
- unassigned
env:
PROJECT_NAME: 'Rocket 2 Planning'
jobs:
move-issue-to-project:
if: ${{ github.event.action == 'opened' }}
runs-on: ubuntu-latest
steps:
- uses: alex-page/[email protected]
with:
project: ${{ env.PROJECT_NAME }}
column: 'Needs triage'
# secrets.GITHUB_TOKEN is supposed to work, but doesn't seem to,
# so a PAT with repo access is provided.
repo-token: ${{ secrets.LP_GH_PUBLIC_REPO_TOKEN }}
issue-planned:
if: ${{ github.event.action == 'assigned' }}
runs-on: ubuntu-latest
steps:
- uses: alex-page/[email protected]
with:
project: ${{ env.PROJECT_NAME }}
column: '🚀 Planned'
repo-token: ${{ secrets.LP_GH_PUBLIC_REPO_TOKEN }}
issue-unplanned:
if: ${{ github.event.action == 'unassigned' }}
runs-on: ubuntu-latest
steps:
- uses: alex-page/[email protected]
with:
project: ${{ env.PROJECT_NAME }}
column: '🗂 Backlog'
repo-token: ${{ secrets.LP_GH_PUBLIC_REPO_TOKEN }}