From 7513aa3362d7a2477fc444d4b5fb74f0c5f03873 Mon Sep 17 00:00:00 2001 From: tongke <124763920+tongke6@users.noreply.github.com> Date: Wed, 5 Mar 2025 13:44:28 +0800 Subject: [PATCH] chore: refine oscp workflow (#490) --- .github/workflows/oscp.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/oscp.yml b/.github/workflows/oscp.yml index 403918b..8e828fb 100644 --- a/.github/workflows/oscp.yml +++ b/.github/workflows/oscp.yml @@ -2,15 +2,24 @@ name: Unassign Stale OSCP Issues on: schedule: - - cron: '0 0 * * *' # Run at midnight every day + - cron: "0 0 * * *" # Run at midnight every day jobs: unassign-stale-issues: runs-on: ubuntu-latest steps: - - uses: boundfoxstudios/action-unassign-contributor-after-days-of-inactivity@v1.0.2 + - uses: boundfoxstudios/action-unassign-contributor-after-days-of-inactivity@main with: - last-activity: 1 # FIXME: change this to 7 after test passed - labels: 'OSCP,documentation' + last-activity: 7 + labels: "OSCP,good first issue" + message: '由于您未能在规定时间内完成任务,该任务已重新开放认领。如需继续完成,请重新认领;同时也欢迎其他开发者参与认领。\n\nAs the task was not completed within the specified time, it has been unassigned for claiming. If you wish to continue working on it, please reclaim the task. Other developers are also welcome to claim it.' + - uses: boundfoxstudios/action-unassign-contributor-after-days-of-inactivity@main + with: + last-activity: 28 + labels: "OSCP,intermediate" + message: '由于您未能在规定时间内完成任务,该任务已重新开放认领。如需继续完成,请重新认领;同时也欢迎其他开发者参与认领。\n\nAs the task was not completed within the specified time, it has been unassigned for claiming. If you wish to continue working on it, please reclaim the task. Other developers are also welcome to claim it.' + - uses: boundfoxstudios/action-unassign-contributor-after-days-of-inactivity@main + with: + last-activity: 49 + labels: "OSCP,challenge" message: '由于您未能在规定时间内完成任务,该任务已重新开放认领。如需继续完成,请重新认领;同时也欢迎其他开发者参与认领。\n\nAs the task was not completed within the specified time, it has been unassigned for claiming. If you wish to continue working on it, please reclaim the task. Other developers are also welcome to claim it.' -