[Bug]: NotificationService without ThemeProvider looks bad #19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Feature Request Custom Work Comment | |
| on: | |
| issues: | |
| types: [opened] | |
| permissions: | |
| contents: read | |
| issues: write | |
| jobs: | |
| comment: | |
| if: >- | |
| ${{ | |
| github.event.issue.author_association != 'OWNER' && | |
| github.event.issue.author_association != 'MEMBER' && | |
| github.event.issue.author_association != 'COLLABORATOR' | |
| }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Comment on enhancement requests from regular users | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| const issueTypeQuery = ` | |
| query($owner: String!, $repo: String!, $issueNumber: Int!) { | |
| repository(owner: $owner, name: $repo) { | |
| issue(number: $issueNumber) { | |
| issueType { | |
| name | |
| } | |
| } | |
| } | |
| } | |
| `; | |
| const issueTypeResult = await github.graphql(issueTypeQuery, { | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issueNumber: context.issue.number, | |
| }); | |
| const issueTypeName = issueTypeResult.repository.issue?.issueType?.name?.trim().toLowerCase(); | |
| const hasFeatureLabel = context.payload.issue.labels.some( | |
| (label) => label.name.startsWith('Type: Feature') | |
| ); | |
| if (issueTypeName !== 'enhancement' && !hasFeatureLabel) { | |
| core.info(`Skipping issue #${context.issue.number}. Issue type: ${issueTypeName ?? 'none'}.`); | |
| return; | |
| } | |
| const commentBody = [ | |
| 'Blazorise is continuously evolving, and we do review feature requests from the community. However, due to limited resources, not all requests can be prioritized or scheduled in the short term.', | |
| '', | |
| 'If this feature is critical for your project and you need it implemented on a specific timeline, we offer a custom development program where features can be prioritized and delivered in collaboration with you: ', | |
| 'https://blazorise.com/custom-work', | |
| '', | |
| '---', | |
| ].join('\n'); | |
| await github.rest.issues.createComment({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: context.issue.number, | |
| body: commentBody, | |
| }); |