Skip to content

Commit 21ea41d

Browse files
committed
#0 | Add workflow to close issues that are moved to Done lane
1 parent 09ab1ea commit 21ea41d

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/add_to_project.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Automatically add items to project
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
8+
jobs:
9+
add-to-project:
10+
name: Add issue to project
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/[email protected]
14+
with:
15+
# You can target a project in a different organization
16+
# to the issue
17+
project-url: https://github.com/orgs/avniproject/projects/2/
18+
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}

.github/workflows/issue_states.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: 'Close cards moved to Done Lane'
2+
3+
on:
4+
project_card:
5+
types: [created, edited, moved]
6+
7+
permissions:
8+
repository-projects: read
9+
issues: write
10+
pull-requests: write
11+
12+
jobs:
13+
action:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: dessant/issue-states@v3
17+
with:
18+
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
19+
open-issue-columns: ''
20+
closed-issue-columns: 'Done'
21+
log-output: false

0 commit comments

Comments
 (0)