linyows / github-issues-rdns

:name_badge: Do Reverse DNS resolution on GitHub Issues

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub Issues rDNS

This does a reverse DNS lookup of the IP in GitHub issue body and comments the result on GAS.

Usage

  1. Deploy this
    $ npm i
    $ npx clasp login
    $ npx clasp create 'GitHub Issues rDNS' --rootDir ./src
    $ npx clasp push
  2. 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)
  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/github-issues-rdns/fork)
  2. Create a feature branch
  3. Commit your changes
  4. Rebase your local changes against the master branch
  5. Run test suite with the npm ci command and confirm that it passes
  6. Create a new Pull Request

Author

linyows

About

:name_badge: Do Reverse DNS resolution on GitHub Issues

License:MIT License


Languages

Language:TypeScript 100.0%