Skip to content

Commit acace7f

Browse files
authored
Merge branch 'main' into patch-1
2 parents 009fe4e + 438628a commit acace7f

85 files changed

Lines changed: 134422 additions & 13399 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.

.eslintrc.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@
99
"plugin:import/errors",
1010
"plugin:import/warnings",
1111
"plugin:import/typescript",
12-
"plugin:prettier/recommended",
13-
"prettier/@typescript-eslint"
12+
"plugin:prettier/recommended"
1413
],
1514
"plugins": ["@typescript-eslint", "simple-import-sort", "jest"],
1615
"rules": {
1716
"import/first": "error",
1817
"import/newline-after-import": "error",
1918
"import/no-duplicates": "error",
20-
"simple-import-sort/sort": "error",
19+
"simple-import-sort/imports": "error",
2120
"sort-imports": "off"
2221
}
2322
}

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.licenses/** -diff linguist-generated=true
2+
* text=auto eol=lf

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @actions/actions-cache

.github/auto_assign.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Set to true to add reviewers to pull requests
2+
addReviewers: true
3+
4+
# Set to true to add assignees to pull requests
5+
addAssignees: false
6+
7+
# A list of reviewers to be added to pull requests (GitHub user name)
8+
reviewers:
9+
- phantsure
10+
- aparna-ravindra
11+
- tiwarishub
12+
- vsvipul
13+
- bishal-pdmsft
14+
15+
# A number of reviewers added to the pull request
16+
# Set 0 to add all the reviewers (default: 0)
17+
numberOfReviewers: 1
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Issue assignment
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
jobs:
8+
auto-assign:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: 'Auto-assign issue'
12+
uses: pozil/auto-assign-issue@v1.4.0
13+
with:
14+
assignees: phantsure,tiwarishub,aparna-ravindra,vsvipul,bishal-pdmsft
15+
numOfAssignee: 1

.github/workflows/auto-assign.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: 'Auto Assign'
2+
on:
3+
pull_request:
4+
types: [opened, ready_for_review]
5+
6+
jobs:
7+
add-reviews:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: kentaro-m/auto-assign-action@v1.2.1

.github/workflows/check-dist.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# `dist/index.js` is a special file in Actions.
2+
# When you reference an action with `uses:` in a workflow,
3+
# `index.js` is the code that will run.
4+
# For our project, we generate this file through a build process
5+
# from other source files.
6+
# We need to make sure the checked-in `index.js` actually matches what we expect it to be.
7+
name: Check dist/
8+
9+
on:
10+
push:
11+
branches:
12+
- main
13+
paths-ignore:
14+
- '**.md'
15+
pull_request:
16+
paths-ignore:
17+
- '**.md'
18+
workflow_dispatch:
19+
20+
jobs:
21+
check-dist:
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- uses: actions/checkout@v3
26+
- name: Setup Node.js 16.x
27+
uses: actions/setup-node@v3
28+
with:
29+
node-version: 16.x
30+
- name: Install dependencies
31+
run: npm ci
32+
- name: Rebuild the dist/ directory
33+
run: npm run build
34+
35+
- name: Compare the expected and actual dist/ directories
36+
run: |
37+
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
38+
echo "Detected uncommitted changes after build. See status below:"
39+
git diff
40+
exit 1
41+
fi
42+
id: diff
43+
44+
# If index.js was different than expected, upload the expected version as an artifact
45+
- uses: actions/upload-artifact@v3
46+
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
47+
with:
48+
name: dist
49+
path: dist/
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Close inactive issues
2+
on:
3+
schedule:
4+
- cron: "30 8 * * *"
5+
6+
jobs:
7+
close-issues:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
steps:
13+
- uses: actions/stale@v3
14+
with:
15+
days-before-issue-stale: 200
16+
days-before-issue-close: 5
17+
stale-issue-label: "stale"
18+
stale-issue-message: "This issue is stale because it has been open for 200 days with no activity. Leave a comment to avoid closing this issue in 5 days."
19+
close-issue-message: "This issue was closed because it has been inactive for 5 days since being marked as stale."
20+
days-before-pr-stale: -1
21+
days-before-pr-close: -1
22+
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
steps:
1616
- name: Checkout repository
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v3
1818
with:
1919
# We must fetch at least the immediate parents so that if this is
2020
# a pull request then we can checkout the head.
@@ -24,7 +24,7 @@ jobs:
2424
# the head of the pull request instead of the merge commit.
2525
- run: git checkout HEAD^2
2626
if: ${{ github.event_name == 'pull_request' }}
27-
27+
2828
# Initializes the CodeQL tools for scanning.
2929
- name: Initialize CodeQL
3030
uses: github/codeql-action/init@v1

.github/workflows/licensed.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Licensed
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
name: Check licenses
15+
steps:
16+
- uses: actions/checkout@v3
17+
- run: npm ci
18+
- name: Install licensed
19+
run: |
20+
cd $RUNNER_TEMP
21+
curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/2.12.2/licensed-2.12.2-linux-x64.tar.gz
22+
sudo tar -xzf licensed.tar.gz
23+
sudo mv licensed /usr/local/bin/licensed
24+
- run: licensed status

0 commit comments

Comments
 (0)