From 322639a66a6d7748fac88e8c132c863c018ead0d Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Thu, 16 Feb 2023 22:01:29 +0300 Subject: [PATCH 1/6] dev: issue and feature request templates --- .github/ISSUE_TEMPLATE/bug_report.yaml | 60 +++++++++++++++++++++ .github/ISSUE_TEMPLATE/feature_request.yaml | 58 ++++++++++++++++++++ 2 files changed, 118 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.yaml create mode 100644 .github/ISSUE_TEMPLATE/feature_request.yaml diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml new file mode 100644 index 0000000..14e8cbe --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -0,0 +1,60 @@ +name: "🐛 Bug Report" +description: "Submit a bug report to help us improve" +#title: "[Bug] " +labels: [bug] +body: + - type: checkboxes + id: no-duplicate-issues + attributes: + label: "⚠️ Please verify that this bug has NOT been reported before." + description: "Search in the issues sections by clicking [HERE](https://github.com/notashelf/neovim-flake4/issues?q=)" + options: + - label: "I checked all existing issues and didn't find a similar issue" + required: true + - type: textarea + id: description + validations: + required: false + attributes: + label: "Description" + description: "You could also upload screenshots, if necessary" + - type: textarea + id: steps-to-reproduce + validations: + required: true + attributes: + label: "👟 Reproduction steps" + description: "How do you trigger this bug? Please walk us through the problem, step by step" + placeholder: "..." + - type: textarea + id: expected-behavior + validations: + required: true + attributes: + label: "👀 Expected behavior" + description: "What did you think would or should happen?" + placeholder: "..." + - type: textarea + id: actual-behavior + validations: + required: true + attributes: + label: "😓 Actual Behavior" + description: "What actually happen?" + placeholder: "..." + - type: input + id: nix-metadata + attributes: + label: "💻 Metadata" + description: 'Please run `nix-shell -p nix-info --run "nix-info -m"` and paste the result.' + placeholder: '[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"' + validations: + required: true + - 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: bash + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/feature_request.yaml b/.github/ISSUE_TEMPLATE/feature_request.yaml new file mode 100644 index 0000000..d7ed265 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yaml @@ -0,0 +1,58 @@ +name: 🚀 Feature Request +description: "Propose a new feature" +#title: "[Feature] " +labels: [feature-request] +body: + - type: checkboxes + id: no-duplicate-issues + attributes: + label: "⚠️ Please verify that this feature request has NOT been suggested before." + description: "Search in the issues sections by clicking [HERE](https://github.com/notashelf/neovim-flake/issues?q=)" + options: + - label: "I checked and didn't find a similar feature request" + required: true + - type: dropdown + id: feature-area + attributes: + label: "🏷️ Feature Type" + description: "What kind of a feature request is this?" + multiple: true + options: + - New Command + - New Addon + - API Additions + - Other + validations: + required: true + - type: textarea + id: feature-description + validations: + required: true + attributes: + label: "🔖 Feature description" + description: "A clear and concise description of what your feature request is." + placeholder: "'You should add [...]' or '[...] has always frustrated me' " + - type: textarea + id: solution + validations: + required: true + attributes: + label: "✔️ Solution" + description: "A clear and concise description of what you want to happen." + placeholder: "In my use-case, I would like [...]" + - type: textarea + id: alternatives + validations: + required: false + attributes: + label: "❓ Alternatives" + description: "A clear and concise description of any alternative solutions or features you've considered." + placeholder: "I have considered [...]" + - type: textarea + id: additional-context + validations: + required: false + attributes: + label: "📝 Additional Context" + description: "Add any other context or screenshots about the feature request here." + placeholder: "..." From 0a4b4ff513d208f464e00553c1e5d34abe7ff5d0 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Thu, 16 Feb 2023 22:01:59 +0300 Subject: [PATCH 2/6] ci: trigger the ci less often by filtering trigger files --- .github/workflows/cachix.yml | 8 ++++---- .github/workflows/manual.yml | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cachix.yml b/.github/workflows/cachix.yml index 624e8c9..0e789cd 100644 --- a/.github/workflows/cachix.yml +++ b/.github/workflows/cachix.yml @@ -6,9 +6,9 @@ on: branches: - main paths-ignore: - - '.github/**' - - './assets/**' - - '.gitignore' + - .github/** + - assets/** + - .gitignore jobs: nix: @@ -44,5 +44,5 @@ jobs: run: git config --global init.defaultBranch main - name: Validate Flakes run: nix flake check - - name: Build Hyprland with default settings + - name: Build Hneovim-flake with default settings run: nix build .#${{ matrix.package }} --print-build-logs diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml index 9dbd0b7..ca403c2 100644 --- a/.github/workflows/manual.yml +++ b/.github/workflows/manual.yml @@ -4,6 +4,9 @@ on: push: branches: - main + paths: + # build the manuals only when docs directory is updated + - docs/** # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: From 823957c8abe212d38efe80e75c68fad42fb9c05f Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Thu, 16 Feb 2023 22:02:11 +0300 Subject: [PATCH 3/6] dev: relocate project readme --- README.md => .github/workflows/README.md | 1 + 1 file changed, 1 insertion(+) rename README.md => .github/workflows/README.md (99%) diff --git a/README.md b/.github/workflows/README.md similarity index 99% rename from README.md rename to .github/workflows/README.md index 37cc7da..05c694e 100644 --- a/README.md +++ b/.github/workflows/README.md @@ -1,3 +1,4 @@ +

