Giter Club home page Giter Club logo

airtable-report's Introduction

javscript-action status

Airtable Report

Report Pull Request Statistic to Airtable

Usage

1. Create 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! ๐Ÿš€

Config

  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"]}'

Run package

npm run package

Since the packaged index.js is run from the dist folder.

git add dist

Create a release branch

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

airtable-report's People

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

text-connects

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.