From 9e626388dbeab1c5f429b9b8d3b34e27e02a23f3 Mon Sep 17 00:00:00 2001 From: nanasina Date: Sun, 15 Dec 2024 22:34:18 +0900 Subject: [PATCH] =?UTF-8?q?github=E3=81=AE=E8=A8=AD=E5=AE=9A=E3=82=92?= =?UTF-8?q?=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/FUNDING.yaml | 2 - .github/ISSUE_TEMPLATE/01_bug-report.yaml | 95 ------ .../ISSUE_TEMPLATE/02_feature-request.yaml | 24 -- .github/ISSUE_TEMPLATE/config.yml | 1 - .../workflows/check-misskey-js-autogen.yaml | 6 +- .../workflows/check-misskey-js-version.yaml | 6 +- .github/workflows/check-spdx-license-id.yaml | 6 +- .github/workflows/docker-publish.yaml | 128 -------- .github/workflows/lint-locales.yaml | 6 +- .github/workflows/lint.yaml | 6 +- .github/workflows/release.yaml | 282 ------------------ .github/workflows/test-federation.yaml | 6 +- .github/workflows/test-frontend.yaml | 6 +- 13 files changed, 14 insertions(+), 560 deletions(-) delete mode 100644 .github/FUNDING.yaml delete mode 100644 .github/ISSUE_TEMPLATE/01_bug-report.yaml delete mode 100644 .github/ISSUE_TEMPLATE/02_feature-request.yaml delete mode 100644 .github/ISSUE_TEMPLATE/config.yml delete mode 100644 .github/workflows/docker-publish.yaml delete mode 100644 .github/workflows/release.yaml diff --git a/.github/FUNDING.yaml b/.github/FUNDING.yaml deleted file mode 100644 index eb7d12ef729e..000000000000 --- a/.github/FUNDING.yaml +++ /dev/null @@ -1,2 +0,0 @@ -patreon: taiy -custom: https://u.taiy.me/donate diff --git a/.github/ISSUE_TEMPLATE/01_bug-report.yaml b/.github/ISSUE_TEMPLATE/01_bug-report.yaml deleted file mode 100644 index f9f7dcc07dae..000000000000 --- a/.github/ISSUE_TEMPLATE/01_bug-report.yaml +++ /dev/null @@ -1,95 +0,0 @@ -name: ๐Ÿ› ๅ•้กŒใ‚’ๅ ฑๅ‘Šใ™ใ‚‹ -description: ๆ”นๅ–„ใซๅฝน็ซ‹ใคๅ ฑๅ‘Šใ‚’ไฝœๆˆใ—ใพใ™ใ€‚ -labels: ["โš ๏ธbug?"] - -body: - - type: markdown - attributes: - value: | - ๅ ฑๅ‘Šใ‚ใ‚ŠใŒใจใ†ใ”ใ–ใ„ใพใ™๏ผ - ใพใšใ€ๅ ฑๅ‘Šใฎ้‡่ค‡ใ‚’้ฟใ‘ใ‚‹ใŸใ‚ใซใ€็™บ่ฆ‹ใ—ใŸๅ•้กŒใŒใ™ใงใซๅ ฑๅ‘Šใ•ใ‚Œใฆใ„ใ‚‹ใ‹ใฉใ†ใ‹ใ‚’ๆคœ็ดขใ—ใฆใใ ใ•ใ„ใ€‚ - ใพใŸใ€ใ‚ตใƒผใƒใƒผใฎๆ‰€ๆœ‰่€…/็ฎก็†่€…ใงใฏใชใ„ๅ ดๅˆใฏใ€ใ‚ตใƒผใƒใƒผๅ›บๆœ‰ใฎๅ•้กŒใ‚’ใ“ใ“ใซๅ ฑๅ‘Šใ—ใชใ„ใงใใ ใ•ใ„ใ€‚ (ไพ‹: XXX ใŒ taiyme.example.com ใงๆฉŸ่ƒฝใ—ใพใ›ใ‚“) ไธ€ๅบฆไป–ใฎใ‚ตใƒผใƒใƒผใง่ฉฆใ—ใฆใ€ใใ‚Œใงใ‚‚็‰นๅฎšใฎใ‚ตใƒผใƒใƒผใงใฎใฟๅ†็พใ™ใ‚‹ๅ ดๅˆใฏใ€ใพใšใ‚ตใƒผใƒใƒผใฎๆ‰€ๆœ‰่€…/็ฎก็†่€…ใซใŠๅ•ใ„ๅˆใ‚ใ›ใใ ใ•ใ„ใ€‚ - - - type: textarea - attributes: - label: ๐Ÿ’ก ๆฆ‚่ฆ - description: ๅ•้กŒใฎ่ฉณ็ดฐใ‚’ๆ•™ใˆใฆใใ ใ•ใ„ใ€‚ - validations: - required: true - - - type: textarea - attributes: - label: ๐Ÿฅฐ ไบˆๆƒณใ•ใ‚Œใ‚‹ๆŒ™ๅ‹• - description: ๆœฌๆฅไบˆๆƒณใ•ใ‚Œใ‚‹ๆŒ™ๅ‹•ใ‚’ๆ•™ใˆใฆใใ ใ•ใ„ใ€‚ - validations: - required: true - - - type: textarea - attributes: - label: ๐Ÿคฌ ๅฎŸ้š›ใฎๆŒ™ๅ‹• - description: | - ๅฎŸ้š›ใซ็™บ็”Ÿใ—ใฆใ„ใ‚‹ๆŒ™ๅ‹•ใ‚’ๆ•™ใˆใฆใใ ใ•ใ„ใ€‚ - ๅฏ่ƒฝใงใ‚ใ‚Œใฐใ€้–‹็™บ่€…ใ‚ณใƒณใ‚ฝใƒผใƒซใ‚„ใ‚ตใƒผใƒใƒผใฎใƒญใ‚ฐใ‚’ๅซใ‚ใฆใใ ใ•ใ„ใ€‚ - validations: - required: true - - - type: textarea - attributes: - label: ๐Ÿ“ ๅ†็พๆ‰‹้ † - value: | - 1. - 2. - 3. - validations: - required: false - - - type: textarea - attributes: - label: ๐Ÿ’ป ใƒ•ใƒญใƒณใƒˆใ‚จใƒณใƒ‰ใฎ็’ฐๅขƒ - description: | - ๅ•้กŒใŒ็™บ็”Ÿใ—ใฆใ„ใ‚‹็’ฐๅขƒใ‚’ๆ•™ใˆใฆใใ ใ•ใ„ใ€‚ - ใ€Œๆœ€ๆ–ฐ็‰ˆใ€ใจใฏๆ›ธใ‹ใšใ€ๅ…ทไฝ“็š„ใชใƒใƒผใ‚ธใƒงใƒณใ‚’ใŠ็Ÿฅใ‚‰ใ›ใใ ใ•ใ„ใ€‚ - - ไพ‹: - - Model and OS of the device(s): MacBook Pro (14inch, 2021), macOS Ventura 13.4 - - Browser: Chrome 113.0.5672.126 - - Server URL: taiyme.example.com - - Misskey: 2024.x.x - value: | - - Model and OS of the device(s): - - Browser: - - Server URL: - - Misskey: - validations: - required: false - - - type: textarea - attributes: - label: ๐Ÿ›ฐ ใƒใƒƒใ‚ฏใ‚จใƒณใƒ‰ใฎ็’ฐๅขƒ (ใ‚ตใƒผใƒใƒผ็ฎก็†่€…ๅ‘ใ‘) - description: | - ๅ•้กŒใŒ็™บ็”Ÿใ—ใฆใ„ใ‚‹็’ฐๅขƒใ‚’ๆ•™ใˆใฆใใ ใ•ใ„ใ€‚ - ใ€Œๆœ€ๆ–ฐ็‰ˆใ€ใจใฏๆ›ธใ‹ใšใ€ๅ…ทไฝ“็š„ใชใƒใƒผใ‚ธใƒงใƒณใ‚’ใŠ็Ÿฅใ‚‰ใ›ใใ ใ•ใ„ใ€‚ - ใƒžใƒใƒผใ‚ธใƒ‰ใ‚ตใƒผใƒ“ใ‚นใ‚’ๅˆฉ็”จใ—ใฆใ„ใ‚‹ๅ ดๅˆใฏใ€ใใ‚Œใ‚‚ๅˆใ‚ใ›ใฆๅ…ฅๅŠ›ใ—ใพใ™ใ€‚ - - ไพ‹: - - Installation Method or Hosting Service: docker compose, k8s/docker, systemd, "Misskey install shell script", development environment - - Misskey: 2024.x.x - - Node: 20.x.x - - PostgreSQL: 15.x.x - - Redis: 7.x.x - - OS and Architecture: Ubuntu 24.04.2 LTS aarch64 - value: | - - Installation Method or Hosting Service: - - Misskey: - - Node: - - PostgreSQL: - - Redis: - - OS and Architecture: - validations: - required: false - - - type: checkboxes - attributes: - label: ใ“ใฎๅ•้กŒใฏ่‡ชๅˆ†ใง่งฃๆฑบใ—ใŸใ„ใงใ™ใ‹๏ผŸ - options: - - label: ใฏใ„ใ€่‡ชๅˆ†ใงใƒ‘ใƒƒใƒใ‚’ๅฝ“ใฆใฆใƒ—ใƒซใƒชใ‚ฏใ‚จใ‚นใƒˆใ‚’ไฝœๆˆใ—ใพใ™ diff --git a/.github/ISSUE_TEMPLATE/02_feature-request.yaml b/.github/ISSUE_TEMPLATE/02_feature-request.yaml deleted file mode 100644 index 8e3b516d44cd..000000000000 --- a/.github/ISSUE_TEMPLATE/02_feature-request.yaml +++ /dev/null @@ -1,24 +0,0 @@ -name: โœจ ๆฉŸ่ƒฝใฎใƒชใ‚ฏใ‚จใ‚นใƒˆ -description: ๆฉŸ่ƒฝใฎใ‚ขใ‚คใƒ‡ใ‚ขใ‚’ๆๆกˆใ—ใพใ™ใ€‚ -labels: ["โœจFeature"] - -body: - - type: textarea - attributes: - label: ๐Ÿ’ก ๆฆ‚่ฆ - description: ใ‚ขใ‚คใƒ‡ใ‚ขใ‚’ๆ•™ใˆใฆใใ ใ•ใ„ใ€‚ - validations: - required: true - - - type: textarea - attributes: - label: ็›ฎ็š„ - description: ใ“ใฎๆฉŸ่ƒฝใง่งฃๆฑบใงใใ‚‹ๅ…ทไฝ“็š„ใชๅ•้กŒใ‚„ใƒ‹ใƒผใ‚บใ€ใŠใ‚ˆใณ่ชฐใซๅฝน็ซ‹ใคใฎใ‹ใ‚’่ชฌๆ˜Žใ—ใฆใใ ใ•ใ„ใ€‚ - validations: - required: true - - - type: checkboxes - attributes: - label: ใ“ใฎๆฉŸ่ƒฝใฏ่‡ชๅˆ†ใงๅฎŸ่ฃ…ใ—ใŸใ„ใงใ™ใ‹๏ผŸ - options: - - label: ใฏใ„ใ€่‡ชๅˆ†ใงๅฎŸ่ฃ…ใ—ใฆใƒ—ใƒซใƒชใ‚ฏใ‚จใ‚นใƒˆใ‚’ไฝœๆˆใ—ใพใ™ diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml deleted file mode 100644 index 3ba13e0cec6c..000000000000 --- a/.github/ISSUE_TEMPLATE/config.yml +++ /dev/null @@ -1 +0,0 @@ -blank_issues_enabled: false diff --git a/.github/workflows/check-misskey-js-autogen.yaml b/.github/workflows/check-misskey-js-autogen.yaml index 90df27b098a8..9948384770aa 100644 --- a/.github/workflows/check-misskey-js-autogen.yaml +++ b/.github/workflows/check-misskey-js-autogen.yaml @@ -3,16 +3,14 @@ name: Check misskey-js autogen on: push: branches: - - taiyme - - release + - stream paths: - .github/workflows/check-misskey-js-autogen.yaml - packages/backend/**/* pull_request_target: branches: - - taiyme - - release + - stream paths: - packages/backend/**/* diff --git a/.github/workflows/check-misskey-js-version.yaml b/.github/workflows/check-misskey-js-version.yaml index 70fd13476823..cdb44f2e1baf 100644 --- a/.github/workflows/check-misskey-js-version.yaml +++ b/.github/workflows/check-misskey-js-version.yaml @@ -3,8 +3,7 @@ name: Check misskey-js version on: push: branches: - - taiyme - - release + - stream paths: - .github/workflows/check-misskey-js-version.yaml - packages/misskey-js/package.json @@ -12,8 +11,7 @@ on: pull_request_target: branches: - - taiyme - - release + - stream paths: - packages/misskey-js/package.json - package.json diff --git a/.github/workflows/check-spdx-license-id.yaml b/.github/workflows/check-spdx-license-id.yaml index 80fef771ed15..820cd935c317 100644 --- a/.github/workflows/check-spdx-license-id.yaml +++ b/.github/workflows/check-spdx-license-id.yaml @@ -3,8 +3,7 @@ name: Check SPDX-License-Identifier on: push: branches: - - taiyme - - release + - stream paths: - .github/workflows/check-spdx-license-id.yaml - cypress/e2e/**/* @@ -13,8 +12,7 @@ on: pull_request_target: branches: - - taiyme - - release + - stream paths: - cypress/e2e/**/* - packages/**/* diff --git a/.github/workflows/docker-publish.yaml b/.github/workflows/docker-publish.yaml deleted file mode 100644 index 4021a62ffc88..000000000000 --- a/.github/workflows/docker-publish.yaml +++ /dev/null @@ -1,128 +0,0 @@ -name: Publish Docker image - -on: - release: - types: - - published - -concurrency: - group: publish-docker-image - cancel-in-progress: false - -permissions: - contents: read - packages: write - id-token: write - -jobs: - # see https://docs.docker.com/build/ci/github-actions/multi-platform/#distribute-build-across-multiple-runners - build: - name: Build - runs-on: ubuntu-22.04 - strategy: - fail-fast: false - matrix: - platform: - - linux/amd64 - - linux/arm64 - steps: - - name: Prepare - run: | - platform=${{ matrix.platform }} - echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV - - - name: Checkout - uses: actions/checkout@v4.2.1 - with: - persist-credentials: false - ref: ${{ github.event.release.tag_name }} - fetch-depth: 1 - - - name: Setup Docker Buildx - uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1 - - - name: Docker meta - id: meta - uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1 - with: - images: ${{ vars.DOCKER_IMAGE_NAME }} - tags: | - ${{ github.event.release.tag_name }} - latest - - - name: Login to Github Container Registry - uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build and Push to Registry - id: build - uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0 - with: - context: . - push: true - platforms: ${{ matrix.platform }} - provenance: false - labels: ${{ steps.meta.outputs.labels }} - cache-from: type=gha - cache-to: type=gha,mode=max - outputs: type=image,name=${{ vars.DOCKER_IMAGE_NAME }},push-by-digest=true,name-canonical=true,push=true - - - name: Export digest - env: - digest: ${{ steps.build.outputs.digest }} - run: | - mkdir -p /tmp/digests - touch "/tmp/digests/${digest#sha256:}" - - - name: Upload digest - uses: actions/upload-artifact@v4.4.3 - with: - name: digests-${{ env.PLATFORM_PAIR }} - path: /tmp/digests/* - if-no-files-found: error - retention-days: 1 - - merge: - name: Merge - runs-on: ubuntu-22.04 - needs: - - build - steps: - - name: Download digests - uses: actions/download-artifact@v4.1.8 - with: - path: /tmp/digests - pattern: digests-* - merge-multiple: true - - - name: Setup Docker Buildx - uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1 - - - name: Docker meta - id: meta - uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1 - with: - images: ${{ vars.DOCKER_IMAGE_NAME }} - tags: | - ${{ github.event.release.tag_name }} - latest - - - name: Login to Github Container Registry - uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Create manifest list and push - working-directory: /tmp/digests - run: | - docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \ - $(printf '${{ vars.DOCKER_IMAGE_NAME }}@sha256:%s ' *) - - - name: Inspect image - run: | - docker buildx imagetools inspect ${{ vars.DOCKER_IMAGE_NAME }}:${{ steps.meta.outputs.version }} diff --git a/.github/workflows/lint-locales.yaml b/.github/workflows/lint-locales.yaml index 49d7404752ce..071d67a8fbe7 100644 --- a/.github/workflows/lint-locales.yaml +++ b/.github/workflows/lint-locales.yaml @@ -3,16 +3,14 @@ name: Lint locales on: push: branches: - - taiyme - - release + - stream paths: - .github/workflows/lint-locales.yaml - locales/**/* pull_request_target: branches: - - taiyme - - release + - stream paths: - locales/**/* diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index c5459b10b9f0..86da8dbc88e1 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -3,16 +3,14 @@ name: Lint on: push: branches: - - taiyme - - release + - stream paths: - .github/workflows/lint.yaml - packages/**/* pull_request_target: branches: - - taiyme - - release + - stream paths: - packages/**/* diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml deleted file mode 100644 index 4eb4184663e4..000000000000 --- a/.github/workflows/release.yaml +++ /dev/null @@ -1,282 +0,0 @@ -name: Release - -on: - workflow_dispatch: - inputs: - base_version: - type: string - description: Enter base version. (e.g. 2024.8.0) - required: true - default: "" - -concurrency: - group: release - cancel-in-progress: false - -permissions: - contents: read - -jobs: - check-context: - name: Check context - runs-on: ubuntu-22.04 - steps: - - name: Check actor - if: github.actor != github.repository_owner - run: exit 1 - - - name: Check branch - if: github.ref_name != vars.DEVELOP_BRANCH - run: exit 1 - - - name: Check base version - env: - base_version: ${{ inputs.base_version }} - run: | - if [[ -z "$base_version" ]]; then - exit 1 - fi - - year="$(cut -d. -f1 <<< "$base_version")" - if [[ ! "$year" =~ ^[0-9]+$ ]]; then - exit 1 - fi - - month="$(cut -d. -f2 <<< "$base_version")" - if [[ ! "$month" =~ ^[0-9]+$ ]] || \ - [[ "$month" -lt 1 || "$month" -gt 12 ]]; then - exit 1 - fi - - patch="$(cut -d. -f3 <<< "$base_version")" - if [[ ! "$patch" =~ ^[0-9]+$ ]]; then - exit 1 - fi - - parse-version: - name: Parse new version - runs-on: ubuntu-22.04 - needs: - - check-context - outputs: - new_version: ${{ steps.generate.outputs.new_version }} - steps: - - name: Checkout ${{ github.sha }} - uses: actions/checkout@v4.2.1 - with: - persist-credentials: false - ref: ${{ github.sha }} - fetch-depth: 1 - - - name: Generate new version - id: generate - env: - base_version: ${{ inputs.base_version }} - run: | - current_version="$(cat package.json | jq -r '.version')" - current_base="$(sed 's/-.*//' <<< "$current_version")" - new_base="${base_version:-"$current_base"}" - if [[ "$current_version" != "$current_base" && \ - "$current_base" == "$new_base" ]]; then - current_suffix="$((cut -d- -f2 | cut -d. -f2) <<< "$current_version")" - new_suffix="$(("$current_suffix" + 1))" - fi - new_suffix="${new_suffix:-0}" - new_version="${new_base}-taiyme.${new_suffix}" - echo "new_version=${new_version}" >> $GITHUB_OUTPUT - - bump-version-update: - name: Bump version (update) - runs-on: ubuntu-22.04 - needs: - - parse-version - steps: - - name: Checkout ${{ github.sha }} - uses: actions/checkout@v4.2.1 - with: - persist-credentials: false - ref: ${{ github.sha }} - fetch-depth: 1 - - - name: Update package.json (root) - run: | - jq --tab '.version = "${{ needs.parse-version.outputs.new_version }}"' package.json > tmp - mv tmp package.json - - - name: Update package.json (misskey-js) - working-directory: packages/misskey-js - run: | - jq --tab '.version = "${{ needs.parse-version.outputs.new_version }}"' package.json > tmp - mv tmp package.json - - - name: Update compose_example.yml - run: | - old_docker_image="$(yq '.services.web.image' compose_example.yml)" - new_docker_image='${{ vars.DOCKER_IMAGE_NAME }}:${{ needs.parse-version.outputs.new_version }}' - sed -i "s|image: ${old_docker_image}|image: ${new_docker_image}|g" compose_example.yml - - - name: Upload artifacts - uses: actions/upload-artifact@v4.4.3 - with: - name: bump_version_files - path: | - package.json - packages/misskey-js/package.json - compose_example.yml - - bump-version-upload: - name: Bump version (upload) - runs-on: ubuntu-22.04 - needs: - - parse-version - - bump-version-update - steps: - - name: Create GitHub App Token - uses: actions/create-github-app-token@v1.11.0 - id: app-token - with: - app-id: ${{ secrets.RELEASE_APP_ID }} - private-key: ${{ secrets.RELEASE_PRIVATE_KEY }} - - - name: Get GitHub App User ID - id: get-user-id - env: - GH_TOKEN: ${{ steps.app-token.outputs.token }} - run: | - user_id="$(gh api '/users/${{ steps.app-token.outputs.app-slug }}[bot]' --jq '.id')" - echo "user-id=${user_id}" >> $GITHUB_OUTPUT - - - name: Checkout ${{ vars.DEVELOP_BRANCH }} - uses: actions/checkout@v4.2.1 - with: - token: ${{ steps.app-token.outputs.token }} - persist-credentials: false - ref: ${{ vars.DEVELOP_BRANCH }} - fetch-depth: 1 - - - name: Download artifacts - uses: actions/download-artifact@v4.1.8 - with: - name: bump_version_files - - - name: Commit and Push - run: | - git config --global user.name '${{ steps.app-token.outputs.app-slug }}[bot]' - git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com' - git remote set-url origin https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/${{ github.repository }} - git add . - git commit -m 'Release: ${{ needs.parse-version.outputs.new_version }}' - git tag ${{ needs.parse-version.outputs.new_version }} - git push origin HEAD - git push origin ${{ needs.parse-version.outputs.new_version }} - - create-pr: - name: Create PR - runs-on: ubuntu-22.04 - needs: - - parse-version - - bump-version-upload - outputs: - pr_number: ${{ steps.create-pr.outputs.pr_number }} - steps: - - name: Create GitHub App Token - uses: actions/create-github-app-token@v1.11.0 - id: app-token - with: - app-id: ${{ secrets.RELEASE_APP_ID }} - private-key: ${{ secrets.RELEASE_PRIVATE_KEY }} - - - name: Checkout ${{ vars.DEVELOP_BRANCH }} - uses: actions/checkout@v4.2.1 - with: - token: ${{ steps.app-token.outputs.token }} - persist-credentials: false - ref: ${{ vars.DEVELOP_BRANCH }} - fetch-depth: 0 - - - name: Create PR - id: create-pr - env: - GH_TOKEN: ${{ steps.app-token.outputs.token }} - run: | - created_pr="$( - gh pr create --draft \ - --base ${{ vars.RELEASE_BRANCH }} \ - --head ${{ vars.DEVELOP_BRANCH }} \ - --title 'Release: ${{ needs.parse-version.outputs.new_version }}' \ - --body '' - )" - pr_number="$(awk -F '/' '/\/pull\/[0-9]+$/ {print $NF}' <<< "$created_pr")" - echo "pr_number=${pr_number}" >> $GITHUB_OUTPUT - - merge-pr: - name: Merge PR - runs-on: ubuntu-22.04 - needs: - - create-pr - steps: - - name: Create GitHub App Token - uses: actions/create-github-app-token@v1.11.0 - id: app-token - with: - app-id: ${{ secrets.RELEASE_APP_ID }} - private-key: ${{ secrets.RELEASE_PRIVATE_KEY }} - - - name: Checkout ${{ vars.DEVELOP_BRANCH }} - uses: actions/checkout@v4.2.1 - with: - token: ${{ steps.app-token.outputs.token }} - persist-credentials: false - ref: ${{ vars.DEVELOP_BRANCH }} - fetch-depth: 1 - - - name: Merge PR - env: - GH_TOKEN: ${{ steps.app-token.outputs.token }} - run: | - gh pr checks ${{ needs.create-pr.outputs.pr_number }} --watch - gh pr ready ${{ needs.create-pr.outputs.pr_number }} - gh pr merge ${{ needs.create-pr.outputs.pr_number }} --merge --auto - - release: - name: Release - runs-on: ubuntu-22.04 - needs: - - parse-version - - merge-pr - steps: - - name: Create GitHub App Token - uses: actions/create-github-app-token@v1.11.0 - id: app-token - with: - app-id: ${{ secrets.RELEASE_APP_ID }} - private-key: ${{ secrets.RELEASE_PRIVATE_KEY }} - - - name: Checkout ${{ vars.RELEASE_BRANCH }} - uses: actions/checkout@v4.2.1 - with: - token: ${{ steps.app-token.outputs.token }} - persist-credentials: false - ref: ${{ vars.RELEASE_BRANCH }} - fetch-depth: 0 - - - name: Generate release notes - id: generate-release-notes - uses: ./.github/actions/generate-release-notes - with: - token: ${{ steps.app-token.outputs.token }} - version: ${{ needs.parse-version.outputs.new_version }} - - - name: Set release notes - env: - release_notes: ${{ steps.generate-release-notes.outputs.release_notes }} - run: | - echo "$release_notes" > /tmp/release-notes.md - - - name: Create Release - env: - GH_TOKEN: ${{ steps.app-token.outputs.token }} - run: | - gh release create ${{ needs.parse-version.outputs.new_version }} \ - --title ${{ needs.parse-version.outputs.new_version }} \ - --notes-file /tmp/release-notes.md diff --git a/.github/workflows/test-federation.yaml b/.github/workflows/test-federation.yaml index 172dae16e72d..ad1d2f6387aa 100644 --- a/.github/workflows/test-federation.yaml +++ b/.github/workflows/test-federation.yaml @@ -3,8 +3,7 @@ name: Test (federation) on: push: branches: - - taiyme - - release + - stream paths: - .github/workflows/test-federation.yaml - packages/backend/**/* @@ -12,8 +11,7 @@ on: pull_request_target: branches: - - taiyme - - release + - stream paths: - packages/backend/**/* - packages/misskey-js/**/* diff --git a/.github/workflows/test-frontend.yaml b/.github/workflows/test-frontend.yaml index 38a51f247f4f..a31ee81ad56b 100644 --- a/.github/workflows/test-frontend.yaml +++ b/.github/workflows/test-frontend.yaml @@ -3,8 +3,7 @@ name: Test (frontend) on: push: branches: - - taiyme - - release + - stream paths: - .github/workflows/test-frontend.yaml - packages/frontend/**/* @@ -15,8 +14,7 @@ on: pull_request_target: branches: - - taiyme - - release + - stream paths: - packages/frontend/**/* - packages/frontend-embed/**/*