Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
48 lines
2.0 KiB
YAML
48 lines
2.0 KiB
YAML
name: Priority Support Validation Prompt
|
|
|
|
on:
|
|
issues:
|
|
types:
|
|
- labeled
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
comment:
|
|
name: Create or update comment
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
issues: write
|
|
|
|
steps:
|
|
- name: Find Comment
|
|
uses: peter-evans/find-comment@b30e6a3c0ed37e7c023ccd3f1db5c6c0b0c23aad # v4
|
|
id: findComment
|
|
with:
|
|
issue-number: ${{ github.event.issue.number }}
|
|
comment-author: 'github-actions[bot]'
|
|
body-includes: You have created a priority support request
|
|
|
|
- name: Create comment
|
|
if: ${{ steps.findComment.outputs.comment-id == '' && contains(github.event.label.name, 'unknown') }}
|
|
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
|
|
with:
|
|
issue-number: ${{ github.event.issue.number }}
|
|
body: |
|
|
You have created a support request under the ["Priority Support"](https://mui.com/legal/technical-support-sla/#priority-support) terms, which is a paid add-on to MUI X Premium ⏰. Please validate your support key using the link below:
|
|
|
|
https://tools-public.mui.com/prod/pages/validateSupport?repo=mui-x&issueId=${{ github.event.issue.number }}
|
|
|
|
Do not share your support key in this issue!
|
|
|
|
Priority Support is only provided to verified customers. Once you have verified your support key, we will remove the `support: unknown` label and add the `support: priority` label to this issue. Only then the time for the SLA will start counting.
|
|
|
|
- name: Update comment
|
|
if: ${{ steps.findComment.outputs.comment-id != '' && contains(github.event.label.name, 'priority') }}
|
|
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
|
|
with:
|
|
comment-id: ${{ steps.findComment.outputs.comment-id }}
|
|
body: |
|
|
Thank you for verifying your support key 🔑, your SLA starts now.
|
|
edit-mode: replace
|