personal fork for org profiles
  • JavaScript 100%
Find a file
naturecodevoid-bot 2ce7c6b62a build
2023-01-15 18:46:22 -08:00
.github/workflows chore: update ci config 2020-11-21 14:06:39 +05:30
dist build 2023-01-15 18:46:22 -08:00
.gitignore init 2020-07-16 18:29:32 +05:30
action.yml feat: add MAX_LINES input param (#40) 2020-11-21 13:46:32 +05:30
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md (#15) 2020-08-22 23:15:18 +05:30
index.js Update index.js 2023-01-15 18:43:35 -08:00
LICENSE Create LICENSE 2020-07-16 18:35:39 +05:30
package-lock.json build 2023-01-15 18:26:12 -08:00
package.json build 2023-01-15 18:26:12 -08:00
README.md feat: add MAX_LINES input param (#40) 2020-11-21 13:46:32 +05:30

GitHub Activity in Readme

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

profile-repo

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: jamesgeorge007/github-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.

Please note that only those public events that belong to the following list show up:-

  • IssueEvent
  • IssueCommentEvent
  • PullRequestEvent

You can find an example here.

Override defaults

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

Input Param Default Value Description
COMMIT_MSG 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
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: jamesgeorge007/github-activity-readme@master
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          COMMIT_MSG: 'Specify a custom commit message'
          MAX_LINES: 10

Inspired by JasonEtco/activity-box