From 1899a56d7b05c654bf65a627382c1b74d82a4375 Mon Sep 17 00:00:00 2001 From: tongke6 <124763920+tongke6@users.noreply.github.com> Date: Mon, 3 Mar 2025 10:52:06 +0800 Subject: [PATCH 1/2] chore: refine oscp workflow --- .github/workflows/oscp.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/oscp.yml b/.github/workflows/oscp.yml index 403918b..fec1ecd 100644 --- a/.github/workflows/oscp.yml +++ b/.github/workflows/oscp.yml @@ -10,7 +10,17 @@ jobs: steps: - uses: boundfoxstudios/action-unassign-contributor-after-days-of-inactivity@v1.0.2 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@v1.0.2 + 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@v1.0.2 + 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.' From da2e2cd3a436a2d591ee5ef49dab72fae441e15a Mon Sep 17 00:00:00 2001 From: tongke6 <124763920+tongke6@users.noreply.github.com> Date: Wed, 5 Mar 2025 13:36:16 +0800 Subject: [PATCH 2/2] use action-unassign-contributor-after-days-of-inactivity@main --- .github/workflows/oscp.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/oscp.yml b/.github/workflows/oscp.yml index fec1ecd..8e828fb 100644 --- a/.github/workflows/oscp.yml +++ b/.github/workflows/oscp.yml @@ -2,25 +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: 7 - labels: 'OSCP,good first issue' + 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@v1.0.2 + - uses: boundfoxstudios/action-unassign-contributor-after-days-of-inactivity@main with: - last-activity: 28 - labels: 'OSCP,intermediate' + 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@v1.0.2 + - uses: boundfoxstudios/action-unassign-contributor-after-days-of-inactivity@main with: last-activity: 49 - labels: 'OSCP,challenge' + 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.' -