rhykw / gmail-to-github-issues

:envelope: :octocat: This creates a github issue from an unread email with the specified label.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool





📧 👉 :octocat:
Gmail to GitHub Issues

This creates Github issues from an unread mail with the specified label on GAS.





Usage

  1. Deploy this
    $ npm i
    $ npx clasp login
    $ npx clasp create 'Gmail to GitHub Issues' --rootDir ./src
    $ npx clasp push
  2. Set script properties as ENV(File > Project properties > Script properties)
    • GMAIL_LABELS
    • GITHUB_ACCESS_TOKEN
    • GITHUB_REPOSITORY
    • GITHUB_ISSUE_LABEL(optional)
    • GITHUB_API_ENDPOINT(optional)
  3. Add project trigger(Edit > Current project's triggers > Add trigger)
    • Choose which function to run: notify
    • Which run at deployment: head
    • Select event source: Time-driven
    • Select type of time based trigger: Minute timer
    • Select hour interval: Every minute

Contribution

  1. Fork (https://github.com/linyows/gmail-to-github-issues/fork)
  2. Create a feature branch
  3. Commit your changes
  4. Rebase your local changes against the main branch
  5. Run test suite with the npm ci command and confirm that it passes
  6. Create a new Pull Request

Author

linyows

About

:envelope: :octocat: This creates a github issue from an unread email with the specified label.

License:MIT License


Languages

Language:TypeScript 100.0%