{"id":16232550,"url":"https://github.com/reobin/harvester","last_synced_at":"2025-04-08T06:47:30.582Z","repository":{"id":122775764,"uuid":"570723200","full_name":"reobin/harvester","owner":"reobin","description":"Aggregate time logged in Harvest.","archived":false,"fork":false,"pushed_at":"2023-03-03T14:34:27.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-13T17:52:17.340Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reobin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-11-25T23:34:55.000Z","updated_at":"2022-11-28T13:32:31.000Z","dependencies_parsed_at":"2023-06-28T09:56:47.049Z","dependency_job_id":null,"html_url":"https://github.com/reobin/harvester","commit_stats":{"total_commits":23,"total_committers":1,"mean_commits":23.0,"dds":0.0,"last_synced_commit":"0db54bda3e762a1eebe9b9a4874424b8cca613aa"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reobin%2Fharvester","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reobin%2Fharvester/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reobin%2Fharvester/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reobin%2Fharvester/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reobin","download_url":"https://codeload.github.com/reobin/harvester/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247312068,"owners_count":20918344,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T13:09:31.235Z","updated_at":"2025-04-08T06:47:30.560Z","avatar_url":"https://github.com/reobin.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Harvester\n\n\u003e Aggregate hours logged in Harvest in order to generate an invoice.\n\n## Table of contents\n\n- [Requirements](#requirements)\n  - [Harvest API](#harvest-api)\n- [Get started](#get-started)\n- [Get started (docker)](#get-started-docker)\n- [CLI](#cli)\n\n## Requirements\n\n- [mix (elixir)](https://elixir-lang.org/install.html)\n  - or [Docker](https://docs.docker.com/get-docker/)\n\n### Harvest API\n\nSome variables are needed for this script to authenticate to the Harvest API:\n\n- Harvest account ID\n- Harvest API token\n\nCopy the example config file and fill the values:\n\n```sh\ncp config/example.secrets.exs config/secrets.exs\n```\n\n## Get started\n\nInstall dependencies:\n\n```sh\nmix deps.get\n```\n\nRun the script:\n\n```sh\nmix harvester.run\n```\n\n## Get started (docker)\n\nBuild the container:\n\n```sh\ndocker build -t harvester .\n```\n\nRun the script:\n\n```sh\ndocker run harvester\n```\n\n## CLI\n\n### Aggregate time entries for a specific month\n\n```sh\nmix harvester.run 2022-12 # get time entries for December 2022\n```\n\n### Aggregate time entries between two dates\n\n```sh\nmix harvester.run --from 2022-12-01 --to 2022-12-31\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freobin%2Fharvester","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freobin%2Fharvester","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freobin%2Fharvester/lists"}