diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml new file mode 100644 index 0000000..ef2aa53 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -0,0 +1,67 @@ +name: Report a problem +description: Create a report to let us help you +body: + - type: textarea + attributes: + label: What events trigger your workflow? + id: ci-triggers + description: >- + Please copy and paste the workflow triggers. + If you are using a resuable workflow (`workflow_dispatch` event), + then please also include the workflow triggers that the calling workflow uses. + placeholder: |- + on: + pull_request: + branches: [main, master, develop] + paths: ['**.c', '**.cpp', '**.h', '**.hpp', '**.cxx', '**.hxx', '**.cc', '**.hh', '**CMakeLists.txt', 'meson.build', '**.cmake'] + push: + branches: [main, master, develop] + paths: ['**.c', '**.cpp', '**.h', '**.hpp', '**.cxx', '**.hxx', '**.cc', '**.hh', '**CMakeLists.txt', 'meson.build', '**.cmake'] + render: yml + validations: + required: true + + - type: textarea + id: runner-os + attributes: + label: What OS does your workflow use? + description: >- + Please tell us what OS the workflow [`runs-on`](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idruns-on). + If you are using an additional [`container`](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idcontainer), + then please also include that information here. + placeholder: |- + runs-on: ubuntu-latest + container: node:18 + render: yml + validations: + required: true + + - type: textarea + id: cpp-linter-config + attributes: + label: How is cpp-linter-action configured? + description: >- + Please copy and paste the version and inputs used to run cpp-linter-action. + placeholder: |- + - uses: cpp-linter/cpp-linter-action@v2 + id: linter + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + style: 'file' + tidy-checks: '' + render: yml + validations: + required: true + + - type: textarea + id: what-happened + attributes: + label: What was the unexpected behavior? + description: >- + Use this area to describe what behavior you expected and what behavior you observed. + Please be clear and concise as possible. Use screenshots if that would help. Most users + use this to paste the workflow logs. + placeholder: You can use markdown syntax here + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..ca90cb7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,11 @@ +# this setting will force users to use the provided issue templates +blank_issues_enabled: false +# if the templates provided don't fit the subject of the user feedback, +# here we can give links to other forms of user feedback +contact_links: + - name: cpp-linter discussions + url: https://github.com/orgs/cpp-linter/discussions + about: A place for feedback not specific to cpp-linter-action + - name: Maintainers' note + url: https://github.com/cpp-linter/cpp-linter-action/issues/new + about: Start a discussion for maintainers only diff --git a/.github/ISSUE_TEMPLATE/feature-request.yml b/.github/ISSUE_TEMPLATE/feature-request.yml new file mode 100644 index 0000000..39a4d77 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature-request.yml @@ -0,0 +1,58 @@ +--- +name: Feature request +description: Suggest an idea for this project +body: + - type: dropdown + id: existing-feature + attributes: + label: Is your idea related to an existing feature? + description: >- + If this idea is related to an already available feature(s), then please list them here. + multiple: true + options: + - version + - thread-comments + - tidy-checks + - style + - lines-changed-only + - ignore + - tidy-ignore + - format-ignore + - files-changed-only + - file-annotations + - step-summary + - no-lgtm + - tidy-review + - format-review + - passive-reviews + - verbosity + - 'output: checks-failed' + - 'output: clang-tidy-checks-failed' + - 'output: clang-format-checks-failed' + + - type: textarea + id: behavior + attributes: + label: Describe the behavior you would like + description: >- + Use this area to describe what behavior you desire. + Please be clear and concise as possible. Use screenshots if that would help. + placeholder: You can use markdown syntax here + validations: + required: true + + - type: textarea + id: alternative + attributes: + label: Describe alternatives you have considered + description: >- + Were you able to achieve the desired behavior in some other/inconvenient way? + placeholder: You can use markdown syntax here + + - type: textarea + id: added-context + attributes: + label: Additional context + description: >- + If there is anything that might be special or specific to your usage, please let us know. + placeholder: You can use markdown syntax here diff --git a/README.md b/README.md index 61ccaef..0ce7700 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ # C/C++ Linter Action | clang-format & clang-tidy ![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/cpp-linter/cpp-linter-action) -[![Used by](https://img.shields.io/static/v1?label=Used%20by&message=573&color=informational&logo=slickpic)](https://github.com/cpp-linter/cpp-linter-action/network/dependents) +[![Used by](https://img.shields.io/static/v1?label=Used%20by&message=627&color=informational&logo=slickpic)](https://github.com/cpp-linter/cpp-linter-action/network/dependents) [![GitHub marketplace](https://img.shields.io/badge/marketplace-C%2FC%2B%2B%20Linter-blue?logo=github)](https://github.com/marketplace/actions/c-c-linter) [![cpp-linter](https://github.com/cpp-linter/cpp-linter-action/actions/workflows/cpp-linter.yml/badge.svg)](https://github.com/cpp-linter/cpp-linter-action/actions/workflows/cpp-linter.yml) [![MkDocs Deploy](https://github.com/cpp-linter/cpp-linter-action/actions/workflows/mkdocs-deploy.yml/badge.svg)](https://github.com/cpp-linter/cpp-linter-action/actions/workflows/mkdocs-deploy.yml) diff --git a/requirements.txt b/requirements.txt index 02917bc..07932df 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ # Install clang-tools binaries (clang-format, clang-tidy) # For details please see: https://github.com/cpp-linter/clang-tools-pip -clang-tools==0.13.0 +clang-tools==0.13.1 # cpp-linter core Python executable package # For details please see: https://github.com/cpp-linter/cpp-linter