Skip to content

Commit

Permalink
Merge pull request #9 from MapIV/docs/contributors
Browse files Browse the repository at this point in the history
Add GitHub Actions workflow for updating CONTRIBUTORS.md
  • Loading branch information
urasakikeisuke authored May 15, 2024
2 parents 1b393b8 + 34bf5a5 commit dfba204
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/update-contributors.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Update CONTRIBUTORS.md

on:
schedule:
- cron: '0 2 * * *' # Runs every day at 2am UTC
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup jq
uses: dcarbone/install-jq-action@v2

- name: Update CONTRIBUTORS.md
run: |
echo "# Contributors" > CONTRIBUTORS.md
p=1
while true; do
s=$(curl "https://api.github.com/repos/mapiv/pypcd4/contributors?page=$p") || break
[ "0" = $(echo $s | jq length) ] && break
echo $s | jq -r '.[] | "* " + .login + ""'
p=$((p+1))
done | sort -f | tee -a CONTRIBUTORS.md
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update CONTRIBUTORS.md
title: Update CONTRIBUTORS.md
body: |
This PR updates the list of contributors in CONTRIBUTORS.md.
This PR is automatically generated by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub Actions.
branch: update-contributors
add-paths: |
CONTRIBUTORS.md
labels: |
rd/chore

5 comments on commit dfba204

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
src/pypcd4
   __init__.py20100% 
   _version.py11282%5–6
   pointcloud2.py591280%87–101
   pypcd4.py3793391%23–24, 107, 135, 188, 349–350, 572–594, 607–648, 658–659, 828, 848–849, 972, 975
TOTAL4514790% 

Tests Skipped Failures Errors Time
62 0 💤 0 ❌ 0 🔥 0.635s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
src/pypcd4
   __init__.py20100% 
   _version.py11282%5–6
   pointcloud2.py591280%87–101
   pypcd4.py3793391%23–24, 107, 135, 188, 349–350, 572–594, 607–648, 658–659, 828, 848–849, 972, 975
TOTAL4514790% 

Tests Skipped Failures Errors Time
62 0 💤 0 ❌ 0 🔥 0.623s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
src/pypcd4
   __init__.py20100% 
   _version.py11282%5–6
   pointcloud2.py591280%87–101
   pypcd4.py3793391%23–24, 107, 135, 188, 349–350, 572–594, 607–648, 658–659, 828, 848–849, 972, 975
TOTAL4514790% 

Tests Skipped Failures Errors Time
62 0 💤 0 ❌ 0 🔥 0.670s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
src/pypcd4
   __init__.py20100% 
   _version.py11282%5–6
   pointcloud2.py591280%87–101
   pypcd4.py3793391%23–24, 107, 135, 188, 349–350, 572–594, 607–648, 658–659, 828, 848–849, 972, 975
TOTAL4514790% 

Tests Skipped Failures Errors Time
62 0 💤 0 ❌ 0 🔥 0.607s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
src/pypcd4
   __init__.py20100% 
   _version.py11282%5–6
   pointcloud2.py591280%87–101
   pypcd4.py3793391%23–24, 107, 135, 188, 349–350, 572–594, 607–648, 658–659, 828, 848–849, 972, 975
TOTAL4514790% 

Tests Skipped Failures Errors Time
62 0 💤 0 ❌ 0 🔥 0.676s ⏱️

Please sign in to comment.