Skip to content

Commit ffca74e

Browse files
Merge branch 'Dreadwitdastacc-Ifawole' into copilot/update-nginx-dockerfile
2 parents f8f3c83 + 1b06559 commit ffca74e

90 files changed

Lines changed: 9904 additions & 5161 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.devcontainer/devcontainer.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
{
2+
"name": "Codespaces React Devcontainer",
3+
"image": "mcr.microsoft.com/vscode/devcontainers/javascript-node:0-18",
4+
"features": {},
5+
"forwardPorts": [3000, 6006],
6+
"postCreateCommand": "./scripts/setup-git-auth.sh || true && npm install",
7+
"remoteUser": "vscode",
8+
"customizations": {
9+
"vscode": {
10+
"extensions": [
11+
"GitHub.vscode-pull-request-github",
12+
"GitHub.vscode-github-actions",
13+
"ms-azuretools.vscode-docker"
14+
]
15+
}
16+
}
17+
}
118
{
219
"image": "mcr.microsoft.com/devcontainers/universal:2",
320
"hostRequirements": {

.dockerignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
node_modules
2+
dist
3+
.vite
4+
storybook-static
5+
.env
6+
.env.*
7+
npm-debug.log*
8+
yarn-debug.log*
9+
coverage
10+
node_modules
211
npm-debug.log
312
dist
413
.git

.env.example

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Cosmos DB (use emulator for local development)
2+
COSMOS_ENDPOINT=https://localhost:8081/
3+
# Emulator primary key (default emulator key)
4+
COSMOS_KEY=C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==
5+
6+
# Optional: preferred region
7+
#COSMOS_PREFERRED_REGION=East US
8+
# Azure AI Configuration
9+
# Get your API key from: https://github.com/marketplace/models
10+
AZURE_ENDPOINT=https://models.inference.ai.azure.com
11+
AZURE_API_KEY=your_github_token_here
12+
AZURE_MODEL=gpt-4o
13+
14+
# Advanced Agentic Features
15+
ENABLE_FUNCTION_CALLING=true
16+
MAX_ITERATIONS=5
17+
18+
# Azure Cosmos DB (optional, defaults to local emulator)
19+
COSMOS_ENDPOINT=https://localhost:8081
20+
COSMOS_KEY=C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==
21+
22+
# Server Configuration
23+
PORT=3002

.github/agents/my-agent.agent.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
# To make this agent available, merge this file into the default repository branch.
55
# For format details, see: https://gh.io/customagents/config
66

7-
name:
8-
description:
7+
name: My Custom Agent
8+
description: A brief description of what this agent does.
99
---
1010

1111
# My Agent
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Authenticated Checkout Example
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
authenticated-checkout:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
11+
steps:
12+
- name: Checkout using built-in token
13+
uses: actions/checkout@v4
14+
with:
15+
token: ${{ secrets.GITHUB_TOKEN }}
16+
17+
- name: Checkout using PAT (optional)
18+
if: secrets.PAT_TOKEN != ''
19+
uses: actions/checkout@v4
20+
with:
21+
token: ${{ secrets.PAT_TOKEN }}
22+
23+
- name: Show repo status
24+
run: |
25+
echo "Remote:" && git remote -v
26+
echo
27+
echo "User config:" && git config --get user.name || true
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build Storybook
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 18
19+
20+
- name: Install dependencies
21+
run: npm ci
22+
23+
- name: Build Storybook
24+
run: npm run build-storybook
25+
26+
- name: Upload Storybook artifact
27+
uses: actions/upload-artifact@v4
28+
with:
29+
name: storybook-static
30+
path: storybook-static

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
pull_request:
7+
branches: [ main, master ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Use Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: '18'
18+
- name: Install
19+
run: npm ci
20+
- name: Run tests
21+
run: npx vitest run --reporter dot

.github/workflows/codeql.yml

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
pull_request:
7+
branches: [ main, master ]
8+
schedule:
9+
- cron: '30 5 * * 1,3'
10+
- cron: '30 5,17 * * 2,4'
11+
workflow_dispatch:
12+
workflow_run:
13+
workflows: ["Build"]
14+
types: [requested]
15+
branches:
16+
- 'releases/**'
17+
workflow_call:
18+
outputs:
19+
workflow_output1:
20+
description: "The first job output"
21+
value: ${{ jobs.my_job.outputs.job_output1 }}
22+
workflow_output2:
23+
description: "The second job output"
24+
value: ${{ jobs.my_job.outputs.job_output2 }}
25+
secrets:
26+
access-token:
27+
description: 'A token passed from the caller workflow'
28+
required: false
29+
30+
jobs:
31+
analyze:
32+
name: Analyze (CodeQL)
33+
runs-on: ubuntu-latest
34+
# Example of job-level secrets; these secrets must exist in the repository
35+
secrets:
36+
COSMOS_KEY: ${{ secrets.COSMOS_KEY }}
37+
COSMOS_ENDPOINT: ${{ secrets.COSMOS_ENDPOINT }}
38+
strategy:
39+
fail-fast: false
40+
matrix:
41+
include:
42+
- language: c-cpp
43+
build-mode: autobuild
44+
- language: csharp
45+
build-mode: autobuild
46+
- language: go
47+
build-mode: autobuild
48+
- language: java
49+
build-mode: autobuild
50+
- language: rust
51+
build-mode: autobuild
52+
- language: swift
53+
build-mode: autobuild
54+
steps:
55+
- name: Checkout repository
56+
uses: actions/checkout@v5
57+
58+
- name: Initialize CodeQL
59+
uses: github/codeql-action/init@v4
60+
with:
61+
languages: ${{ matrix.language }}
62+
build-mode: ${{ matrix.build-mode }}
63+
dependency-caching: ${{ matrix.language == 'java' }}
64+
65+
- if: ${{ matrix.build-mode == 'manual' }}
66+
name: Build (manual)
67+
run: |
68+
make bootstrap
69+
make release
70+
71+
- name: Autobuild
72+
if: ${{ matrix.build-mode == 'autobuild' }}
73+
uses: github/codeql-action/autobuild@v4
74+
75+
- name: Perform CodeQL Analysis
76+
uses: github/codeql-action/analyze@v4
77+
with:
78+
category: "/language:${{ matrix.language }}"
79+
80+
test_schedule:
81+
runs-on: ubuntu-latest
82+
needs: analyze
83+
steps:
84+
- name: Not on Monday or Wednesday
85+
if: github.event.schedule != '30 5 * * 1,3'
86+
run: echo "This step will be skipped on Monday and Wednesday"
87+
88+
- name: Every time
89+
run: echo "This step will always run"
90+
91+
my_job:
92+
runs-on: ubuntu-latest
93+
outputs:
94+
job_output1: ${{ steps.set_outputs.outputs.out1 }}
95+
job_output2: ${{ steps.set_outputs.outputs.out2 }}
96+
steps:
97+
- name: Set example outputs
98+
id: set_outputs
99+
run: |
100+
echo "out1=done" >> $GITHUB_OUTPUT
101+
echo "out2=ok" >> $GITHUB_OUTPUT
102+
103+
pass-secret-to-action:
104+
runs-on: ubuntu-latest
105+
needs: my_job
106+
steps:
107+
- name: Pass the received secret to an action
108+
uses: ./.github/actions/my-action
109+
with:
110+
token: ${{ secrets.access-token }}
111+
112+
pass-secret-to-workflow:
113+
needs: my_job
114+
uses: ./.github/workflows/my-workflow
115+
secrets:
116+
token: ${{ secrets.access-token }}

.github/workflows/datadog-synthetics.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/docker-build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ name: Docker Build and Push
33
on:
44
push:
55
branches:
6+
- Dreadwitdastacc-Ifawole
67
- main
78
- copilot/**
89
tags:
910
- 'v*'
1011
pull_request:
1112
branches:
13+
- Dreadwitdastacc-Ifawole
1214
- main
1315
workflow_dispatch:
1416

0 commit comments

Comments
 (0)