aboutsummaryrefslogtreecommitdiffstats
path: root/src/github.rs
AgeCommit message (Collapse)Author
2021-06-06github::Repo: Remove TODOTeddy Wing
Don't see any reason to do this now.
2021-06-06Provide an option to skip repos larger than a given sizeTeddy Wing
Allows a maximum repo size to be given as a command line argument. Repos larger than this will not be mirrored. This gives us a way to save server space by avoiding gigantic repositories.
2021-05-30github::fetch_repos(): Request repos be sorted by updated timeTeddy Wing
2021-05-30github::fetch_repos(): Extract username to function argumentTeddy Wing
2021-05-30github::fetch_repos(): Add documentationTeddy Wing
2021-05-30github::fetch_repos(): Fetch all repos from all pagesTeddy Wing
Also switch from `reqwest::blocking` to async because I was getting this error, probably because I call `fetch_repos()` in the async 'tokio' function `main()`: thread 'main' panicked at 'Cannot drop a runtime in a context where blocking is not allowed. This happens when a runtime is dropped from within an asynchronous context.', $HOME/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.6.1/src/runtime/blocking/shutdown.rs:51:21
2021-05-30main::update(): Update repository description on fetch updateTeddy Wing
If the repository was updated, write the description into the `description` file. Add a `github::Repo.description()` method to get an empty string if the description is `None`. This facilitates writing to the `description` file.
2021-05-30Replace boxed errors with concrete error typesTeddy Wing
2021-05-30database: Add a way to get a single repoTeddy Wing
2021-05-29github::fetch_repos(): Remove `unwrap`sTeddy Wing
2021-05-29Move `Repo` to `github` moduleTeddy Wing
Makes more sense here rather than in its own module since it models GitHub's repository structure.
2021-05-29Split GitHub API request into separate filesTeddy Wing