Skip to content

Commit f369d60

Browse files
committed
Add actions to automatic issue management
1 parent 44a9dff commit f369d60

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

.github/workflows/stale.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: 'Close stale issues and PRs'
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 4 * * *'
7+
8+
jobs:
9+
stale:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Checkout script repository
17+
uses: actions/checkout@v4
18+
with:
19+
repository: Seeed-Studio/sync-github-all-issues
20+
path: ci
21+
22+
- name: Run script
23+
run: ./ci/tools/stale.sh
24+
env:
25+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/stale_issues.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Automate Issue Management
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
- edited
8+
- assigned
9+
- unassigned
10+
- labeled
11+
- unlabeled
12+
- reopened
13+
14+
jobs:
15+
add_issue_to_project:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Add issue to GitHub Project
19+
uses: actions/[email protected]
20+
with:
21+
project-url: https://github.com/orgs/Seeed-Studio/projects/17
22+
github-token: ${{ secrets.ISSUE_ASSEMBLE }}
23+
labeled: bug
24+
label-operator: NOT

0 commit comments

Comments
 (0)