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 ?
Using parenthesis would make this a bit easier to read.