Skip to content

Commit 6c89f81

Browse files
authored
[ci] Add an action to automatically close long-inactived issues (#884)
1 parent 7a9ff5e commit 6c89f81

File tree

6 files changed

+58
-2
lines changed

6 files changed

+58
-2
lines changed

.github/workflows/analyze.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright 2025 Samsung Electronics Co., Ltd. All rights reserved.
2+
# Use of this source code is governed by a BSD-style license that can be
3+
# found in the LICENSE file.
4+
15
name: Analyze
26

37
on: [push, pull_request]

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright 2025 Samsung Electronics Co., Ltd. All rights reserved.
2+
# Use of this source code is governed by a BSD-style license that can be
3+
# found in the LICENSE file.
4+
15
name: Build
26

37
on: [push, pull_request]

.github/workflows/close_issue.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Copyright 2025 Samsung Electronics Co., Ltd. All rights reserved.
2+
# Use of this source code is governed by a BSD-style license that can be
3+
# found in the LICENSE file.
4+
5+
# Configuration for close stale issues - https://github.com/actions/stale
6+
7+
name: Close stale issues
8+
9+
permissions:
10+
issues: write
11+
12+
on:
13+
schedule:
14+
- cron: "0 0 * * *"
15+
workflow_dispatch:
16+
17+
jobs:
18+
lock:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/stale@v9
22+
with:
23+
repo-token: ${{ secrets.GITHUB_TOKEN }}
24+
days-before-stale: 60
25+
days-before-close: 0
26+
only-issue-labels: ""
27+
exempt-issue-labels: |
28+
bug
29+
enhancement
30+
keep
31+
close-issue-message: >
32+
This page has been automatically closed since there has not been any recent activity. If you are still experiencing a similar issue, please open a new issue with additional information about the issue.
33+
operations-per-run: 100
34+
stale-pr-message: ""
35+
days-before-pr-stale: -1
36+
days-before-pr-close: -1

.github/workflows/integration_test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright 2025 Samsung Electronics Co., Ltd. All rights reserved.
2+
# Use of this source code is governed by a BSD-style license that can be
3+
# found in the LICENSE file.
4+
15
name: Integration Test
26

37
on:
@@ -30,7 +34,7 @@ jobs:
3034
--recipe ./.github/recipe.yaml \
3135
--generate-emulators \
3236
--run-on-changed-packages \
33-
--base-sha=$(git rev-parse HEAD^)
37+
--base-sha=$(git rev-parse HEAD^)
3438
- name: Run tests for all packages
3539
if: ${{ github.event_name == 'push' }}
3640
run: |

.github/workflows/pull_request_label.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright 2025 Samsung Electronics Co., Ltd. All rights reserved.
2+
# Use of this source code is governed by a BSD-style license that can be
3+
# found in the LICENSE file.
4+
15
name: Pull Request Labeler
26

37
on: [pull_request_target]

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright 2025 Samsung Electronics Co., Ltd. All rights reserved.
2+
# Use of this source code is governed by a BSD-style license that can be
3+
# found in the LICENSE file.
4+
15
name: Release
26

37
on:
@@ -29,7 +33,7 @@ jobs:
2933
uses: lewagon/wait-on-check-action@v1.3.3
3034
with:
3135
ref: ${{ github.sha }}
32-
running-workflow-name: 'release'
36+
running-workflow-name: "release"
3337
repo-token: ${{ secrets.GITHUB_TOKEN }}
3438
wait-interval: 180 # seconds
3539
allowed-conclusions: success

0 commit comments

Comments
 (0)