Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated PR from Dev Stage #14

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/dev-stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,13 @@ jobs:
run: |
export DB_URL=$(neonctl connection-string --branch dev --api-key ${{ env.API_KEY }})
npx tsx src/cli/putSecrets.js dev $DB_URL
- name: Branch Info
- name: Deploy dev stage
run: |
npm run deploy-dev-stage
- name: Dev Stage Pull Request
run: |
export PR_BRANCH=$(git branch --show-current)
export DEFAULT_BRANCH=$(git remote show origin | awk '/HEAD branch/ {print $NF}')
echo "$PR_BRANCH and $DEFAULT_BRANCH"
gh pr create --title "Automated PR from Dev Stage" --body "Coming Soon" --base $DEFAULT_BRANCH --head $PR_BRANCH --repo $GITHUB_REPOSITORY
export DEV_STAGE_INFO=$(npm run info-dev-stage)
gh pr create --title "Automated PR from Dev Stage" --body "$DEV_STAGE_INFO" --base $DEFAULT_BRANCH --head $PR_BRANCH --repo $GITHUB_REPOSITORY
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"dev": "serverless offline --stage dev",
"info": "serverless info --stage prod --region us-east-2",
"deploy": "serverless deploy --stage prod --region us-east-2",
"deploy-dev-stage": "serverless deploy --stage dev --region us-east-2",
"info-dev-stage": "serverless info --stage prod --region us-east-2",
"remove": "serverless remove --stage prod --region us-east-2",
"generate": "drizzle-kit generate:pg --config=drizzle.config.js",
"migrate": "tsx src/cli/migrator.js"
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ app.get("/path", (req, res, next) => {


app.get("/leads", async (req, res, next) => {
const results = await crud.getLeads()
const results = await crud.listLeads()
return res.status(200).json({
results: results,
});
Expand Down
Loading