📧 👉
Gmail to GitHub Issues
This creates Github issues from an unread mail with the specified label on GAS.
- Deploy this
$ npm i $ npx clasp login $ npx clasp create 'Gmail to GitHub Issues' --rootDir ./src $ npx clasp push
- 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)
- 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
- Choose which function to run:
- Fork (https://github.com/linyows/gmail-to-github-issues/fork)
- Create a feature branch
- Commit your changes
- Rebase your local changes against the main branch
- Run test suite with the
npm ci
command and confirm that it passes - Create a new Pull Request