Skip to content

Pop101/github-full-activity-readme

 
 

Repository files navigation

GitHub Activity in Readme

Updates README.md with the recent GitHub activity of a user.

Here's my recent commits:

  1. ⭐️ Starred Image-quality-assessment
  2. 📦 Pushed 11 commits to SpotifyPredictor
  3. ⭐️ Starred Todo
  4. ⭐️ Starred Markdown-preview-enhanced
  5. 📦 Pushed 11 commits to RPSTournament

Instructions

  • Add the comment <!--START_SECTION:activity--> (entry point) within README.md. You can find an example here.

  • It's the time to create a workflow file.

.github/workflows/update-readme.yml

name: Update README

on:
  schedule:
    - cron: '*/30 * * * *'
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest
    name: Update this repo's README with recent activity

    steps:
      - uses: actions/checkout@v2
      - uses: Pop101/github-full-activity-readme@master
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

The above job runs every half an hour, you can change it as you wish based on the cron syntax.

Most public events show up, including

  • Commenting on Issues
  • Opening and Closing Issues
  • Opening Pull Requests
  • Pushing to Repositories
  • Forking Repositories
  • Starring Repositories
  • Repositories Creation and Publishing

Override defaults

Use the following input params to customize it for your use case:-

Input Param Default Value Description
COMMIT_MSG ":zap: Update README with the recent activity" Commit message used while committing to the repo
MAX_LINES 5 The maximum number of lines populated in your readme file
EVENT_TYPES "IssueCommentEvent,IssuesEvent,PullRequestEvent,PushEvent,ForkEvent,WatchEvent,PublicEvent,CreateEvent" The event types to be included in the readme file. You can find the list of event types here
name: Update README

on:
  schedule:
    - cron: '*/30 * * * *'
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest
    name: Update this repo's README with recent activity

    steps:
      - uses: actions/checkout@v2
      - uses: Pop101/github-full-activity-readme@master
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          COMMIT_MSG: 'Specify a custom commit message'
          MAX_LINES: 10
          EVENT_TYPES: 'PushEvent,WatchEvent'

About

Updates README with the recent GitHub activity of a user

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%