{"id":24460938,"url":"https://github.com/talljack/github-trending-email","last_synced_at":"2025-04-13T05:36:06.811Z","repository":{"id":219778217,"uuid":"749889409","full_name":"Talljack/github-trending-email","owner":"Talljack","description":"Github trending repos send to your email","archived":false,"fork":false,"pushed_at":"2025-04-08T11:13:17.000Z","size":2764,"stargazers_count":3,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T12:25:37.237Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Talljack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":["talljack"]}},"created_at":"2024-01-29T15:46:37.000Z","updated_at":"2025-04-08T11:13:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"171a0416-e651-4b17-9465-1f83dd931e2f","html_url":"https://github.com/Talljack/github-trending-email","commit_stats":null,"previous_names":["talljack/github-trending-email"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Talljack%2Fgithub-trending-email","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Talljack%2Fgithub-trending-email/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Talljack%2Fgithub-trending-email/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Talljack%2Fgithub-trending-email/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Talljack","download_url":"https://codeload.github.com/Talljack/github-trending-email/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248670507,"owners_count":21142897,"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":"2025-01-21T04:16:34.520Z","updated_at":"2025-04-13T05:36:06.791Z","avatar_url":"https://github.com/Talljack.png","language":"TypeScript","readme":"# github-trending-email\n\nA Nodejs script to get Github trending repos by language or dateRange.\n\nYou can use this action to get Github trending Repos and send it to your email every day. [Example](/.github/workflows/email.yml)\n\n# Usage\n\n```yml\nname: Send Github Trending Repos via Gmail\n\non:\n  schedule:\n    # 每天 UTC 时间 11:00，如果你在东八区，这相当于晚上 7:00\n    - cron: '0 1,12 * * *'\n\njobs:\n  send-email:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout code\n        uses: actions/checkout@v2\n\n      - name: Get Trending repos\n        uses: talljack/github-trending-email@main\n        id: trending-repos\n        env:\n          token: ${{secrets.GITHUB_TOKEN}} # 使用存储在仓库 Secrets 中的 GitHub 令牌\n        with:\n          languages: '[\"\", \"typescript\", \"rust\", \"go\", \"swift\", \"python\", \"vue\"]'\n\n      - name: Set up Python\n        uses: actions/setup-python@v2\n        with:\n          python-version: '3.x' # Specify the Python version\n      - name: Install dependencies\n        run: pip install yagmail\n        # Maybe you want to send Email\n      - name: Send email\n        run: |\n          python ./.github/actions/send_email.py \"${{ secrets.GMAIL_USERNAME }}\" \"${{ secrets.GMAIL_PASSWORD }}\" \"yugang.cao12@gmail.com\" \"Github Trending Repos\" ${{ steps.trending-repos.outputs.githubTrendingRepos }}\n```\n\n## Inputs\n\n- `token` - Your `GITHUB_TOKEN`. This is required. Why do we need a `token`? Read more here: [About the GITHUB_TOKEN secret](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/authenticating-with-the-github_token#about-the-github_token-secret). Default: `${{ github.token }}`\n- `languages` - What languages do you want to query, It's an array, and you can use it to get any language Github trending Repos. Example: `[\"python\", \"go\", \"typescript\"]`.\n- `dateRange` - What time do you want to query, It has three values `\"daily\"`、`\"weekly\"` and `\"monthly\"`, The default value is `\"daily\"`, you can choose what time you want to get it.\n\n## Outputs\n\n- `githubTrendingRepos` - The GitHub Trending Repos J**SON String** with \\*\\*base64 encode, you just need to base64 decode and use it.\n\n## License\n\nLicensed under the [MIT License](LICENSE).\n","funding_links":["https://github.com/sponsors/talljack"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalljack%2Fgithub-trending-email","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftalljack%2Fgithub-trending-email","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalljack%2Fgithub-trending-email/lists"}