From e62e84450d2d402b3a37f8b469aa0e8b878d96cf Mon Sep 17 00:00:00 2001 From: Eric Turgeon <4249848+ericbsd@users.noreply.github.com> Date: Wed, 19 Apr 2023 20:18:27 -0300 Subject: [PATCH] Adding automation and ticket template. --- .github/CODEOWNER | 9 +++ .github/ISSUE_TEMPLATE/bug_report.yaml | 55 +++++++++++++++++++ .github/ISSUE_TEMPLATE/feature_request.yaml | 33 +++++++++++ .github/ISSUE_TEMPLATE/security_report.yaml | 40 ++++++++++++++ .github/workflows/project_automation.yml | 61 +++++++++++++++++++++ 5 files changed, 198 insertions(+) create mode 100644 .github/CODEOWNER create mode 100644 .github/ISSUE_TEMPLATE/bug_report.yaml create mode 100644 .github/ISSUE_TEMPLATE/feature_request.yaml create mode 100644 .github/ISSUE_TEMPLATE/security_report.yaml create mode 100644 .github/workflows/project_automation.yml diff --git a/.github/CODEOWNER b/.github/CODEOWNER new file mode 100644 index 0000000..a11e500 --- /dev/null +++ b/.github/CODEOWNER @@ -0,0 +1,9 @@ +# This is a comment. +# Each line is a file pattern followed by one or more owners. + +# These owners will be the default owners for everything in +# the repo. Unless a later match takes precedence, +# @global-owner1 and @global-owner2 will be requested for +# review when someone opens a pull request. +# * @global-owner1 @global-owner2 +* @ghostbsd/developers \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml new file mode 100644 index 0000000..5379ad1 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -0,0 +1,55 @@ +name: Bug Report +description: Report a bug or issue here. +title: "[BUG] " +labels: [bug] +body: + - type: markdown + attributes: + value: | + ### Please read this first + Before reporting an issue, make sure it is not in our [Development Management](https://github.com/orgs/ghostbsd/projects/4/views/12). + + Follow these tips to help us understand your issue. + * Only one issue per report + * The title describes the issue + * Follow the information of each field + * Be concise and clear on each field + * Make sure the issue is understandable after reading it + + **Note:** If we have a problem understanding the issue, we might close the report. + - type: input + id: version + attributes: + label: Version + description: Use ghostbsd-version -v or go to App menu > System Tools > Mate System Monitor and on the System Monitor window click System Tab + placeholder: "22.03.11" + validations: + required: true + - type: textarea + id: describe + attributes: + label: Explain the issue and what happens + description: What is the issue, and what happened? + validations: + required: true + - type: textarea + id: reproduce + attributes: + label: Explain how to reproduce the bug? + description: What are the steps to reproduce this issue? + validations: + required: true + - type: textarea + id: behavior + attributes: + label: What is the Expected behavior (if applicable) + description: What do you expect to happen? + validations: + required: false + - type: textarea + id: additional + attributes: + label: Additional context (if applicable) + description: Added your Terminal ouput or logs here with context + validations: + required: false diff --git a/.github/ISSUE_TEMPLATE/feature_request.yaml b/.github/ISSUE_TEMPLATE/feature_request.yaml new file mode 100644 index 0000000..407ecea --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yaml @@ -0,0 +1,33 @@ +name: Feature Request +description: Request a new feature, enhancement to improve GhostBSD +title: "[Feature] <title>" +labels: [feature] +body: + - type: markdown + attributes: + value: | + ### Please read this first + Before requesting an a new feature, enhancement, make sure it is not in our [Development Management](https://github.com/orgs/ghostbsd/projects/4/views/12). + + Follow these tips to help us understand your request. + * Only one feature or enhancement per request + * The title describes the request + * Follow the information of each field + * Be concise and clear on each field + * Make sure your request is understandable after reading it + + **Note:** If we have a problem understanding the request, we might close the request. + - type: textarea + id: describe + attributes: + label: Describe the feature or enhancement + description: A clear and concise description of the feature or enhancement. + validations: + required: true + - type: textarea + id: why + attributes: + label: Why this request? + description: Why this feature or enhancement request. + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/security_report.yaml b/.github/ISSUE_TEMPLATE/security_report.yaml new file mode 100644 index 0000000..e0e89c7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/security_report.yaml @@ -0,0 +1,40 @@ +name: Security issue +description: Report a security issue or vulnerability here. +title: "[Security] <title>" +labels: [security] +body: + - type: markdown + attributes: + value: | + ### Please read this first + Before reporting a security issue or vulnerability, make sure it is not in our [Development Management](https://github.com/orgs/ghostbsd/projects/4/views/12). + + Follow these tips to help us understand your security issue + * Only one security issue or vulnerability per report + * The title describes the security issue or vulnerability + * Follow the information of each field + * Be concise and clear on each field + * Make sure your security issue or vulnerability is understandable after reading it + + **Note:** If we have a problem understanding the security issue, we might close this report. + - type: input + id: version + attributes: + label: Version + description: Use ghostbsd-version -v or go to App menu > System Tools > Mate System Monitor and on the System Monitor window click System Tab + placeholder: "22.03.11" + validations: + required: true + - type: textarea + id: describe + attributes: + label: What is the security issue or vulnerability? + validations: + required: true + - type: textarea + id: additional + attributes: + label: Security issue or vulnerability information + description: Added your pkg audit -F output, CVE information or concerns here + validations: + required: true diff --git a/.github/workflows/project_automation.yml b/.github/workflows/project_automation.yml new file mode 100644 index 0000000..e37a013 --- /dev/null +++ b/.github/workflows/project_automation.yml @@ -0,0 +1,61 @@ +name: Project automations +on: + issues: + types: + - opened + - assigned + pull_request: + types: + - opened + +# map fields with customized labels +env: + new: New + todo: Todo + done: Done + in_progress: In Progress + in_review: In Review + +jobs: + issue_opened: + name: issue_opened + runs-on: ubuntu-latest + if: github.event_name == 'issues' && (github.event.action == 'opened') + steps: + - name: Move issue to ${{ env.new }} + uses: leonsteinhaeuser/project-beta-automations@v2.1.0 + with: + gh_token: ${{ secrets.MY_GITHUB_TOKEN }} + # user: ghostbsd + organization: ghostbsd + project_id: 4 + resource_node_id: ${{ github.event.issue.node_id }} + status_value: ${{ env.new }} + issue_assigned: + name: issue_assigned + runs-on: ubuntu-latest + if: github.event_name == 'issues' && (github.event.action == 'assigned') + steps: + - name: Move issue to ${{ env.in_progress }} + uses: leonsteinhaeuser/project-beta-automations@v2.1.0 + with: + gh_token: ${{ secrets.MY_GITHUB_TOKEN }} + # user: ghostbsd + organization: ghostbsd + project_id: 4 + resource_node_id: ${{ github.event.issue.node_id }} + status_value: ${{ env.in_progress }} + pr_opened: + name: pr_opened + runs-on: ubuntu-latest + if: github.event_name == 'pull_request' && (github.event.action == 'opened') + steps: + - name: Move PR to ${{ env.in_review }} + uses: leonsteinhaeuser/project-beta-automations@v2.1.0 + with: + gh_token: ${{ secrets.MY_GITHUB_TOKEN }} + # user: ghostbsd + organization: ghostbsd + project_id: 4 + resource_node_id: ${{ github.event.pull_request.node_id }} + status_value: ${{ env.in_review }}