Skip to content
Honk 🗯
TypeScript JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__tests__ Add images and thanks Sep 30, 2019
.eslintignore
.eslintrc.json Initial commit Sep 30, 2019
.gitignore
.nvmrc
README.md
action.yml Initial commit Sep 30, 2019
honk.png Add images and thanks Sep 30, 2019
honk.ts
jest.config.js
package-lock.json
package.json
sign.png Make the sign smaller Sep 30, 2019
tsconfig.json

README.md

sign

A bot which requires all comments to contain 'honk' or it deletes them.

honk

To use this bot add the following workflow to your repo at .github/workflows/honk.yml:

name: Honk workflow
on:
  issue_comment:
    types: [created]

jobs:
  build:
    name: Honk
    runs-on: ubuntu-latest
    steps:
      - uses: jeffrafter/honk-action@v1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

To see this in use, checkout honk-test.

Development

Clone this repo. Then run tests:

npm test

And lint:

npm run lint

If you want to release a new version first checkout or create the release branch

git checkout releases/v1

Then build the distribution (requires compiling the TypeScript), drop the node modules and reinstall only the production node modules, commit and push the tag:

npm install
npm run build
rm -rf node_modules
sed -i '' '/node_modules/d' .gitignore
npm install --production
git add .
git commit -m "V1"
git push origin releases/v1
git push origin :refs/tags/v1
git tag -fa v1 -m "V1"
git push origin v1

Once complete you'll likely want to remove the production node modules and reinstall the dev dependencies.

Credits

Inspired by Untitled Goose Game and the Discord bot by @melissamcewen

Note: not associated/affiliated with Unititled Goose Game in any way.

You can’t perform that action at this time.