https://github.com/movableink/dependabot-clubhouse-actions
Automatically create a Clubhouse story for every Dependabot PR
https://github.com/movableink/dependabot-clubhouse-actions
Last synced: 2 months ago
JSON representation
Automatically create a Clubhouse story for every Dependabot PR
- Host: GitHub
- URL: https://github.com/movableink/dependabot-clubhouse-actions
- Owner: movableink
- Created: 2019-12-12T19:12:00.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-13T16:49:03.000Z (about 1 year ago)
- Last Synced: 2025-03-21T21:43:53.660Z (2 months ago)
- Language: TypeScript
- Size: 1.53 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dependabot-clubhouse-actions
Automatically create a ClubHouse ticket for every Dependabot PR.
## Configuration
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][clubhouse-token]## Usage
First, configure a [GitHub Secret](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets#creating-encrypted-secrets) that holds your [ClubHouse API Token][clubhouse-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](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/authenticating-with-the-github_token).
Here's an example of a GitHub Action configuration that should work for this package:
```yaml
# .github/workflows/create-dependabot-ticket.yaml
name: Dependabot ClubHouse Actionson:
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 }}
```[clubhouse-token]: https://help.clubhouse.io/hc/en-us/articles/205701199-Clubhouse-API-Tokens