Skip to content

Commit 6f231de

Browse files
committed
First commit, based on Teams notifier
0 parents  commit 6f231de

38 files changed

+10380
-0
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
jest.config.js

.eslintrc.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"root": true,
3+
"plugins": ["github"],
4+
"extends": ["plugin:github/recommended", "plugin:github/typescript"],
5+
"rules": {
6+
"import/extensions": ["error", "never"],
7+
"prettier/prettier": "off"
8+
}
9+
}

.funcignore

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
*.zip
2+
.vscode/
3+
*settings*.json
4+
.git/
5+
.github/
6+
.gitignore
7+
.eslint*
8+
.funcignore
9+
*.md
10+
CODEOWNERS
11+
LICENSE
12+
*.ts
13+
*.map
14+
jest.config.js
15+
*.example
16+
node_modules/.bin/
17+
scripts/
18+
*.env
19+
tsconfig.json
20+
src/
21+
test/
22+
dist/tsconfig.tsbuildinfo
23+
node_modules/*jest*/
24+
node_modules/*eslint*/
25+
node_moduels/@types/
26+
node_modules/@jest/
27+
node_modules/@eslint/
28+
node_modules/@typescript-eslint/
29+
node_modules/*/*.ts
30+
node_modules/*/test/*
31+
node_modules/*/*.map
32+
node_modules/*/.github/
33+
node_modules/*/.history/
34+
node_modules/*/.travis.yml
35+
node_modules/*/.eslintignore
36+
node_modules/*/.eslintrc.yml
37+
node_modules/*/.prettierignore
38+
node_modules/*/.prettierrc.yml
39+
node_modules/*/.nycrc
40+
node_modules/*/.jshintignore
41+
node_modules/*/.jshintrc
42+
node_modules/*/.npmignore
43+
node_modules/*/*jest*/*
44+
node_modules/*/@types/*
45+
node_modules/*/LICENSE*
46+
node_modules/*/license
47+
node_modules/*/.eslintrc
48+
node_modules/*/.prettierrc
49+
node_modules/*/diagnosticMessages.generated.json
50+
node_modules/*/tsconfig.json
51+
node_modules/*/.editorconfig

.github/workflows/eslint.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# ESLint is a tool for identifying and reporting on patterns
6+
# found in ECMAScript/JavaScript code.
7+
# More details at https://github.com/eslint/eslint
8+
# and https://eslint.org
9+
10+
name: ESLint
11+
12+
on:
13+
push:
14+
branches: [ "main" ]
15+
pull_request:
16+
# The branches below must be a subset of the branches above
17+
branches: [ "main" ]
18+
schedule:
19+
- cron: '18 22 * * 0'
20+
21+
jobs:
22+
eslint:
23+
name: Run eslint scanning
24+
runs-on: ubuntu-latest
25+
permissions:
26+
contents: read
27+
security-events: write
28+
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
29+
steps:
30+
- name: Checkout code
31+
uses: actions/checkout@v3
32+
33+
- name: Install ESLint
34+
run: |
35+
npm install [email protected]
36+
npm install @microsoft/[email protected]
37+
npm install [email protected]
38+
39+
- name: Run ESLint
40+
run: npx eslint .
41+
--config .eslintrc.json
42+
--ext .js,.jsx,.ts,.tsx
43+
--format @microsoft/eslint-formatter-sarif
44+
--output-file eslint-results.sarif
45+
continue-on-error: true
46+
47+
- name: Upload analysis results to GitHub
48+
uses: github/codeql-action/upload-sarif@v2
49+
with:
50+
sarif_file: eslint-results.sarif
51+
wait-for-processing: true

.gitignore

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
9+
# Diagnostic reports (https://nodejs.org/api/report.html)
10+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11+
12+
# Runtime data
13+
pids
14+
*.pid
15+
*.seed
16+
*.pid.lock
17+
18+
# Directory for instrumented libs generated by jscoverage/JSCover
19+
lib-cov
20+
21+
# Coverage directory used by tools like istanbul
22+
coverage
23+
24+
# nyc test coverage
25+
.nyc_output
26+
27+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
28+
.grunt
29+
30+
# Bower dependency directory (https://bower.io/)
31+
bower_components
32+
33+
# node-waf configuration
34+
.lock-wscript
35+
36+
# Compiled binary addons (https://nodejs.org/api/addons.html)
37+
build/Release
38+
39+
# Dependency directories
40+
node_modules/
41+
jspm_packages/
42+
43+
# TypeScript v1 declaration files
44+
typings/
45+
46+
# Optional npm cache directory
47+
.npm
48+
49+
# Optional eslint cache
50+
.eslintcache
51+
52+
# Optional REPL history
53+
.node_repl_history
54+
55+
# Output of 'npm pack'
56+
*.tgz
57+
58+
# Yarn Integrity file
59+
.yarn-integrity
60+
61+
# dotenv environment variables file
62+
.env
63+
.env.test
64+
65+
# parcel-bundler cache (https://parceljs.org/)
66+
.cache
67+
68+
# next.js build output
69+
.next
70+
71+
# nuxt.js build output
72+
.nuxt
73+
74+
# vuepress build output
75+
.vuepress/dist
76+
77+
# Serverless directories
78+
.serverless/
79+
80+
# FuseBox cache
81+
.fusebox/
82+
83+
# DynamoDB Local files
84+
.dynamodb/
85+
86+
# TypeScript output
87+
dist
88+
out
89+
90+
# Azure Functions artifacts
91+
bin
92+
obj
93+
*settings*.json
94+
95+
# Azurite artifacts
96+
__blobstorage__
97+
__queuestorage__
98+
__azurite_db*__.json
99+
100+
# local app-specific files
101+
# deploy zip
102+
*.zip
103+
104+
# filter settings - don't commit this, just commit filter.yml.example
105+
# if you fork this repo, you can uncomment this and commit your own filter.yml
106+
filter.yml
107+
108+
# Azure environment file
109+
azure.env

.vscode/extensions.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"ms-azuretools.vscode-azurefunctions"
4+
]
5+
}

.vscode/launch.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Attach to Node Functions",
6+
"type": "node",
7+
"request": "attach",
8+
"port": 9229,
9+
"preLaunchTask": "func: host start"
10+
}
11+
]
12+
}

.vscode/tasks.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "func",
6+
"label": "func: host start",
7+
"command": "host start",
8+
"problemMatcher": "$func-node-watch",
9+
"isBackground": true,
10+
"dependsOn": "npm build (functions)"
11+
},
12+
{
13+
"type": "shell",
14+
"label": "npm build (functions)",
15+
"command": "npm run build",
16+
"dependsOn": "npm clean (functions)",
17+
"problemMatcher": "$tsc"
18+
},
19+
{
20+
"type": "shell",
21+
"label": "npm install (functions)",
22+
"command": "npm install"
23+
},
24+
{
25+
"type": "shell",
26+
"label": "npm prune (functions)",
27+
"command": "npm prune --production",
28+
"dependsOn": "npm build (functions)",
29+
"problemMatcher": []
30+
},
31+
{
32+
"type": "shell",
33+
"label": "npm clean (functions)",
34+
"command": "npm run clean",
35+
"dependsOn": "npm install (functions)"
36+
}
37+
]
38+
}

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# CHANGELOG
2+
3+
## 0.0.1 - 2024-03-15
4+
5+
* Pre-release

CODEOWNERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# This project is maintained by:
2+
* @ctcampbell
3+
* @aegilops
4+
* @advanced-security/fss-advanced-security

0 commit comments

Comments
 (0)