extensions icon indicating copy to clipboard operation
extensions copied to clipboard

Add PagerDuty extension

Open horimislime opened this issue 3 years ago • 1 comments
trafficstars

Description

This extension helps making PagerDuty operations easier.

  • A command View PagerDuty Incidents shows recent incident activities
  • In each activity user can operate status update (for now, only supports acknowledge/resolve) of incident

Screencast

raycast-pagerduty-demo

Checklist

horimislime avatar Sep 05 '22 04:09 horimislime

Congratulation on your new Raycast extension! :rocket:

We will review it shortly. Once the PR is approved and merged, the extension will be available on the Store.

raycastbot avatar Sep 05 '22 04:09 raycastbot

Hi @pernielsentikaer, thank you for reviewing my code! I finally found what's wrong in your case, and commited following changes.

  1. Display error message using Toast when API error occurs
  2. Use more concise description about API token in setting page

If you test in the latest commit, you would see error message like this. Screen Shot 2022-09-13 at 21 53 27

API token you need to set up is "User API token", but I assume you are using "Account API token" (it's very confusing😅) So I updated description in extension setting to note that "User" API token is required. The difference is described in the following page. https://support.pagerduty.com/docs/api-access-keys#section-generate-a-user-token-rest-api-key

Could you follow this guide to generate a new token and test my code again?

horimislime avatar Sep 13 '22 13:09 horimislime

Published to the Raycast Store: https://raycast.com/horimislime/pagerduty

raycastbot avatar Sep 14 '22 10:09 raycastbot

@pernielsentikaer Thank you for your review and some additional fixes 😄

horimislime avatar Sep 15 '22 00:09 horimislime