Skip to content

Commit 06ec629

Browse files
authored
Merge pull request #67 from accordproject/main
MCP updates
2 parents 714254b + d4b46b1 commit 06ec629

32 files changed

+1056
-354
lines changed

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
github: [accordproject]
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
name: Bug Report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
<!--- Provide a general summary of the issue in the Title above -->
11+
# Bug Report 🐛
12+
<!--- Provide an expanded summary of the issue -->
13+
14+
## Expected Behavior
15+
<!--- Tell us what should happen -->
16+
17+
## Current Behavior
18+
<!--- Tell us what happens instead of the expected behavior -->
19+
20+
## Possible Solution
21+
<!--- Not obligatory, but suggest a fix/reason for the bug, -->
22+
23+
## Steps to Reproduce
24+
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
25+
<!--- reproduce this bug. Include code to reproduce, if relevant -->
26+
1.
27+
2.
28+
3.
29+
4.
30+
31+
## Context (Environment)
32+
<!--- How has this issue affected you? What are you trying to accomplish? -->
33+
<!--- Providing context helps us come up with a solution that is most useful in the real world -->
34+
### Desktop
35+
- OS: [e.g. macOS]
36+
- Browser: [e.g. Chrome, Safari]
37+
- Version: [e.g. 0.22.15]
38+
39+
## Detailed Description
40+
<!--- Provide a detailed description of the change or addition you are proposing -->
41+
42+
## Possible Implementation
43+
<!--- Not obligatory, but suggest an idea for implementing addition or change -->
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Custom Issue
3+
about: For miscellaneous, such as questions, discussions, etc.
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
<!--- Provide a general summary of the issue in the Title above -->
11+
# Discussion 🗣
12+
<!--- Provide an expanded summary of the issue -->
13+
14+
## Context
15+
<!--- Providing context helps us come to the discussion informed -->
16+
17+
## Detailed Description
18+
<!--- Provide any further details -->
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Feature Request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
<!--- Provide a general summary of the feature in the Title above -->
11+
# Feature Request 🛍️
12+
<!--- Provide an expanded summary of the feature -->
13+
14+
## Use Case
15+
<!--- Tell us what feature we should support and what should happen -->
16+
17+
## Possible Solution
18+
<!--- Not obligatory, but suggest an implementation -->
19+
20+
## Context
21+
<!--- How has this issue affected you? What are you trying to accomplish? -->
22+
<!--- Providing context helps us come up with a solution that is most useful in the real world -->
23+
24+
## Detailed Description
25+
<!--- Provide a detailed description of the change or addition you are proposing -->

.github/workflows/build.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
- v4.0.0 # Temporary, while we prepare for merge to main
11+
12+
jobs:
13+
build:
14+
name: Unit Tests
15+
16+
strategy:
17+
matrix:
18+
node-version:
19+
- 18.x
20+
- 20.x
21+
os:
22+
- windows-latest
23+
- macos-latest
24+
- ubuntu-latest
25+
26+
runs-on: ${{ matrix.os }}
27+
28+
steps:
29+
- name: git checkout
30+
uses: actions/checkout@v4
31+
32+
- name: Use Node.js ${{ matrix.node-version }}
33+
uses: actions/setup-node@v4
34+
with:
35+
node-version: ${{ matrix.node-version }}
36+
37+
- run: npm ci
38+
- run: npm run build --if-present
39+
- env:
40+
NODE_OPTIONS: "--max_old_space_size=4096"
41+
run: npm test || echo "No tests configured"
42+
43+
- name: Archive npm failure logs
44+
uses: actions/upload-artifact@v4
45+
if: failure()
46+
with:
47+
name: npm-logs
48+
path: C:\npm\cache\_logs\
49+
50+
publish:
51+
needs:
52+
- build
53+
- notify
54+
55+
name: Publish to npm
56+
if: ${{ success() && github.event_name == 'push' && github.repository_owner == 'accordproject' }}
57+
runs-on: ubuntu-latest
58+
59+
outputs:
60+
job-status: ${{ job.status }}
61+
62+
steps:
63+
- name: git checkout
64+
uses: actions/checkout@v4
65+
66+
- name: Use Node.js 18.x
67+
uses: actions/setup-node@v4
68+
with:
69+
node-version: 20.x
70+
71+
- run: npm ci
72+
- run: npm run build --if-present
73+
74+
- name: timestamp
75+
id: timestamp
76+
run: |
77+
node ./scripts/timestamp.js
78+
79+
- name: build and publish
80+
run: |
81+
npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
82+
node ./scripts/bump_version.js ${{ steps.timestamp.outputs.stamp }}
83+
npm version --workspaces --include-workspace-root --no-git-tag-version --yes --exact ${{ steps.timestamp.outputs.stamp }}
84+
npm publish --workspaces --access public --tag=unstable 2>&1

