Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #25 from PatrickDinh/main
Browse files Browse the repository at this point in the history
feat: add workflows to sync issues with Zendesk
  • Loading branch information
robdmoore authored May 4, 2023
2 parents 37cc3f4 + c28e309 commit a3b2da6
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/issue_closed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Solve zendesk ticket when the issue is closed
on:
issues:
types: [closed]
jobs:
issue_closed:
uses: algorandfoundation/gh_zendesk_sync/.github/workflows/github_zendesk_issue_closed.yml@main
with:
ZENDESK_TENANT_NAME: ${{ vars.ZENDESK_TENANT_NAME }}
ISSUE_LABEL: makerx
secrets:
ZENDESK_AUTH_TOKEN: ${{ secrets.ZENDESK_AUTH_TOKEN }}
12 changes: 12 additions & 0 deletions .github/workflows/issue_commented.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Add comment to zendesk ticket on GitHub issue commented
on:
issue_comment:
types: [created]
jobs:
issue_closed:
uses: algorandfoundation/gh_zendesk_sync/.github/workflows/github_zendesk_issue_commented.yml@main
with:
ZENDESK_TENANT_NAME: ${{ vars.ZENDESK_TENANT_NAME }}
ISSUE_LABEL: makerx
secrets:
ZENDESK_AUTH_TOKEN: ${{ secrets.ZENDESK_AUTH_TOKEN }}
12 changes: 12 additions & 0 deletions .github/workflows/issue_labelled.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Create Zendesk ticket when an issue is labelled with makerx
on:
issues:
types: [labeled]
jobs:
issue_created:
uses: algorandfoundation/gh_zendesk_sync/.github/workflows/github_zendesk_issue_labelled.yml@main
with:
ZENDESK_TENANT_NAME: ${{ vars.ZENDESK_TENANT_NAME }}
ISSUE_LABEL: makerx
secrets:
ZENDESK_AUTH_TOKEN: ${{ secrets.ZENDESK_AUTH_TOKEN }}
11 changes: 11 additions & 0 deletions .github/workflows/zendesk_github_add_comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Add comment to GitHub issue on Zendesk ticket commented
on:
repository_dispatch:
types:
- zendesk_github_add_comment
permissions:
issues: write
jobs:
add-comment:
name: Add comment to issue
uses: algorandfoundation/gh_zendesk_sync/.github/workflows/zendesk_github_add_comment.yml@main
11 changes: 11 additions & 0 deletions .github/workflows/zendesk_github_close_issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Close GitHub issue on Zendesk ticket solved
on:
repository_dispatch:
types:
- zendesk_github_close_issue
permissions:
issues: write
jobs:
close_issue:
name: Close GitHub issue
uses: algorandfoundation/gh_zendesk_sync/.github/workflows/zendesk_github_close_issue.yml@main

0 comments on commit a3b2da6

Please sign in to comment.