dennis-johnson-dev / webtask

webtask.io example for updating GitHub Pull Requests with relevant filesizes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Webtask Test

Webtask for updating GitHub Pull Requests with relevant filesizes generated from a client build system such as Webpack.

Results will look similar to:

stats

An example repo that you can make prs against and see the files change, visit dennis-johnson-dev/webpack-example#2.

Input

This is the shape of the data required by the webtask as a POST request:

  {
    stats: [{ fileName: string, size: number }],
    meta: {
      username: string,
      repo: string,
      pr: string
    },
  }

NOTE: The pr will look like: https://github.com/owner/repo/pull/1

There is a script in the helpers directory that can be configured to be able to post to the webtask in the desired shape.

Local Installation

Copy .env.example to .env and fill in the personal GitHub access token.

You will need to login to webtask: https://webtask.io/cli. The CLI is installed in this project and can be invoked by running:

yarn wc

Install

yarn install

Tests

yarn test
yarn test:watch

Deployment

yarn deploy

About

webtask.io example for updating GitHub Pull Requests with relevant filesizes

License:MIT License


Languages

Language:TypeScript 72.5%Language:JavaScript 27.5%