.github/workflows/close-stale.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: 'Close stale issues and PRs'
2+
on:
3+
schedule:
4+
- cron: '30 1 * * *'
5+
6+
jobs:
7+
stale:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/stale@v9
11+
with:
12+
stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 10 days.'
13+
stale-pr-message: 'This PR is stale because it has been open 15 days with no activity. Remove stale label or comment or this will be closed in 10 days.'
14+
days-before-issue-stale: 60
15+
days-before-pr-stale: 15
16+
days-before-close: 10
17+
exempt-milestones: 'v4.0'
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ "main" ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ "main" ]
20+
schedule:
21+
- cron: '34 1 * * 1'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: [ 'javascript' ]
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
38+
39+
steps:
40+
- name: Checkout repository
41+
uses: actions/checkout@v4
42+
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v3
46+
with:
47+
languages: ${{ matrix.language }}
48+
# If you wish to specify custom queries, you can do so here or in a config file.
49+
# By default, queries listed here will override any specified in a config file.
50+
# Prefix the list here with "+" to use these queries and those in the config file.
51+
52+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
53+
# queries: security-extended,security-and-quality
54+
55+
56+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
57+
# If this step fails, then you should remove it and run the build manually (see below)
58+
- name: Autobuild
59+
uses: github/codeql-action/autobuild@v3
60+
61+
# ℹ️ Command-line programs to run using the OS shell.
62+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
63+
64+
# If the Autobuild fails above, remove it and uncomment the following three lines.
65+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
66+
67+
# - run: |
68+
# echo "Run, Build Application using script"
69+
# ./location_of_script_within_repo/buildscript.sh
70+
71+
- name: Perform CodeQL Analysis
72+
uses: github/codeql-action/analyze@v3
73+
with:
74+
category: "/language:${{matrix.language}}"

.github/workflows/main.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: 20.x
20+
21+
- name: Install dependencies
22+
run: npm ci
23+
24+
- name: Run tests
25+
run: npm test || echo "No tests configured"

.github/workflows/pr_greeting.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: PR Merge Greeting
2+
3+
on:
4+
pull_request_target:
5+
types: [closed]
6+
7+
jobs:
8+
greeting:
9+
runs-on: ubuntu-latest
10+
if: github.event.pull_request.merged == true
11+
steps:
12+
- name: Add greeting comment
13+
uses: actions/github-script@v6
14+
with:
15+
github-token: ${{ secrets.GITHUB_TOKEN }}
16+
script: |
17+
const pr = context.payload.pull_request;
18+
19+
// Create a personalized thank you message
20+
const message = `
21+
# 🎉 Thank you for your contribution! 🎉
22+
23+
Dear @${pr.user.login},
24+
25+
Your pull request has been successfully merged into the project! We greatly appreciate your efforts and the time you've dedicated to improving our repository.
26+
27+
## What happens next?
28+
- Your changes will be included in the next release
29+
- Your name will be added to our contributors list
30+
- Feel free to take on another issue or suggest new features
31+
32+
Once again, thank you for being part of our community!
33+
34+
Best regards,
35+
The APAP Team
36+
`;
37+
38+
github.rest.issues.createComment({
39+
owner: context.repo.owner,
40+
repo: context.repo.repo,
41+
issue_number: pr.number,
42+
body: message
43+
});

.github/workflows/pr_request.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: PR Check
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
7+
jobs:
8+
lint:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
13+
- name: Set up Node.js
14+
uses: actions/setup-node@v3
15+
with:
16+
node-version: 20.x
17+
18+
- name: Install dependencies
19+
run: npm ci
20+
21+
- name: Lint
22+
run: npm run lint || echo "No linting configured"
23+
24+
test:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v3
28+
29+
- name: Set up Node.js
30+
uses: actions/setup-node@v3
31+
with:
32+
node-version: 20.x
33+
34+
- name: Install dependencies
35+
run: npm ci
36+
37+
- name: Run tests
38+
run: npm test || echo "No tests configured"
39+
40+
build:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v3
44+
45+
- name: Set up Node.js
46+
uses: actions/setup-node@v3
47+
with:
48+
node-version: 20.x
49+
50+
- name: Install dependencies
51+
run: npm ci
52+
53+
- name: Build
54+
run: npm run build || echo "No build script configured"

0 commit comments

Comments
 (0)