Archive old PRs, fixed refresh task

Added a task to archive old pull requests, and updated the refresh task to work properly, review from @despo ?