Skip to content

Commit 271a4e5

Browse files
committed
➕ automatically add open issues to project
1 parent 37fed7a commit 271a4e5

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/new_issue_first_comment.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Auto Comment on New Issues
33
on:
44
issues:
55
types: [opened]
6+
env:
7+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8+
MY_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69

710
jobs:
811
auto-comment:
@@ -34,4 +37,18 @@ jobs:
3437
owner: context.repo.owner,
3538
repo: context.repo.repo,
3639
body: commentBody
37-
});
40+
});
41+
move-issue-to-repository-project-column:
42+
name: Move issues to repository project column
43+
runs-on: ubuntu-latest
44+
permissions:
45+
issues: write
46+
repository-projects: write
47+
steps:
48+
- name: Assign new issues to project new-features
49+
uses: actions/[email protected]
50+
with:
51+
github-token: ${{ secrets.GITHUB_TOKEN }}
52+
project-url: 'https://github.com/users/nanuxbe/projects/1'
53+
labeled: this-is-a-dirty-hack-but-i-m-getting-tired-of-this
54+
label-operator: NOT

0 commit comments

Comments
 (0)