-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (27 loc) · 1009 Bytes
/
on-close-issues.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
# On closed issue we label it as Closed and Done. It goes to the Project Triage column Done.
name: Label closed issues with Closed and Done
# Controls when the workflow will run
on:
# Trigger workflow on events with issues
issues:
# Define what type of issue events trigger the workflow
types:
- closed
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# First job is dealing with labeling the issue in question
label_issues:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Label issues
uses: andymckay/[email protected]
with:
add-labels: 'Done, Closed'
remove-labels: 'New, Needs Triage'
- uses: alex-page/[email protected]
with:
project: Triage
column: Closed
repo-token: ${{ secrets.GHPROJECT_TOKEN }}