Skip to content

Commit 12af5bd

Browse files
authored
Merge pull request #2891 from OSInside/stale_issues_and_prs_handling
Add handling for stale issues and PRs
2 parents 57b7a06 + 78bd04c commit 12af5bd

File tree

3 files changed

+26
-14
lines changed

3 files changed

+26
-14
lines changed

.github/workflows/ci-config-functions.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,21 @@ jobs:
2525
strategy:
2626
fail-fast: false
2727
matrix:
28+
python-version: [3.11]
2829
container_runtime:
2930
- PODMAN
3031
steps:
31-
- uses: actions/cache@v3
32-
with:
33-
path: |
34-
~/.cache/pip
35-
~/.cache/pypoetry
36-
37-
- name: checkout source code
38-
uses: actions/checkout@v3
39-
- name: set up Python
32+
- uses: actions/checkout@v3
33+
- name: Python${{ matrix.python-version }}
4034
uses: actions/setup-python@v4
35+
with:
36+
python-version: ${{ matrix.python-version }}
4137
- name: Install Poetry
4238
run: |
43-
sudo python -m pip install poetry
44-
39+
python -m pip install --upgrade pip
40+
python -m pip install poetry
41+
sudo python -m pip install pytest-container
4542
- name: Run the scripts integration tests
46-
run: sudo make test_scripts
43+
run: make test_scripts
4744
env:
4845
CONTAINER_RUNTIME: ${{ matrix.container_runtime }}

.github/workflows/ci-stale.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: 'Mark stale issues and PRs with the stale label'
2+
on:
3+
schedule:
4+
- cron: '30 1 * * *'
5+
6+
jobs:
7+
stale:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/stale@v10
11+
with:
12+
stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. stale label was set.'
13+
stale-pr-message: 'This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed as part of the community meeting.'
14+
days-before-stale: 60
15+
days-before-pr-close: -1
16+
days-before-issue-close: -1

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,7 @@ docs_suse: setup
110110
bash -c 'pushd doc/build && daps -d DC-kiwi html'
111111

112112
test_scripts: setup
113-
poetry run bash -c \
114-
'pip install pytest-container && pushd test/scripts && pytest -s -vv'
113+
poetry run bash -c 'pushd test/scripts && sudo pytest -s -vv'
115114

116115
check: setup
117116
# shell code checks

0 commit comments

Comments
 (0)