Skip to content

Commit

Permalink
Merge remote-tracking branch 'ubi/development' into feat/testing
Browse files Browse the repository at this point in the history
# Conflicts:
#	.env.example
#	.github/workflows/build.yml
#	.github/workflows/cloudflare-deploy.yml
  • Loading branch information
gentlementlegen committed Feb 28, 2024
2 parents 9619b38 + ad738a8 commit 8706083
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 40 deletions.
46 changes: 33 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,42 @@
name: Build
name: Build & Deploy

on:
push:
pull_request:
workflow_dispatch:

permissions:
contents: read

jobs:
build:
name: Build
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v2
- name: Check out repository
uses: actions/checkout@v4
# with:
# submodules: "recursive" # Ensures submodules are checked out

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20.10.0"
- name: Install dependencies
run: yarn install
node-version: 20.10.0

- name: Build
run: yarn build
env:
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }}
run: |
yarn
yarn build
env: # Set environment variables for the build
SUPABASE_URL: "https://wfzpewmlyiozupulbuur.supabase.co"
SUPABASE_ANON_KEY: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6IndmenBld21seWlvenVwdWxidXVyIiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTU2NzQzMzksImV4cCI6MjAxMTI1MDMzOX0.SKIL3Q0NOBaMehH0ekFspwgcu3afp3Dl9EDzPqs1nKs"

- name: Deploy to Cloudflare
uses: ubiquity/cloudflare-deploy-action@main
with:
repository: ${{ github.repository }}
production_branch: ${{ github.event.repository.default_branch }}
output_directory: "static"
current_branch: ${{ github.ref_name }}
pull_request_number: ${{ github.event.pull_request.number }}
commit_sha: ${{ github.event.pull_request.head.sha }}
23 changes: 0 additions & 23 deletions .github/workflows/cloudflare-deploy.yml

This file was deleted.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ open http://localhost:8080
#### Mobile

![screenshot 2](https://github.com/ubiquity/devpool-directory-ui/assets/4975670/b7861ce7-1f1f-49a9-b8e2-ebb20724ee67)

12 changes: 8 additions & 4 deletions src/home/rendering/render-github-issues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ export function renderGitHubIssues(tasks: TaskMaybeFull[]) {
for (const task of tasks) {
if (!existingIssueIds.has(task.preview.id.toString())) {
const issueWrapper = everyNewIssue({ taskPreview: task, container });
setTimeout(() => issueWrapper.classList.add("active"), delay);
delay += baseDelay;
if (issueWrapper) {
setTimeout(() => issueWrapper.classList.add("active"), delay);
delay += baseDelay;
}
}
}
container.classList.add("ready");
Expand All @@ -47,12 +49,14 @@ function everyNewIssue({ taskPreview, container }: { taskPreview: TaskMaybeFull;
const organizationName = match?.[1];

if (!organizationName) {
throw new Error(`No organization name found for issue ${taskPreview.preview.id}.`);
console.warn(`No organization name found for issue ${taskPreview.preview.id}.`);
return;
}

const repositoryName = match?.[2];
if (!repositoryName) {
throw new Error("No repository name found");
console.warn("No repository name found");
return;
}
const labels = parseAndGenerateLabels(taskPreview);
setUpIssueElement(issueElement, taskPreview, organizationName, repositoryName, labels, match);
Expand Down

0 comments on commit 8706083

Please sign in to comment.