-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2385 from makeplane/stage-release
release: stage release to master
- Loading branch information
Showing
80 changed files
with
1,474 additions
and
803 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: Create PR in Plane EE Repository to sync the changes | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
|
||
jobs: | ||
create_pr: | ||
# Only run the job when a PR is merged | ||
if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
contents: read | ||
steps: | ||
- name: Check SOURCE_REPO | ||
id: check_repo | ||
env: | ||
SOURCE_REPO: ${{ secrets.SOURCE_REPO_NAME }} | ||
run: | | ||
echo "::set-output name=is_correct_repo::$(if [[ "$SOURCE_REPO" == "makeplane/plane" ]]; then echo 'true'; else echo 'false'; fi)" | ||
- name: Checkout Code | ||
if: steps.check_repo.outputs.is_correct_repo == 'true' | ||
uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
|
||
- name: Set up Branch Name | ||
if: steps.check_repo.outputs.is_correct_repo == 'true' | ||
run: | | ||
echo "SOURCE_BRANCH_NAME=${{ github.head_ref }}" >> $GITHUB_ENV | ||
- name: Setup GH CLI | ||
if: steps.check_repo.outputs.is_correct_repo == 'true' | ||
run: | | ||
type -p curl >/dev/null || (sudo apt update && sudo apt install curl -y) | ||
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg | ||
sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg | ||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null | ||
sudo apt update | ||
sudo apt install gh -y | ||
- name: Create Pull Request | ||
if: steps.check_repo.outputs.is_correct_repo == 'true' | ||
env: | ||
GH_TOKEN: ${{ secrets.ACCESS_TOKEN }} | ||
run: | | ||
TARGET_REPO="${{ secrets.TARGET_REPO_NAME }}" | ||
TARGET_BRANCH="${{ secrets.TARGET_REPO_BRANCH }}" | ||
SOURCE_BRANCH="${{ env.SOURCE_BRANCH_NAME }}" | ||
git checkout $SOURCE_BRANCH | ||
git remote add target "https://$GH_TOKEN@github.com/$TARGET_REPO.git" | ||
git push target $SOURCE_BRANCH:$SOURCE_BRANCH | ||
PR_TITLE="${{ github.event.pull_request.title }}" | ||
PR_BODY="${{ github.event.pull_request.body }}" | ||
# Remove double quotes | ||
PR_TITLE_CLEANED="${PR_TITLE//\"/}" | ||
PR_BODY_CLEANED="${PR_BODY//\"/}" | ||
# Construct PR_BODY_CONTENT using a here-document | ||
PR_BODY_CONTENT=$(cat <<EOF | ||
$PR_BODY_CLEANED | ||
EOF | ||
) | ||
gh pr create \ | ||
--base $TARGET_BRANCH \ | ||
--head $SOURCE_BRANCH \ | ||
--title "[SYNC] $PR_TITLE_CLEANED" \ | ||
--body "$PR_BODY_CONTENT" \ | ||
--repo $TARGET_REPO |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Python imports | ||
import os | ||
|
||
# Django imports | ||
from django.conf import settings | ||
|
||
# Third party imports | ||
from rest_framework.permissions import AllowAny | ||
from rest_framework import status | ||
from rest_framework.response import Response | ||
from sentry_sdk import capture_exception | ||
|
||
# Module imports | ||
from .base import BaseAPIView | ||
|
||
|
||
class ConfigurationEndpoint(BaseAPIView): | ||
permission_classes = [ | ||
AllowAny, | ||
] | ||
|
||
def get(self, request): | ||
try: | ||
data = {} | ||
data["google"] = os.environ.get("GOOGLE_CLIENT_ID", None) | ||
data["github"] = os.environ.get("GITHUB_CLIENT_ID", None) | ||
data["github_app_name"] = os.environ.get("GITHUB_APP_NAME", None) | ||
data["magic_login"] = ( | ||
bool(settings.EMAIL_HOST_USER) and bool(settings.EMAIL_HOST_PASSWORD) | ||
) and os.environ.get("ENABLE_MAGIC_LINK_LOGIN", "0") == "1" | ||
data["email_password_login"] = ( | ||
os.environ.get("ENABLE_EMAIL_PASSWORD", "0") == "1" | ||
) | ||
return Response(data, status=status.HTTP_200_OK) | ||
except Exception as e: | ||
capture_exception(e) | ||
return Response( | ||
{"error": "Something went wrong please try again later"}, | ||
status=status.HTTP_400_BAD_REQUEST, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
5ac2c27
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
plane-sh – ./space/
plane.sh
plane-sh-plane.vercel.app
plane-deploy.vercel.app
plane-sh-git-master-plane.vercel.app
5ac2c27
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
plane – ./web/
plane-plane.vercel.app
app.plane.so
plane-git-master-plane.vercel.app
plane-theta.vercel.app
5ac2c27
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
plane-sh-dev – ./space/
plane-sh-dev-git-develop-plane.vercel.app
plane-space-dev.vercel.app
plane-sh-dev-plane.vercel.app
5ac2c27
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
plane-sh-stage – ./space/
plane-sh-stage-plane.vercel.app
plane-sh-stage-git-stage-release-plane.vercel.app
plane-space-stage.vercel.app
5ac2c27
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
plane-staging – ./web/
plane-staging-plane.vercel.app
plane-app-eight.vercel.app
takeoff.plane.so
plane-staging-git-stage-release-plane.vercel.app