Optional Environment Variables #3145
This file contains 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
# Origin Source | ||
# https://github.com/ant-design/ant-design/blob/79f566b7f8abb1012ef55b0d2793bfdf5595b85d/.github/workflows/issue-reply.yml | ||
name: Issue Labeled | ||
on: | ||
issues: | ||
types: [labeled] | ||
permissions: | ||
contents: read | ||
# for `actions-cool/issues-helper` to update issues | ||
issues: write | ||
# for `actions-cool/issues-helper` to update PRs | ||
pull-requests: write | ||
jobs: | ||
issue-labeled: | ||
permissions: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🤔 Need Reproduce | ||
if: github.event.label.name == 'need reproduction' | ||
uses: actions-cool/[email protected] | ||
with: | ||
actions: "create-comment" | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
issue-number: ${{ github.event.issue.number }} | ||
body: | | ||
Hello @${{ github.event.issue.user.login }}, sorry we can't investigate the problem further without reproduction demo, please provide a repro demo by forking [rspack-repro](https://github.com/web-infra-dev/rspack-repro), or provide a minimal GitHub repository by yourself. Issues labeled by `need reproduction` will be closed if no activities in 14 days. | ||
- name: invalid | ||
if: github.event.label.name == 'invalid' | ||
uses: actions-cool/[email protected] | ||
with: | ||
actions: "create-comment,close-issue" | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
issue-number: ${{ github.event.issue.number }} | ||
body: | | ||
Hello @${{ github.event.issue.user.login }}, your issue has been closed because it does not conform to our issue requirements. Please use our [issue template](https://github.com/web-infra-dev/rspack/issues/new/choose) to create an issue, thank you! |