Set your GitHub status to Out of Office until a specified date.
This tool is included in the pancake collection. For standalone use, download the script and make it executable:
chmod +x github_ooo.shgithub_ooo [OPTIONS] [DATE] [EMOJI] [MESSAGE...]Set or clear your GitHub user status to out of office. The status will automatically clear at the end of the specified date (23:59:59 UTC).
DATE- End date for OOO status in YYYY-MM-DD format (required unless using--clear)EMOJI- Optional emoji to display (e.g., 🏖️, 🎄, 🏥)MESSAGE...- Optional status message (all remaining arguments joined)
-c, --clear- Clear the current status immediately (no DATE needed)-o, --org ORG- Limit status visibility to specific organization-h, --help- Show help message
GITHUB_TOKEN- GitHub Personal Access Token (required)- Must have
userscope - Create at https://github.com/settings/tokens
- Must have
Set OOO until December 25:
GITHUB_TOKEN=ghp_xxx github_ooo 2025-12-25With emoji:
GITHUB_TOKEN=ghp_xxx github_ooo 2025-12-25 🏖️With emoji and message:
GITHUB_TOKEN=ghp_xxx github_ooo 2025-12-25 🏖️ "Enjoying the beaches"Message without emoji:
GITHUB_TOKEN=ghp_xxx github_ooo 2025-12-25 "Away for the holidays"Clear status immediately:
GITHUB_TOKEN=ghp_xxx github_ooo --clearWith organization visibility restriction:
GITHUB_TOKEN=ghp_xxx github_ooo 2025-12-25 🏖️ "Away" --org mycompanycurl- HTTP clientjq- JSON processor- A GitHub Personal Access Token with
userscope
0- Status set successfully1- Missing token, invalid date, or API request failed