Report Pull Request Statistic to Airtable
with the column same as this https://airtable.com/shrxMRmB9GV6a1TCZ
You can now add action you repository you need to collect data from
.github/workflows/pull-request-statistic
name: "Upload Pull Request Statistic"
on:
pull_request:
types:
- closed
jobs:
upload:
runs-on: ubuntu-latest
steps:
- uses: jcouyang/airtable-report@v1
with:
airtable-token: ${{ secrets.AIRTABLE_TOKEN }}
airtable-base: ${{ secrets.AIRTABLE_BASE}}
airtable-sheet: events
See the actions tab for runs of this action! 🚀
airtable-picks:
description: 'Expression to map PR json value into table column'
required: false
default: '[["url"], ["title"], ["created_at"], ["merged_at"], ["labels"], ["comments"], ["review_comments"], ["commits"], ["additions"], ["deletions"], ["changed_files"]]'
airtable-traversal:
description: 'Traversal Json List item'
required: false
default: '{"labels": ["name"]}'
npm run package
Since the packaged index.js is run from the dist folder.
git add dist
Users shouldn't consume the action from master since that would be latest code and actions can break compatibility between major versions.
Checkin to the v1 release branch
$ git checkout -b v1
$ git commit -a -m "v1 release"
$ git push origin v1
Your action is now published! 🚀
See the versioning documentation