From 6516370251fcd4cb934dc627fd9a1e249a1c1314 Mon Sep 17 00:00:00 2001 From: Amelia Yukii Date: Fri, 2 Feb 2024 07:48:35 +0000 Subject: [PATCH] Update 13 files - /.forgejo/workflows/docker-develop.yml - /.forgejo/workflows/docker.yml - /.forgejo/workflows/lint.yml - /.gitea/ISSUE_TEMPLATE/01_bug-report.yml - /.gitea/ISSUE_TEMPLATE/02_feature-request.yml - /.gitea/ISSUE_TEMPLATE/config.yml - /.gitea/pull_request_template.md - /.gitlab-ci.yml - /.old/workflows/lint.yml - /.gitlab/issue_templates/feature.md - /.gitlab/issue_templates/bug.md - /.gitlab/merge_request_templates/default.md - /SECURITY.md --- .forgejo/workflows/docker-develop.yml | 58 ------------ .forgejo/workflows/docker.yml | 61 ------------ .gitea/ISSUE_TEMPLATE/01_bug-report.yml | 97 -------------------- .gitea/ISSUE_TEMPLATE/02_feature-request.yml | 22 ----- .gitea/ISSUE_TEMPLATE/config.yml | 4 - .gitea/pull_request_template.md | 24 ----- .gitlab-ci.yml | 3 - .gitlab/issue_templates/bug.md | 29 ++++++ .gitlab/issue_templates/feature.md | 17 ++++ .gitlab/merge_request_templates/default.md | 11 +++ {.forgejo => .old}/workflows/lint.yml | 0 SECURITY.md | 2 +- 12 files changed, 58 insertions(+), 270 deletions(-) delete mode 100644 .forgejo/workflows/docker-develop.yml delete mode 100644 .forgejo/workflows/docker.yml delete mode 100644 .gitea/ISSUE_TEMPLATE/01_bug-report.yml delete mode 100644 .gitea/ISSUE_TEMPLATE/02_feature-request.yml delete mode 100644 .gitea/ISSUE_TEMPLATE/config.yml delete mode 100644 .gitea/pull_request_template.md create mode 100644 .gitlab/issue_templates/bug.md create mode 100644 .gitlab/issue_templates/feature.md create mode 100644 .gitlab/merge_request_templates/default.md rename {.forgejo => .old}/workflows/lint.yml (100%) diff --git a/.forgejo/workflows/docker-develop.yml b/.forgejo/workflows/docker-develop.yml deleted file mode 100644 index 0c8338c4df..0000000000 --- a/.forgejo/workflows/docker-develop.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: Publish Docker image (develop) - -on: - push: - branches: - - develop - paths: - - packages/** - - locales/** - workflow_dispatch: - -env: - REGISTRY: git.joinsharkey.org - -jobs: - push_to_registry: - name: Push Docker image to GHCR - runs-on: docker - steps: - - name: install packages - run: apt-get update && apt-get install -y wget git curl - - uses: https://code.forgejo.org/actions/setup-node@v3 - with: - node-version: 20 - - name: Install docker - run: | - echo deb http://deb.debian.org/debian bullseye-backports main | tee /etc/apt/sources.list.d/backports.list && apt-get -qq update - DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -qq -y -t bullseye-backports docker.io - - name: Check out the repo - uses: actions/checkout@v4.1.1 - - name: Set up Docker Buildx - id: buildx - uses: https://github.com/docker/setup-buildx-action@v3.0.0 - with: - platforms: linux/amd64,linux/arm64 - - name: Docker meta - id: meta - uses: https://github.com/docker/metadata-action@v5 - with: - images: ${{ env.REGISTRY }}/sharkey/sharkey - - name: Log in to GHCR - uses: https://github.com/docker/login-action@v3 - with: - registry: ${{ env.REGISTRY }} - username: Marie - password: ${{ secrets.TOKEN }} - - name: Build and Push to GHCR - id: build - uses: https://github.com/docker/build-push-action@v5 - with: - builder: ${{ steps.buildx.outputs.name }} - context: . - push: true - platforms: ${{ steps.buildx.outputs.platforms }} - provenance: false - tags: ${{ env.REGISTRY }}/sharkey/sharkey:develop - labels: develop - build-args: NODE_ENV=development \ No newline at end of file diff --git a/.forgejo/workflows/docker.yml b/.forgejo/workflows/docker.yml deleted file mode 100644 index c31f3729b7..0000000000 --- a/.forgejo/workflows/docker.yml +++ /dev/null @@ -1,61 +0,0 @@ -name: Publish Docker image - -on: - release: - types: [published] - workflow_dispatch: - -env: - REGISTRY: git.joinsharkey.org - -jobs: - push_to_registry: - name: Push Docker image to GHCR - runs-on: docker - - steps: - - name: install packages - run: apt-get update && apt-get install -y wget git curl - - uses: https://code.forgejo.org/actions/setup-node@v3 - with: - node-version: 20 - - name: Install docker - run: | - echo deb http://deb.debian.org/debian bullseye-backports main | tee /etc/apt/sources.list.d/backports.list && apt-get -qq update - DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -qq -y -t bullseye-backports docker.io - - name: Check out the repo - uses: actions/checkout@v4.1.1 - - name: Set up Docker Buildx - id: buildx - uses: https://github.com/docker/setup-buildx-action@v3.0.0 - with: - platforms: linux/amd64,linux/arm64 - - name: Docker meta - id: meta - uses: https://github.com/docker/metadata-action@v5 - with: - images: ${{ env.REGISTRY }}/sharkey/sharkey - tags: | - type=edge - type=ref,event=pr - type=ref,event=branch - type=semver,pattern={{version}} - type=semver,pattern={{major}}.{{minor}} - type=raw,value=stable - - name: Log in to GHCR - uses: https://github.com/docker/login-action@v3 - with: - registry: ${{ env.REGISTRY }} - username: Marie - password: ${{ secrets.TOKEN }} - - name: Build and Push to GHCR - id: build - uses: https://github.com/docker/build-push-action@v5 - with: - builder: ${{ steps.buildx.outputs.name }} - context: . - push: true - platforms: ${{ steps.buildx.outputs.platforms }} - provenance: false - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file diff --git a/.gitea/ISSUE_TEMPLATE/01_bug-report.yml b/.gitea/ISSUE_TEMPLATE/01_bug-report.yml deleted file mode 100644 index 6282cc43f9..0000000000 --- a/.gitea/ISSUE_TEMPLATE/01_bug-report.yml +++ /dev/null @@ -1,97 +0,0 @@ -name: ๐Ÿ› Bug Report -description: Create a report to help us improve -title: 'bug: ' - -body: - - type: markdown - attributes: - value: | - Thanks for reporting! - First, in order to avoid duplicate Issues, please search to see if the problem you found has already been reported. - Also, If you are NOT owner/admin of server, PLEASE DONT REPORT SERVER SPECIFIC ISSUES TO HERE! (e.g. feature XXX is not working in misskey.example) Please try with another misskey servers, and if your issue is only reproducible with specific server, contact your server's owner/admin first. - - - type: textarea - attributes: - label: ๐Ÿ’ก Summary - description: Tell us what the bug is - validations: - required: true - - - type: textarea - attributes: - label: ๐Ÿฅฐ Expected Behavior - description: Tell us what should happen - validations: - required: true - - - type: textarea - attributes: - label: ๐Ÿคฌ Actual Behavior - description: | - Tell us what happens instead of the expected behavior. - Please include errors from the developer console and/or server log files if you have access to them. - validations: - required: true - - - type: textarea - attributes: - label: ๐Ÿ“ Steps to Reproduce - placeholder: | - 1. - 2. - 3. - validations: - required: false - - - type: textarea - attributes: - label: ๐Ÿ’ป Frontend Environment - description: | - Tell us where on the platform it happens - DO NOT WRITE "latest". Please provide the specific version. - - Examples: - * Model and OS of the device(s): MacBook Pro (14inch, 2021), macOS Ventura 13.4 - * Browser: Chrome 113.0.5672.126 - * Server URL: misskey.io - * Misskey: 13.x.x - value: | - * Model and OS of the device(s): - * Browser: - * Server URL: - * Misskey: - render: markdown - validations: - required: false - - - type: textarea - attributes: - label: ๐Ÿ›ฐ Backend Environment (for server admin) - description: | - Tell us where on the platform it happens - DO NOT WRITE "latest". Please provide the specific version. - If you are using a managed service, put that after the version. - - Examples: - * Installation Method or Hosting Service: docker compose, k8s/docker, systemd, "Misskey install shell script", development environment - * Misskey: 13.x.x - * Node: 20.x.x - * PostgreSQL: 15.x.x - * Redis: 7.x.x - * OS and Architecture: Ubuntu 22.04.2 LTS aarch64 - value: | - * Installation Method or Hosting Service: - * Misskey: - * Node: - * PostgreSQL: - * Redis: - * OS and Architecture: - render: markdown - validations: - required: false - - - type: checkboxes - attributes: - label: Do you want to address this bug yourself? - options: - - label: Yes, I will patch the bug myself and send a pull request diff --git a/.gitea/ISSUE_TEMPLATE/02_feature-request.yml b/.gitea/ISSUE_TEMPLATE/02_feature-request.yml deleted file mode 100644 index b9f6d09aa0..0000000000 --- a/.gitea/ISSUE_TEMPLATE/02_feature-request.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: โœจ Feature Request -description: Suggest an idea for this project -title: 'feat: ' - -body: - - type: textarea - attributes: - label: Summary - description: Tell us what the suggestion is - validations: - required: true - - type: textarea - attributes: - label: Purpose - description: Describe the specific problem or need you think this feature will solve, and who it will help. - validations: - required: true - - type: checkboxes - attributes: - label: Do you want to implement this feature yourself? - options: - - label: Yes, I will implement this by myself and send a pull request diff --git a/.gitea/ISSUE_TEMPLATE/config.yml b/.gitea/ISSUE_TEMPLATE/config.yml deleted file mode 100644 index b845c1c9ac..0000000000 --- a/.gitea/ISSUE_TEMPLATE/config.yml +++ /dev/null @@ -1,4 +0,0 @@ -contact_links: - - name: ๐Ÿ’ฌ Transfem.org Discord - url: https://discord.gg/HJcAanTR6H - about: Chat freely about Sharkey diff --git a/.gitea/pull_request_template.md b/.gitea/pull_request_template.md deleted file mode 100644 index 63eb2ab623..0000000000 --- a/.gitea/pull_request_template.md +++ /dev/null @@ -1,24 +0,0 @@ - - -## What - - - -## Why - - - -## Additional info (optional) - - - -## Checklist -- [ ] Read the [contribution guide](https://github.com/misskey-dev/misskey/blob/develop/CONTRIBUTING.md) -- [ ] Test working in a local environment -- [ ] (If needed) Add story of storybook -- [ ] (If needed) Update CHANGELOG.md -- [ ] (If possible) Add tests \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0e00ee37c8..103547d7d2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -55,7 +55,6 @@ getImageTag: only: - stable - develop - - tags buildDocker: stage: deploy needs: @@ -79,7 +78,6 @@ buildDocker: only: - stable - develop - - tags mergeManifests: stage: deploy needs: @@ -105,4 +103,3 @@ mergeManifests: only: - stable - develop - - tags diff --git a/.gitlab/issue_templates/bug.md b/.gitlab/issue_templates/bug.md new file mode 100644 index 0000000000..6914647570 --- /dev/null +++ b/.gitlab/issue_templates/bug.md @@ -0,0 +1,29 @@ + + +**What happened?** _(Please give us a brief description of what happened.)_ + +**What did you expect to happen?** _(Please give us a brief description of what you expected to happen.)_ + +**Version** _(What version of Sharkey is your instance running? You can find this by clicking your instance's logo at the top left and then clicking instance information.)_ + +**Instance** _(What instance of Sharkey are you using?)_ + +**What type of issue is this?** _(If this happens on your device and has to do with the user interface, it's client-side. If this happens on either with the API or the backend, or you got a server-side error in the client, it's server-side.)_ + +**What browser are you using? (Client-side issues only)** + +**What operating system are you using? (Client-side issues only)** + +**How do you deploy Sharkey on your server? (Server-side issues only)** + +**What operating system are you using? (Server-side issues only)** + +**Relevant log output** _(Please copy and paste any relevant log output. You can find your log by inspecting the page, and going to the "console" tab. This will be automatically formatted into code, so no need for backticks.)_ + +**Contribution Guidelines** +By submitting this issue, you agree to follow our [Contribution Guidelines](https://activitypub.software/TransFem-org/Sharkey/-/blob/develop/CONTRIBUTING.md) +- [ ] I agree to follow this project's Contribution Guidelines +- [ ] I have searched the issue tracker for similar issues, and this is not a duplicate. diff --git a/.gitlab/issue_templates/feature.md b/.gitlab/issue_templates/feature.md new file mode 100644 index 0000000000..d4235eb5a3 --- /dev/null +++ b/.gitlab/issue_templates/feature.md @@ -0,0 +1,17 @@ + + +**What feature would you like implemented?** _(Please give us a brief description of what you'd like.)_ + +**Why should we add this feature?** _(Please give us a brief description of why your feature is important.)_ + +**Version** _(What version of Sharkey is your instance running? You can find this by clicking your instance's logo at the top left and then clicking instance information.)_ + +**Instance** _(What instance of Sharkey are you using?)_ + +**Contribution Guidelines** +By submitting this issue, you agree to follow our [Contribution Guidelines](https://activitypub.software/TransFem-org/Sharkey/-/blob/develop/CONTRIBUTING.md) +- [ ] I agree to follow this project's Contribution Guidelines +- [ ] I have searched the issue tracker for similar requests, and this is not a duplicate. diff --git a/.gitlab/merge_request_templates/default.md b/.gitlab/merge_request_templates/default.md new file mode 100644 index 0000000000..18bffa5419 --- /dev/null +++ b/.gitlab/merge_request_templates/default.md @@ -0,0 +1,11 @@ + + +**What does this PR do?** _(Please give us a brief description of what this PR does.)_ + +**Contribution Guidelines** +By submitting this merge request, you agree to follow our [Contribution Guidelines](https://activitypub.software/TransFem-org/Sharkey/-/blob/develop/CONTRIBUTING.md) +- [ ] I agree to follow this project's Contribution Guidelines +- [ ] I have made sure to test this pull request + + + diff --git a/.forgejo/workflows/lint.yml b/.old/workflows/lint.yml similarity index 100% rename from .forgejo/workflows/lint.yml rename to .old/workflows/lint.yml diff --git a/SECURITY.md b/SECURITY.md index fa00b700e9..cfc0614dd6 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -4,6 +4,6 @@ If you discover a security issue in Sharkey, please report it by sending an email to [admin@transfem.org](mailto:admin@transfem.org). This will allow us to assess the risk, and make a fix available before we add a -bug report to the GitHub repository. +bug report to the GitLab repository. Thanks for helping make Sharkey safe for everyone.