From 32a8b9a2a38b0c90eca35a25478656fea8bbf77d Mon Sep 17 00:00:00 2001 From: Avinash Kumar <37958271+aviavinashkr@users.noreply.github.com> Date: Wed, 19 Jun 2024 14:44:58 +0530 Subject: [PATCH 1/2] Create bug.yml --- .github/ISSUE_TEMPLATE/bug.yml | 64 ++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug.yml diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml new file mode 100644 index 0000000..7bd634c --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -0,0 +1,64 @@ +name: Bug Report +description: File a bug report +title: "[Bug]: " +labels: ["bug", "triage"] +projects: ["octo-org/1", "octo-org/44"] +assignees: + - octocat +body: + - type: markdown + attributes: + value: | + Thanks for taking the time to fill out this bug report! + - type: input + id: contact + attributes: + label: Contact Details + description: How can we get in touch with you if we need more info? + placeholder: ex. email@example.com + validations: + required: false + - type: textarea + id: what-happened + attributes: + label: What happened? + description: Also tell us, what did you expect to happen? + placeholder: Tell us what you see! + value: "A bug happened!" + validations: + required: true + - type: dropdown + id: version + attributes: + label: Version + description: What version of our software are you running? + options: + - 1.0.2 (Default) + - 1.0.3 (Edge) + default: 0 + validations: + required: true + - type: dropdown + id: browsers + attributes: + label: What browsers are you seeing the problem on? + multiple: true + options: + - Firefox + - Chrome + - Safari + - Microsoft Edge + - type: textarea + id: logs + attributes: + label: Relevant log output + description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks. + render: shell + - type: checkboxes + id: terms + attributes: + label: Code of Conduct + description: By submitting this issue, you agree to follow our [Code of Conduct](https://example.com) + options: + - label: I agree to follow this project's Code of Conduct + required: true From 02cad893de37cd8271e9554eaf75bc4b9e2afd98 Mon Sep 17 00:00:00 2001 From: Avinash Kumar <37958271+aviavinashkr@users.noreply.github.com> Date: Wed, 19 Jun 2024 14:47:04 +0530 Subject: [PATCH 2/2] Create bug_workflow.yml --- .github/workflows/bug_workflow.yml | 43 ++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/bug_workflow.yml diff --git a/.github/workflows/bug_workflow.yml b/.github/workflows/bug_workflow.yml new file mode 100644 index 0000000..51e1389 --- /dev/null +++ b/.github/workflows/bug_workflow.yml @@ -0,0 +1,43 @@ +name: Bug Workflow +on: + issues: + types: [opened, edited] + +jobs: + BugWorkflow: + runs-on: ubuntu-latest + + if: github.event_name == 'issues' && + (github.event.action == 'opened' || github.event.action == 'edited') && + contains(github.event.issue.title, '[Bug]') + + steps: + - name: Check out scripts + uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + + - name: Feedback Issue + env: + GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} + uses: actions/github-script@v6 + with: + script: | + var commentBody = "👋 @${{ github.event.issue.user.login }} Thank for rasing this up. we will look into this ASAP." + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: commentBody + }) + + # - name: Close issue + # id: close_issue + # env: + # GH_TOKEN: ${{ secrets.PAT_TOKEN }} + # shell: pwsh + # run: | + # # Close Issue + # cd $env:GITHUB_WORKSPACE + # gh issue close --comment "@${{ github.event.issue.user.login }} This issue has been resloved." "${{ github.event.issue.number }}"