{"id":21696511,"url":"https://github.com/madetech/python-lunch-rota","last_synced_at":"2025-03-20T14:48:22.103Z","repository":{"id":150895478,"uuid":"133562193","full_name":"madetech/python-lunch-rota","owner":"madetech","description":null,"archived":false,"fork":false,"pushed_at":"2018-11-01T13:06:37.000Z","size":38,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-25T14:11:45.954Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"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/madetech.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-15T19:14:59.000Z","updated_at":"2018-11-01T12:52:31.000Z","dependencies_parsed_at":"2023-06-18T20:13:20.984Z","dependency_job_id":null,"html_url":"https://github.com/madetech/python-lunch-rota","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madetech%2Fpython-lunch-rota","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madetech%2Fpython-lunch-rota/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madetech%2Fpython-lunch-rota/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madetech%2Fpython-lunch-rota/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/madetech","download_url":"https://codeload.github.com/madetech/python-lunch-rota/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244636214,"owners_count":20485441,"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-11-25T19:20:13.100Z","updated_at":"2025-03-20T14:48:22.072Z","avatar_url":"https://github.com/madetech.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Lunch Rota\n\nA picker for random lunches taking into account the previous people who have been\n\n## Environment variables\n\n- SLACK_TOKEN\n  - The token provided by the Slack \"Slash Commands\" which is sent to API Gateway\n- TEAMS_DOC_ID\n  - The ID of the Google Sheet to download as a CSV\n  - This has to be a publically available sheet, and the names need to be\n    in one column\n  - You can get this from the shareable url:\n    - `https://docs.google.com/spreadsheets/d/{ID}`\n\n## Team members\n\nTeam members are pulled from Google Docs inside the `TeamMembersGateway`\n\n## Picking the next batch\n\n### How it works\n\nThis will genreate a shuffled list of 8 people per week, excluding those who have\nalready been per cycle.\n\nExample: Given 20 people, 8 people per week.\n\n- Week 1: 8 picked, 12 remaining\n- Week 2: 8 picked, 4 remaining, 8 excluded\n- Week 3:\n  - Remaining 4 picked\n  - Put everyone else back into pool\n  - Pick additional 4 required\n  - Overall: 8 picked, 12 remaining\n\nTo ensure consistent results, random is provided with a seed.\n\n### What could cause results to change\n\nAnything which causes `random.shuffle()` to receive anything different, will cause\nthe lunchers for the weeks to change.\n\nThe most common cause for this change will be new team members being added.\n\n## Slack integration\n\nThis is deployed to AWS Lambda w/ APi Gateway then linked to a Slack slash command.\n\nWhen you use a slash command with post - it sends the token in the post body which is\nchecked in the Lambda handler. The token required is set by the `SLACK_TOKEN` environment variable.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadetech%2Fpython-lunch-rota","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadetech%2Fpython-lunch-rota","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadetech%2Fpython-lunch-rota/lists"}