neovim-flake

Latest release From f651d76e386e62e67c394386e38acdae5d2365fd Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Thu, 16 Feb 2023 22:09:54 +0300 Subject: [PATCH 4/6] dev: PR template --- .../pull_request_template.md | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/PULL_REQUEST_TEMPLATE/pull_request_template.md diff --git a/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md b/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md new file mode 100644 index 0000000..c50c5aa --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md @@ -0,0 +1,40 @@ +# Description + +A clear and concise description of the aim of your Pull Request. + +**If your pull request aims to fix an open issue or a present bug, please link the relevant issue below. If not, please remove this section** +Fixes #(issue) + +## Type of change + +Please delete any options that are not relevant. + +- Bug fix (non-breaking change which fixes an issue) +- New feature (non-breaking change which adds functionality) +- Breaking change (fix or feature that would cause existing functionality to not work as expected) +- Translation/Language update +- Docs +- Other + +## Checklist + +Please try to check at least a majority of the checklist before opening your pull request. PRs +Exceptions to this will be reviewed on a case by case basis. + +- [ ] My code follows the style and contributing guidelines of this project. +- [ ] I ran Alejandra to format my code. +- [ ] I have performed a self-review of my own code and tested it. +- [ ] I have commented my code, particularly in hard-to-understand areas. +- [ ] My changes generate no new warnings. +- [ ] This change requires a documentation update. +- [ ] I have updated the documentation accordingly. + +## Screenshots & Logs + +You are kindly requested to attach screenshots of your changes in actions and preferably your build/run logs for all available packages. If you are not sure how to do this, you can refer to the [documentation](https://notashelf.github.io/neovim-flake/). + +**Please do not use any external image service. Instead, just paste in or drag and drop the image here, and it will be uploaded automatically.** + +```console +# Paste your logs here +``` From 3f17006e479687962a616bc9f352ca32eb31cbd0 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Thu, 16 Feb 2023 22:13:16 +0300 Subject: [PATCH 5/6] dev: ignore repo assets for flake checking --- .github/workflows/check.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index cea124a..1620a7c 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -5,6 +5,10 @@ on: push: branches: - main + paths-ignore: + - .github/** + - assets/** + - .gitignore jobs: nix-flake-check: runs-on: ubuntu-latest From e339f76035819bc5a3e12c9da473298f1ad1bb59 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Thu, 16 Feb 2023 22:13:51 +0300 Subject: [PATCH 6/6] fix: that's not where the readme goes --- .github/{workflows => }/README.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{workflows => }/README.md (100%) diff --git a/.github/workflows/README.md b/.github/README.md similarity index 100% rename from .github/workflows/README.md rename to .github/README.md