-
Create a chatbot on your basecamp follows this article
-
Add your chatbot key to github secret. Click on Settings > Secrets
-
Create
.github/workflows/main.yml
file and follows the usage below
on:
pull_request:
types: [ready_for_review]
name: Basecamp RfR Notify
jobs:
notifyBasecamp:
name: Notify Basecamp
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Notify Basecamp
uses: pmqueiroz/basecamp-ready-for-review@v2
env:
BASECAMP_CHATBOT_SECRET: ${{ secrets.BASECAMP_CHATBOT_KEY }}
with:
# https://3.basecampapi.com/ACCOUNT_ID/integrations/BASECAMP_CHATBOT_SECRET/buckets/BUCKET_ID/chats/CHAT_ID/lines.json
account_id: "7777777"
bucket_id: "7777777"
chat_id: "7777777"
on:
pull_request:
types: [ready_for_review, opened]
name: Basecamp RfR Notify
jobs:
notifyBasecamp:
name: Notify Basecamp
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Notify Basecamp
uses: pmqueiroz/basecamp-ready-for-review@v2
env:
BASECAMP_CHATBOT_SECRET: ${{ secrets.BASECAMP_CHATBOT_KEY }}
with:
# https://3.basecampapi.com/ACCOUNT_ID/integrations/BASECAMP_CHATBOT_SECRET/buckets/BUCKET_ID/chats/CHAT_ID/lines.json
account_id: "7777777"
bucket_id: "7777777"
chat_id: "7777777"
notify_open: true # default: false
notify_open_when_draft: false # default: false