Automatically create a ClubHouse ticket for every Dependabot PR.
You'll need two things to start using this GitHub Action
- The "Project ID" for the project you want to create the story in. You can grab this out of the URL for the project on ClubHouse
- A ClubHouse API Token
First, configure a GitHub Secret that holds your ClubHouse API Token.
Note that the following example makes use of a GITHUB_TOKEN
secret. This is provided automatically by GitHub Actions. While you do need to provide it to the action configuration, as in the following example, you do not need to generate a key yourself and add it to your secrets. You can read more about this here.
Here's an example of a GitHub Action configuration that should work for this package:
# .github/workflows/create-dependabot-ticket.yaml
name: Dependabot ClubHouse Actions
on:
pull_request:
types: [opened]
jobs:
create_ticket:
name: Create Ticket
runs-on: ubuntu-latest
steps:
- uses: movableink/dependabot-clubhouse-actions
with:
project-id: 123456 # Project to create story in
env:
CLUBHOUSE_API_TOKEN: ${{ secrets.CLUBHOUSE_API_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}