Skip to content

GitHub

GitHub fetching records the pull requests you opened or merged.

  1. Fetch today’s activity:

    Terminal window
    swelog fetch github

    The first run asks for a GitHub personal access token with the repo scope and stores it in your operating system keyring.

  2. To fetch a previous date, provide MM-DD-YYYY:

    Terminal window
    swelog fetch github --date 08-17-2026

    For the previous day, use --yesterday instead of working out the date:

    Terminal window
    swelog fetch github --yesterday

The command creates or updates the ## GitHub section before ## Log.