From ba3cf52a7f1c318e9b56a625e89a305ee0781dbb Mon Sep 17 00:00:00 2001 From: Manuel <5673677+mtrezza@users.noreply.github.com> Date: Fri, 27 Aug 2021 20:41:43 +0200 Subject: [PATCH 1/4] add issue bot for prs --- .github/workflows/issue-bot.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/issue-bot.yml b/.github/workflows/issue-bot.yml index 18eb37ada1..4750fa403d 100644 --- a/.github/workflows/issue-bot.yml +++ b/.github/workflows/issue-bot.yml @@ -1,5 +1,8 @@ name: Issue Bot -on: [issues] +on: + issues: + pull_request: + types: [opened, reopened, edited] jobs: issue-bot: runs-on: ubuntu-latest From 2af63500e801739ce20bcd7767d93164591764e4 Mon Sep 17 00:00:00 2001 From: Manuel <5673677+mtrezza@users.noreply.github.com> Date: Fri, 27 Aug 2021 20:45:32 +0200 Subject: [PATCH 2/4] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b04fa45be0..ed242afc50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -146,6 +146,7 @@ ___ - Add ability to pass context of an object via a header, X-Parse-Cloud-Context, for Cloud Code triggers. The header addition allows client SDK's to add context without injecting _context in the body of JSON objects (Corey Baker) [#7437](https://github.com/parse-community/parse-server/pull/7437) - Add CI check to add changelog entry (Manuel Trezza) [#7512](https://github.com/parse-community/parse-server/pull/7512) - Refactor: uniform issue templates across repos (Manuel Trezza) [#7528](https://github.com/parse-community/parse-server/pull/7528) +- ci: add Issue Bot for PRs (Manuel Trezza) [#7530](https://github.com/parse-community/parse-server/pull/7530) ## 4.10.2 [Full Changelog](https://github.com/parse-community/parse-server/compare/4.10.1...4.10.2) From d7a34ceeb9d99c995643c5c2dd6d8d7cb4f791b3 Mon Sep 17 00:00:00 2001 From: Manuel <5673677+mtrezza@users.noreply.github.com> Date: Fri, 27 Aug 2021 20:50:41 +0200 Subject: [PATCH 3/4] Update issue-bot.yml --- .github/workflows/issue-bot.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/issue-bot.yml b/.github/workflows/issue-bot.yml index 4750fa403d..dd59371116 100644 --- a/.github/workflows/issue-bot.yml +++ b/.github/workflows/issue-bot.yml @@ -1,6 +1,7 @@ name: Issue Bot on: issues: + types: [opened, reopened, edited] pull_request: types: [opened, reopened, edited] jobs: From 1ad5a20d72bdf645ab54ae60021f19b8e3fb91aa Mon Sep 17 00:00:00 2001 From: Manuel <5673677+mtrezza@users.noreply.github.com> Date: Thu, 30 Sep 2021 05:04:46 +0200 Subject: [PATCH 4/4] Create release-manual-docker.yml --- .github/workflows/release-manual-docker.yml | 57 +++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .github/workflows/release-manual-docker.yml diff --git a/.github/workflows/release-manual-docker.yml b/.github/workflows/release-manual-docker.yml new file mode 100644 index 0000000000..a5daf4a5b9 --- /dev/null +++ b/.github/workflows/release-manual-docker.yml @@ -0,0 +1,57 @@ +# Trigger this workflow only to manually create a Docker release; this should only be used +# in extraordinary circumstances, as Docker releases are normally created automatically as +# part of the automated release workflow. + +name: release-manual-docker +on: + workflow_dispatch: + inputs: + ref: + default: '' + description: 'Reference (tag / SHA):' +env: + REGISTRY: docker.io + IMAGE_NAME: parseplatform/parse-server +jobs: + build: + runs-on: ubuntu-18.04 + permissions: + contents: read + packages: write + steps: + - name: Determine branch name + id: branch + run: echo "::set-output name=branch_name::${GITHUB_REF#refs/*/}" + - name: Checkout repository + uses: actions/checkout@v2 + with: + ref: ${{ github.event.inputs.ref }} + - name: Set up QEMU + id: qemu + uses: docker/setup-qemu-action@v1 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Log into Docker Hub + if: github.event_name != 'pull_request' + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Extract Docker metadata + id: meta + uses: docker/metadata-action@v3 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + flavor: | + latest=${{ steps.branch.outputs.branch_name == 'master' && github.event.inputs.ref == '' }} + tags: | + type=semver,enable=true,pattern={{version}},value=${{ github.event.inputs.ref }} + type=raw,enable=${{ github.event.inputs.ref == '' }},value=latest + - name: Build and push Docker image + uses: docker/build-push-action@v2 + with: + context: . + platforms: linux/amd64, linux/arm/v6, linux/arm/v7, linux/arm64/v8 + push: ${{ github.event_name != 'pull_request' }} + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }}