From dd353b01263dd5ad49f2b6597a7018a09b46d2c2 Mon Sep 17 00:00:00 2001 From: Leon Date: Wed, 25 May 2022 19:35:50 +0800 Subject: [PATCH] chore: action --- .config/changelog_configuration.json | 59 +++++++++++++++++++++++ .github/ISSUE_TEMPLATE/bug_report.md | 37 ++++++++++++++ .github/ISSUE_TEMPLATE/custom.md | 11 +++++ .github/ISSUE_TEMPLATE/feature_request.md | 16 ++++++ .github/workflows/{build.yml => ci.yml} | 11 +++++ 5 files changed, 134 insertions(+) create mode 100644 .config/changelog_configuration.json create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/custom.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md rename .github/workflows/{build.yml => ci.yml} (87%) diff --git a/.config/changelog_configuration.json b/.config/changelog_configuration.json new file mode 100644 index 0000000..ee21056 --- /dev/null +++ b/.config/changelog_configuration.json @@ -0,0 +1,59 @@ +{ + "categories": [ + { + "title": "## ๐Ÿš€ Features", + "labels": [ + "feature", + "feat" + ] + }, + { + "title": "## ๐Ÿ› Fixes", + "labels": [ + "fix", + "bug", + "fixed" + ] + }, + { + "title": "## ๐Ÿงช Tests", + "labels": [ + "test" + ] + }, + { + "title": "## ๐Ÿ’ฌ Other", + "labels": [ + "other" + ] + }, + { + "title": "## โœจ Refactors", + "labels": [ + "refactor" + ] + }, + { + "title": "## ๐Ÿ“ฆ Dependencies", + "labels": [ + "dependencies" + ] + } + ], + "sort": "ASC", + "template": "${{CHANGELOG}}\n\n
\nUncategorized\n\n${{UNCATEGORIZED}}\n
", + "pr_template": "- ${{TITLE}}\n - PR: #${{NUMBER}}", + "empty_template": "- no changes", + "transformers": [ + { + "pattern": "[\\-\\*] (\\[(...|TEST|CI|SKIP)\\])( )?(.+?)\n(.+?[\\-\\*] )(.+)", + "target": "- $4\n - $6" + } + ], + "max_tags_to_fetch": 500, + "max_pull_requests": 500, + "max_back_track_time_days": 500, + "exclude_merge_branches": [ + "Owner/qa" + ] +} \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..83b40ac --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,37 @@ +--- +name: Bug Report +about: Create a report to help us improve +title: '' +labels: bug +assignees: troublediehard +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Current Behavior** +What is the current behavior? + +**Steps to Reproduce** +Please provide detailed steps for reproducing the issue. + +1. Navigate to... +2. Press on... +3. Scroll to... +4. See error... + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Smartphone (please complete the following information):** + +- Magento Version: [e.g. 2.1.0] +- Device: [e.g. iPhone6] +- OS: [e.g. iOS8.1] +- Version [e.g. 22] + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/custom.md b/.github/ISSUE_TEMPLATE/custom.md new file mode 100644 index 0000000..34d97c1 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/custom.md @@ -0,0 +1,11 @@ +--- +name: Custom Issue Template +about: Tell us something related to the project or general discussion +title: '' +labels: question +assignees: troublediehard +--- + +**Are there certain things to report that are not a bug or feature?** +Please tell us as exactly as possible about your request, thanks. +We will reply as soon as possible. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..eb82e9d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,16 @@ +--- +name: Feature Request +about: Suggest an idea for this mobile app +title: '' +labels: enhancement +assignees: troublediehard +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/.github/workflows/build.yml b/.github/workflows/ci.yml similarity index 87% rename from .github/workflows/build.yml rename to .github/workflows/ci.yml index bce14dc..dfdbacc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/ci.yml @@ -77,11 +77,22 @@ jobs: run: | npx rimraf "build/binary/!(*.AppImage)" + - name: build changelog + id: build_changelog + if: startsWith(github.ref, 'refs/tags/') + uses: mikepenz/release-changelog-builder-action@v2.9.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + configuration: ".config/changelog_configuration.json" + ignorePreReleases: "false" + # step7: create release - name: release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: + body: ${{steps.build_changelog.outputs.changelog}} files: "build/binary/**" env: GITHUB_TOKEN: ${{ secrets.github_token }}