{"id":26956469,"url":"https://github.com/eplus-dev/article-listing","last_synced_at":"2025-04-03T03:30:03.649Z","repository":{"id":208418967,"uuid":"691621470","full_name":"ePlus-DEV/article-listing","owner":"ePlus-DEV","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-21T11:15:06.000Z","size":1373,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-11-21T12:30:55.856Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/ePlus-DEV.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":"2023-09-14T14:46:25.000Z","updated_at":"2023-11-21T12:31:00.430Z","dependencies_parsed_at":"2023-11-21T12:31:00.331Z","dependency_job_id":"5fd5d44f-c5f5-4e5b-bca3-89c049257521","html_url":"https://github.com/ePlus-DEV/article-listing","commit_stats":null,"previous_names":["eplus-dev/article-listing"],"tags_count":3,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ePlus-DEV%2Farticle-listing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ePlus-DEV%2Farticle-listing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ePlus-DEV%2Farticle-listing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ePlus-DEV%2Farticle-listing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ePlus-DEV","download_url":"https://codeload.github.com/ePlus-DEV/article-listing/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246933044,"owners_count":20857045,"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-04-03T03:30:02.864Z","updated_at":"2025-04-03T03:30:03.614Z","avatar_url":"https://github.com/ePlus-DEV.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## About\nCollect your latest articles from sources such as [dev.to](https://dev.to), and then update the `README.md`.\n\n## Use GitHub Action to update your README\n\n**Step 1:** In your repository, create a file named `README.md.template`.\n\n**Step 2:** Write anything you want within the `README.md.template` file.\n\n**Step 3:** Embed one of the following entities within your `README.md.template`:\n\n- **Article listing:**\n```shell\n{{ template \"article-list\" .Articles }}\n```\n- **Article table:**\n```shell\n{{ template \"article-table\" .Articles }}\n```\n\nIf you are familiar with Go templates, you have access to the `root` variable, which includes the following fields:\n\n- `Articles`: An array of Article. You can view the Article struct definition in [model/article.go](model/article.go).\n- `Time`: Updated Time\n- `Author`: Author of articles\n\n**Step 4**: Register Github Action\n- Create a file `.github/workflows/update-articles.yml` in your repository.\n```yml\nname: \"Cronjob\"\non:\nschedule:\n- cron: '15 0 * * *'\n\njobs:\n    update-articles:\n        permissions: write-all\n        runs-on: ubuntu-latest\n        steps:\n            - uses: actions/checkout@v3\n            - name: Generate README\n              uses: huantt/article-listing@v1.0.0\n              with:\n                username: YOUR_USERNAME_ON_DEV_TO                \n                template-file: 'README.md.template'\n                out-file: 'README.md'\n                limit: 5\n            - name: Commit\n              run: |\n                git config user.name github-actions\n                git config user.email github-actions@github.com\n                git add .\n                git commit -m \"update articles\"\n                git push origin main\n```\n\n**Step 5**: Commit your change, then Github actions will run as your specified cron to update Articles into your README.md file\n\n## Below is my recent articles Jack collected from dev.to\n### Table\n\n\n\u003ctable\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"300px\"\u003e\u003cimg src=\"data/images/default-thumbnail.png\" alt=\"thumbnail\"\u003e\u003c/td\u003e\n            \u003ctd\u003e\n                \u003ca href=\"https://dev.to/jacktt/update-your-devto-articles-into-your-github-profile-4dpi\"\u003eUpdate your dev.to articles into your Github profile\u003c/a\u003e\n                \u003cdiv\u003eIn this article, I\u0026#39;ll share you how to update your latest articles on dev.to into your Github...\u003c/div\u003e\n                \u003cdiv\u003e\u003ci\u003e14/09/2023\u003c/i\u003e\u003c/div\u003e\n            \u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"300px\"\u003e\u003cimg src=\"https://res.cloudinary.com/practicaldev/image/fetch/s--9aLNv3pz--/c_imagga_scale,f_auto,fl_progressive,h_420,q_auto,w_1000/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/urlpgle748e1db4sw81v.png\" alt=\"thumbnail\"\u003e\u003c/td\u003e\n            \u003ctd\u003e\n                \u003ca href=\"https://dev.to/jacktt/creating-dynamic-readmemd-file-388o\"\u003eCreating Dynamic README.md File\u003c/a\u003e\n                \u003cdiv\u003eThis is my Github Profile. The specific thing here is that the weather is updated every 6 hours...\u003c/div\u003e\n                \u003cdiv\u003e\u003ci\u003e09/09/2023\u003c/i\u003e\u003c/div\u003e\n            \u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"300px\"\u003e\u003cimg src=\"https://res.cloudinary.com/practicaldev/image/fetch/s--EyxkUB5z--/c_imagga_scale,f_auto,fl_progressive,h_420,q_auto,w_1000/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zbxjrjp6rqnuvkymwy5q.png\" alt=\"thumbnail\"\u003e\u003c/td\u003e\n            \u003ctd\u003e\n                \u003ca href=\"https://dev.to/jacktt/search-goole-like-a-pro-cheat-sheet-555g\"\u003eSearch Goole Like a Pro [Cheat sheet]\u003c/a\u003e\n                \u003cdiv\u003eBefore reading my article, let\u0026#39;s try searching the following input:    inurl:/jacktt/ site:dev.to    ...\u003c/div\u003e\n                \u003cdiv\u003e\u003ci\u003e30/08/2023\u003c/i\u003e\u003c/div\u003e\n            \u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"300px\"\u003e\u003cimg src=\"https://res.cloudinary.com/practicaldev/image/fetch/s--dwEQQuvx--/c_imagga_scale,f_auto,fl_progressive,h_420,q_auto,w_1000/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w3qkrh0jj4qkeumkm880.png\" alt=\"thumbnail\"\u003e\u003c/td\u003e\n            \u003ctd\u003e\n                \u003ca href=\"https://dev.to/jacktt/go-build-in-advance-4o8n\"\u003eAdvanced Go Build Techniques\u003c/a\u003e\n                \u003cdiv\u003eTable of contents   Build options Which file will be included Build tags Build contraints           ...\u003c/div\u003e\n                \u003cdiv\u003e\u003ci\u003e30/08/2023\u003c/i\u003e\u003c/div\u003e\n            \u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"300px\"\u003e\u003cimg src=\"https://res.cloudinary.com/practicaldev/image/fetch/s--ZviKv8F5--/c_imagga_scale,f_auto,fl_progressive,h_420,q_auto,w_1000/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b5m3kjdhd57zgk0xpcdr.png\" alt=\"thumbnail\"\u003e\u003c/td\u003e\n            \u003ctd\u003e\n                \u003ca href=\"https://dev.to/jacktt/load-private-module-in-golang-project-122l\"\u003eLoad Private Module in Golang Project\u003c/a\u003e\n                \u003cdiv\u003eLoad Private Module in Golang Project           Table of Contents    I. How Does go get Work? II. How...\u003c/div\u003e\n                \u003cdiv\u003e\u003ci\u003e12/08/2023\u003c/i\u003e\u003c/div\u003e\n            \u003c/td\u003e\n        \u003c/tr\u003e\n\u003c/table\u003e\n\n\n### List\n\n- [Update your dev.to articles into your Github profile](https://dev.to/jacktt/update-your-devto-articles-into-your-github-profile-4dpi) - 14/09/2023\n- [Creating Dynamic README.md File](https://dev.to/jacktt/creating-dynamic-readmemd-file-388o) - 09/09/2023\n- [Search Goole Like a Pro [Cheat sheet]](https://dev.to/jacktt/search-goole-like-a-pro-cheat-sheet-555g) - 30/08/2023\n- [Advanced Go Build Techniques](https://dev.to/jacktt/go-build-in-advance-4o8n) - 30/08/2023\n- [Load Private Module in Golang Project](https://dev.to/jacktt/load-private-module-in-golang-project-122l) - 12/08/2023\n\n*Updated at: 2023-09-14T12:40:42Z*","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feplus-dev%2Farticle-listing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feplus-dev%2Farticle-listing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feplus-dev%2Farticle-listing/lists"}