How to use the taskcluster-client-web.Github function in taskcluster-client-web

To help you get started, we’ve selected a few taskcluster-client-web examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github taskcluster / taskcluster-tools / src / views / QuickStart / index.jsx View on Github external
'/bin/bash',
      '--login',
      '-c',
      [
        `mkdir -p /go/src/github.com/${org}/${repo}`,
        `cd /go/src/github.com/${org}/${repo}`,
        'git init',
        'git fetch {{ event.head.repo.url }} {{ event.head.ref }}',
        'git config advice.detachedHead false',
        'git checkout {{ event.head.sha }}',
        'go install',
        'go test ./...'
      ].join(' && ')
    ]
  }[type]);
const githubClient = new Github({ rootUrl: process.env.TASKCLUSTER_ROOT_URL });

export default class YamlCreator extends Component {
  static initialState = {
    resetActive: false,
    tasks: [],
    events: new Set([
      'pull_request.opened',
      'pull_request.reopened',
      'pull_request.synchronize'
    ]),
    taskName: '',
    taskDescription: ''
  };

  constructor(props) {
    super(props);

taskcluster-client-web

[![Download](https://img.shields.io/badge/yarn-taskcluster--client--web-brightgreen)](https://yarnpkg.com/en/package/taskcluster-client-web) [![License](https://img.shields.io/badge/license-MPL%202.0-orange.svg)](http://mozilla.org/MPL/2.0)

MPL-2.0
Latest version published 9 days ago

Package Health Score

66 / 100
Full package analysis

Similar packages