Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Pagerduty Self Service GitHub Actions #1215

Merged
merged 13 commits into from
May 28, 2024
Merged

Conversation

mk-armah
Copy link
Member

@mk-armah mk-armah commented May 17, 2024

Description

Improved existing pagerduty guides and fixed bug in obtaining the entity ids

Updated docs pages

/create-self-service-experiences/setup-backend/github-workflow/examples/PagerDuty/

BugFix

  • correct entity identifer in port action to .entity.identifier

Improvement

  • Added relations field to all DAY-2 actions
  • Improved create-pagerduty-service and trigger incident actions to report updated runs back to port

Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-1215.d2ngvl90zqbob8.amplifyapp.com

@mk-armah mk-armah changed the title Ppdated Pagerduty Self Service GitHub Actions Udated Pagerduty Self Service GitHub Actions May 17, 2024
@mk-armah mk-armah changed the title Udated Pagerduty Self Service GitHub Actions Updated Pagerduty Self Service GitHub Actions May 17, 2024
@@ -191,8 +192,9 @@ Create a new self service action using the following JSON configuration.
"{{if (.inputs | has(\"from\")) then \"from\" else null end}}": "{{.inputs.\"from\"}}",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"{{if (.inputs | has(\"from\")) then \"from\" else null end}}": "{{.inputs.\"from\"}}",
"from": "{{.inputs.\"from\"}}",

@@ -250,16 +251,17 @@ Create a new self service action using the following JSON configuration.
"type": "GITHUB",
"org": "<GITHUB_ORG>",
"repo": "<GITHUB_REPO>",
"workflow": "change-incident-owner.yaml",
"workflow": "change-on-call-user.yaml",
"workflowInputs": {
"{{if (.inputs | has(\"ref\")) then \"ref\" else null end}}": "{{.inputs.\"ref\"}}",
"{{if (.inputs | has(\"start_time\")) then \"start_time\" else null end}}": "{{.inputs.\"start_time\"}}",
"{{if (.inputs | has(\"end_time\")) then \"end_time\" else null end}}": "{{.inputs.\"end_time\"}}",
"{{if (.inputs | has(\"new_on_call_user\")) then \"new_on_call_user\" else null end}}": "{{.inputs.\"new_on_call_user\"}}",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all the inputs here too could go through this change:

Suggested change
"{{if (.inputs | has(\"new_on_call_user\")) then \"new_on_call_user\" else null end}}": "{{.inputs.\"new_on_call_user\"}}",
"new_on_call_user": "{{.inputs.\"new_on_call_user\"}}",

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thats relevant for the other files in this PR as well

@mk-armah mk-armah requested a review from pazhersh May 21, 2024 15:18
Copy link
Contributor

@yairsimantov20 yairsimantov20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

go over @pazhersh comments

@mk-armah mk-armah merged commit 003cb60 into main May 28, 2024
2 checks passed
@mk-armah mk-armah deleted the bugfix/pagerduty-actions branch May 28, 2024 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants