From fd2e156f0259f7f0f0fc92841908b9b0722ed99b Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 4 Mar 2025 23:52:33 +0300 Subject: [PATCH] enable ci Signed-off-by: Vasiliy Tolstov --- .../ISSUE_TEMPLATE/bug_report.md | 8 +----- .../feature-request---enhancement.md | 4 +-- .gitea/ISSUE_TEMPLATE/question.md | 8 ++++++ {.github => .gitea}/PULL_REQUEST_TEMPLATE.md | 0 .gitea/autoapprove.yml | 28 +++++++++++++++++++ {.github => .gitea}/workflows/job_lint.yml | 0 {.github => .gitea}/workflows/job_test.yml | 0 {.github => .gitea}/workflows/job_tests.yml | 0 .github/ISSUE_TEMPLATE/question.md | 14 ---------- 9 files changed, 39 insertions(+), 23 deletions(-) rename {.github => .gitea}/ISSUE_TEMPLATE/bug_report.md (64%) rename {.github => .gitea}/ISSUE_TEMPLATE/feature-request---enhancement.md (88%) create mode 100644 .gitea/ISSUE_TEMPLATE/question.md rename {.github => .gitea}/PULL_REQUEST_TEMPLATE.md (100%) create mode 100644 .gitea/autoapprove.yml rename {.github => .gitea}/workflows/job_lint.yml (100%) rename {.github => .gitea}/workflows/job_test.yml (100%) rename {.github => .gitea}/workflows/job_tests.yml (100%) delete mode 100644 .github/ISSUE_TEMPLATE/question.md diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.gitea/ISSUE_TEMPLATE/bug_report.md similarity index 64% rename from .github/ISSUE_TEMPLATE/bug_report.md rename to .gitea/ISSUE_TEMPLATE/bug_report.md index 1899438..a77fdfd 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.gitea/ISSUE_TEMPLATE/bug_report.md @@ -1,6 +1,6 @@ --- name: Bug report -about: For reporting bugs in go-micro +about: For reporting bugs in micro title: "[BUG]" labels: '' assignees: '' @@ -16,9 +16,3 @@ assignees: '' **How to reproduce the bug:** If possible, please include a minimal code snippet here. - -**Environment:** -Go Version: please paste `go version` output here -``` -please paste `go env` output here -``` diff --git a/.github/ISSUE_TEMPLATE/feature-request---enhancement.md b/.gitea/ISSUE_TEMPLATE/feature-request---enhancement.md similarity index 88% rename from .github/ISSUE_TEMPLATE/feature-request---enhancement.md rename to .gitea/ISSUE_TEMPLATE/feature-request---enhancement.md index 459817f..c722ea6 100644 --- a/.github/ISSUE_TEMPLATE/feature-request---enhancement.md +++ b/.gitea/ISSUE_TEMPLATE/feature-request---enhancement.md @@ -1,6 +1,6 @@ --- name: Feature request / Enhancement -about: If you have a need not served by go-micro +about: If you have a need not served by micro title: "[FEATURE]" labels: '' assignees: '' @@ -14,4 +14,4 @@ A clear and concise description of what the problem is. Ex. I'm always frustrate A clear and concise description of what you want to happen. **Additional context** -Add any other context or screenshots about the feature request here. +Add any other context or screenshots about the feature request here. \ No newline at end of file diff --git a/.gitea/ISSUE_TEMPLATE/question.md b/.gitea/ISSUE_TEMPLATE/question.md new file mode 100644 index 0000000..3d65c72 --- /dev/null +++ b/.gitea/ISSUE_TEMPLATE/question.md @@ -0,0 +1,8 @@ +--- +name: Question +about: Ask a question about micro +title: '' +labels: '' +assignees: '' + +--- \ No newline at end of file diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.gitea/PULL_REQUEST_TEMPLATE.md similarity index 100% rename from .github/PULL_REQUEST_TEMPLATE.md rename to .gitea/PULL_REQUEST_TEMPLATE.md diff --git a/.gitea/autoapprove.yml b/.gitea/autoapprove.yml new file mode 100644 index 0000000..ef43e49 --- /dev/null +++ b/.gitea/autoapprove.yml @@ -0,0 +1,28 @@ +name: "autoapprove" + +on: + pull_request_target: + types: [assigned, opened, synchronize, reopened] + workflow_run: + workflows: ["prbuild"] + types: + - completed + +permissions: + pull-requests: write + contents: write + +jobs: + autoapprove: + runs-on: ubuntu-latest + steps: + - name: approve + run: [ "curl -o tea https://dl.gitea.com/tea/main/tea-main-linux-amd64", + "chmod +x ./tea", + "./tea login add --name unistack --token ${{ secrets.GITHUB_TOKEN }} --url https://git.unistack.org", + "./tea pr --repo ${{ github.event.repository.name }}" + ] + if: github.actor == 'vtolstov' + id: approve + with: + github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/job_lint.yml b/.gitea/workflows/job_lint.yml similarity index 100% rename from .github/workflows/job_lint.yml rename to .gitea/workflows/job_lint.yml diff --git a/.github/workflows/job_test.yml b/.gitea/workflows/job_test.yml similarity index 100% rename from .github/workflows/job_test.yml rename to .gitea/workflows/job_test.yml diff --git a/.github/workflows/job_tests.yml b/.gitea/workflows/job_tests.yml similarity index 100% rename from .github/workflows/job_tests.yml rename to .gitea/workflows/job_tests.yml diff --git a/.github/ISSUE_TEMPLATE/question.md b/.github/ISSUE_TEMPLATE/question.md deleted file mode 100644 index 1daf48b..0000000 --- a/.github/ISSUE_TEMPLATE/question.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -name: Question -about: Ask a question about go-micro -title: '' -labels: '' -assignees: '' - ---- - -Before asking, please check if your question has already been answered: - -1. Check the documentation - https://micro.mu/docs/ -2. Check the examples and plugins - https://github.com/micro/examples & https://github.com/micro/go-plugins -3. Search existing issues