|
17 | 17 | schedule: |
18 | 18 | - cron: '*/10 * * * *' |
19 | 19 | workflow_dispatch: |
| 20 | + |
20 | 21 | jobs: |
21 | 22 | automerge: |
22 | | - if: github.repository_owner == 'dapr' |
23 | | - name: Automerge and update PRs. |
24 | | - runs-on: ubuntu-latest |
25 | | - steps: |
26 | | - - name: Checkout repo |
27 | | - uses: actions/checkout@v6 |
28 | | - - name: Install dependencies |
29 | | - run: pip install PyGithub |
30 | | - - name: Automerge and update |
31 | | - env: |
32 | | - MAINTAINERS: berndverst,wcs1only |
33 | | - GITHUB_TOKEN: ${{ secrets.DAPR_BOT_TOKEN }} |
34 | | - run: python ./.github/scripts/automerge.py |
| 23 | + uses: dapr/.github/.github/workflows/automerge.yaml@main |
| 24 | + with: |
| 25 | + maintainer-teams: python-sdk-maintainers |
| 26 | + secrets: |
| 27 | + dapr_bot_token: ${{ secrets.DAPR_BOT_TOKEN }} |
| 28 | + |
35 | 29 | prune_stale: |
36 | | - name: Prune Stale |
37 | | - runs-on: ubuntu-latest |
38 | | - steps: |
39 | | - - name: Prune Stale |
40 | | - uses: actions/stale@v5 |
41 | | - with: |
42 | | - repo-token: ${{ secrets.DAPR_BOT_TOKEN }} |
43 | | - # Different amounts of days for issues/PRs are not currently supported but there is a PR |
44 | | - # open for it: https://github.com/actions/stale/issues/214 |
45 | | - days-before-stale: 60 |
46 | | - days-before-close: 7 |
47 | | - stale-issue-message: > |
48 | | - This issue has been automatically marked as stale because it has not had activity in the |
49 | | - last 60 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity |
50 | | - occurs. Thank you for your contributions. |
51 | | - close-issue-message: > |
52 | | - This issue has been automatically closed because it has not had activity in the |
53 | | - last 67 days. If this issue is still valid, please ping a maintainer and ask them to label it as pinned, good first issue, help wanted or triaged/resolved. |
54 | | - Thank you for your contributions. |
55 | | - stale-pr-message: > |
56 | | - This pull request has been automatically marked as stale because it has not had |
57 | | - activity in the last 60 days. It will be closed in 7 days if no further activity occurs. Please |
58 | | - feel free to give a status update now, ping for review, or re-open when it's ready. |
59 | | - Thank you for your contributions! |
60 | | - close-pr-message: > |
61 | | - This pull request has been automatically closed because it has not had |
62 | | - activity in the last 67 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. |
63 | | - Thank you for your contributions! |
64 | | - stale-issue-label: 'stale' |
65 | | - exempt-issue-labels: 'pinned,good first issue,help wanted,triaged/resolved' |
66 | | - stale-pr-label: 'stale' |
67 | | - exempt-pr-labels: 'pinned' |
68 | | - operations-per-run: 500 |
69 | | - ascending: true |
| 30 | + uses: dapr/.github/.github/workflows/prune-stale.yaml@main |
| 31 | + with: |
| 32 | + days-before-issue-stale: 60 |
| 33 | + days-before-pr-stale: 60 |
| 34 | + days-before-issue-close: 7 |
| 35 | + days-before-pr-close: 7 |
| 36 | + secrets: |
| 37 | + dapr_bot_token: ${{ secrets.DAPR_BOT_TOKEN }} |
0 commit comments