Skip to content

Sort a repo's forks to help you to find those latest updated repos.

License

Notifications You must be signed in to change notification settings

ActionCloud/sort-forks-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Sort Forks Action

Sort Forks Action can help to sort forked repos by last updated date to find those most active repos you may get new update from them.

There're two use situations:

  1. You add the Action in the parent repo to track those active forked repos
  2. You add the Action in one of your forked repo to track the parent repo and other forked repos

Usage

# A workflow config example
name: Test sort forks

on:
  # a cron schedule to run periodically
  schedule:
    - cron: '0 * * * *'

jobs:
  test_sort_forks:
    runs-on: ubuntu-latest
    name: A job to test sort forks
    steps:
    - name: Checkout
      uses: actions/checkout@v1
    - name: Sort forks
      id: sort
      uses: actioncloud/sort-forks-action@master
      with:
        github-token: ${{ secrets.GITHUB_TOKEN }}
    # you need git commit to push the forks data to the folder: .github/actioncloud
    - name: Git commit
      run: |
        # git commit if there's any change
        if test -n "$(git status --porcelain 2>/dev/null)"; then
            git config --global user.email "idegorepl@gmail.com"
            git config --global user.name "ActionCloud Bot"
            git add .
            git commit -m "Update forks data"
            git push
        fi
    # you can get badge code of ActionCloud viewer App, and click it to view your data
    - name: Check output
      run: echo '${{ steps.sort.outputs.actioncloud-badge }}'

GitHub Sort Forks Viewer

The Action will store the forked repos data into your repository, and you need a web view page to see the chart. The viewer page is hosted in actioncloud.io, the url is https://free.actioncloud.io/apps/sort-forks?owner=<your_owner_name>&repo=<your_repo_name>.

You can put a badge in your README file:

# remember to change the owner_name and repo_name to yours:

[![](https://img.shields.io/badge/ActionCloud%20App-Sort%20Forks-blue)](https://free.actioncloud.io/apps/sort-forks?owner=<owner_name>&repo=<repo_name>)

Page preview

github sort forks preview

About

Sort a repo's forks to help you to find those latest updated repos.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%