Skip to content

Commit 965d3b3

Browse files
authored
Merge pull request #11 from jonico/ps-attach
How to use /ps-attach command
2 parents 1fffa71 + 7a0dda2 commit 965d3b3

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.pscale/env/ps-env-ps-attach.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
export ORG_NAME="planetscale"
3+
echo "::set-output name=ORG_NAME::planetscale"
4+
5+
export DB_NAME="shared-secrets-jonico"
6+
echo "::set-output name=DB_NAME::shared-secrets-jonico"
7+
8+
export BRANCH_NAME="add-counter-column"
9+
echo "::set-output name=BRANCH_NAME::add-counter-column"
10+
11+
export DEPLOY_REQUEST_NUMBER="2"
12+
echo "::set-output name=DEPLOY_REQUEST_NUMBER::2"
13+
14+
export DEPLOY_REQUEST_URL="https://app.planetscale.com/planetscale/shared-secrets-jonico/deploy-requests/2"
15+
echo "::set-output name=DEPLOY_REQUEST_URL::https://app.planetscale.com/planetscale/shared-secrets-jonico/deploy-requests/2"
16+
17+
export BRANCH_URL="https://app.planetscale.com/planetscale/shared-secrets-jonico/add-counter-column"
18+
echo "::set-output name=BRANCH_URL::https://app.planetscale.com/planetscale/shared-secrets-jonico/add-counter-column"
19+

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ The workflows covered so far have been all triggered as manual GitHub Action job
4949
You can also create a database branch and deploy request based on an [already existing Pull Request](https://github.com/jonico/pscale-cli-helper-scripts/pull/2) using `/ps-create`:
5050
![image](https://user-images.githubusercontent.com/1872314/143734380-132bdd39-b4bc-4ec0-b1e8-79d31748542c.png)
5151

52+
If the PlanetScale deploy request or database branch and your pull request both exist already, you can use the `/ps-attach` command, followed by the PlanetScale URL to your branch/DR:
53+
54+
![image](https://user-images.githubusercontent.com/1872314/149749143-16a484ec-7ebf-41e3-9d93-c81c24876b1e.png)
55+
5256
If you like to refresh the schema information of your branch or add additional DDL statements, use `/ps-update`:
5357

5458
![image](https://user-images.githubusercontent.com/1872314/144099735-8e023ecf-31ef-4129-82d0-3aa91d5c9777.png)

0 commit comments

Comments
 (0)