GitHub Issues rDNS
This does a reverse DNS lookup of the IP in GitHub issue body and comments the result on GAS.
Usage
- Deploy this
$ npm i $ npx clasp login $ npx clasp create 'GitHub Issues rDNS' --rootDir ./src $ npx clasp push
- Set script properties as ENV(File > Project properties > Script properties)
- GITHUB_ACCESS_TOKEN
- GITHUB_REPOSITORY
- GITHUB_LABEL_SRC
- GITHUB_LABEL_DST
- 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:
Contribution
- Fork (https://github.com/linyows/github-issues-rdns/fork)
- Create a feature branch
- Commit your changes
- Rebase your local changes against the master branch
- Run test suite with the
npm ci
command and confirm that it passes - Create a new Pull Request