Skip to content
This repository has been archived by the owner on Apr 17, 2021. It is now read-only.

Latest commit

 

History

History
38 lines (25 loc) · 1.84 KB

CONTRIBUTING.md

File metadata and controls

38 lines (25 loc) · 1.84 KB

Contributing to this Simple Icons Bot

Simple Icons welcomes contributions and corrections. Before contributing, please make sure you have read the guidelines below. If you decide to contribute anything, please do the following:

  1. Fork this repository
  2. Create a new branch from the latest master (read more here)
  3. Start hacking on the new branch
  4. Commit and push to the new branch
  5. Make a pull request

Also consider the following, this bot is tailor-made for Simple Icons and changes should always be made with that in mind. If you wish to implement significant changes you are perhaps better off forking of off this repository entirely.

Table of contents

Guidelines

Please note that modifications should follow these coding guidelines:

  • Indent is 2 spaces
  • Use async/await over Promises and callbacks
  • Code should pass npm test

Writing Tests

Tests for this bot are written using Jest. For more information about testing a Probot have a look over here. The testing code adheres to the same style guidelines as the source code. If you need a new event, have a look in test/payloads. If you need a new icon or configuration file (or other file) have a look in test/fixtures.

Running Locally

To run the bot locally, follow the Developing an App instructions from the Probot documentation. This particular bot requires these Permissions & events for the GitHub App:

  • Repository Contents - Read & Write
    • Check the box for Push events
  • Single File - Read-only
    • Path: .github/svg-to-pdf.yml