Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: refine oscp workflow #490

Merged
merged 3 commits into from
Mar 5, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions .github/workflows/oscp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.'