-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (37 loc) · 1.18 KB
/
bot-autoassign-stale-pr.yml
File metadata and controls
44 lines (37 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Stale PR Management
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
permissions:
issues: write
pull-requests: write
jobs:
manage-stale-prs-python:
runs-on: ubuntu-latest
steps:
- name: Generate GitHub App token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.OPENWISP_BOT_APP_ID }}
private-key: ${{ secrets.OPENWISP_BOT_PRIVATE_KEY }}
- name: Checkout openwisp-utils bot branch
uses: actions/checkout@v4
with:
repository: Eeshu-Yadav/openwisp-utils
ref: issues/571-automate-assigning-unassigning-issues
sparse-checkout: |
.github/actions/bot-autoassign
sparse-checkout-cone-mode: false
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: pip install "PyGithub>=2.0.0"
- name: Run stale PR bot
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
REPOSITORY: ${{ github.repository }}
run: python .github/actions/bot-autoassign/__main__.py stale_pr