Skip to content

Commit 6d4c0a5

Browse files
MishaKavEladKohaviyeelali14Yeela Lifshitzgithub-actions[bot]
authored
switching v2-develop into develop (#132)
* initial commit for v2-alpha (#65) * - add minification (#66) - bump gitstream-core (use node 20x) - remove unused `update_times_a_day` - remove python installation * Make infra for native GitHub action (#67) * add init infra for native action: based on https://github.com/actions/typescript-action * chore: Update node version file to use .nvmrc instead of .node-version * chore: Update npmrc file to use relative path * fix super-lint * Fix nvmrc issue on action (#68) * chore: remove using of `.nvmrc` in action * chore: remove super-linter * chore: remove double `run` from info * chore: add setup-python action for Python 3.x * chore: update dependabot schedule to daily * add init note on v2 * install dependencies for plugins (#69) * Fix escaping in ignore files (#70) * fixing escaping in `ignore_files` * changelog 2.0.2 * Fix escaping in files when contains special characters (#72) * LINBEE-7712 improve analytics by sending version (#74) * chore: update gitstream-core to next version * chore: update logs @linearb/gitstream-core to version 2.0.2 (#76) * chore: update devDependencies to latest versions * chore: update @linearb/gitstream-core to version 2.1.6 (#77) - bump dependencies - new parser - fix webhook triggers * chore: update @linearb/gitstream-core to version 2.1.7 (#78) Update rule parser version * LINBEE-7677 | add support to a short version of explain code experts (#79) * chore: update @linearb/gitstream-core to version 2.1.19 (#80) * chore: update @linearb/gitstream-core to version 2.1.20 (#81) Internal improvement: Remove unnecessary execution of git log * chore: update @linearb/gitstream-core to version 2.1.21 add concat mode to update description (#82) * LINBEE-7845 - remove code directory (#83) - remove code directory before executing Co-authored-by: Yeela Lifshitz <yeelalifshitz@Yeela-MacBook-Pro.local> * initial workflow to open PR automatically with new version of gitstream-core * chore: update @linearb/gitstream-core to version 2.1.22 | add update title action (#84) * bump to (#87) Co-authored-by: GitHub Actions Bot <actions@github.com> * bump to (#89) Co-authored-by: GitHub Actions Bot <actions@github.com> * bump to (#90) Co-authored-by: GitHub Actions Bot <actions@github.com> * fix ticket number in Bump gitstream-core * bump to (#92) Co-authored-by: GitHub Actions Bot <actions@github.com> * bump to (#96) add support to add-thread (supported only in gitlab) Co-authored-by: GitHub Actions Bot <actions@github.com> * LINBEE-9048 | fix triggers regression (#97) * bump to (#98) skip sending metrics Co-authored-by: GitHub Actions Bot <actions@github.com> * bump to (#99) Co-authored-by: GitHub Actions Bot <actions@github.com> * bump to (#102) Co-authored-by: GitHub Actions Bot <actions@github.com> * bump to (#103) Co-authored-by: GitHub Actions Bot <actions@github.com> * chore: update @octokit/rest npm dependency to version 20.1.1 (#106) * bump to (#109) fixes Co-authored-by: GitHub Actions Bot <actions@github.com> * bump to (#110) upgrade axios Co-authored-by: GitHub Actions Bot <actions@github.com> * LINBEE-9077 - add the ability to skip clone + download artifact (#108) * LINBEE-9077 - add the ability to skip clone + download artifact * core 2.1.34-1 debug * simulate non commit * core 2.1.34-2 debug * remove simulation * core 2.1.34-3 * simulate cache * remove cache simulation * revert core debug versions * format * ignore naming convention error * review fixes * fix to boolean * fix format * fix condition * fix * simulate cache * revert simulate cache --------- Co-authored-by: Yeela Lifshitz <yeelalifshitz@Yeela-MacBook-Pro.local> * LINBEE-9077 - tiny fix (#111) Co-authored-by: Yeela Lifshitz <yeelalifshitz@Yeela-MacBook-Pro.local> * LINBEE-9076 - fix condition (#112) * LINBEE-9076 - fix condition * debug * debug * debug * debug * debug * fix * remove log * format --------- Co-authored-by: Yeela Lifshitz <yeelalifshitz@Yeela-MacBook-Pro.local> * bump to (#113) hotfix Co-authored-by: GitHub Actions Bot <actions@github.com> * bump to (#115) Co-authored-by: GitHub Actions Bot <actions@github.com> * LINBEE-10041 - Handle cases where downloading artifacts fails and improve code safety (#114) * LINBEE-10041 - fix case when download artifact fails * fix format * fix format * fix var name * debug * use env.CACHE_DOWNLOAD_FAILED * convert setFailed to warning * remove debugs * core debug * fix condition * revert debug core --------- Co-authored-by: Yeela Lifshitz <yeelalifshitz@Yeela-MacBook-Pro.local> * fix typo in description input * LINBEE-10093 - increase retention days to week (#120) Co-authored-by: Yeela Lifshitz <yeelalifshitz@Yeela-MacBook-Pro.local> * bump to (#123) increase performance on custom filter plugins Co-authored-by: GitHub Actions Bot <actions@github.com> * bump to (#124) develop Co-authored-by: GitHub Actions Bot <actions@github.com> * bump to (#125) develop Co-authored-by: GitHub Actions Bot <actions@github.com> * LINBEE-10093 - distinct between org and repo levels on download artifact (#121) * LINBEE-10093 - distinct between org and repo levels when download artifact * fix * format * debug * debug * debug * fix * core debug * revert debug core * debug core * debug core * debug core * remove debugs * abort debug core version * dedug core * abort debug core --------- Co-authored-by: Yeela Lifshitz <yeelalifshitz@Yeela-MacBook-Pro.local> * bump to (#127) Co-authored-by: GitHub Actions Bot <actions@github.com> - fix `isFormattingChange` when Python files have syntax errors - remove `babel` warning when have `isFormattingChange` in ts/js files * bump to (#128) develop Co-authored-by: GitHub Actions Bot <actions@github.com> * bump to (#131) add built-in filters: ``` decode: {{ "base64: SGVsbG8gV29ybGQ=" | decode }} # Hello World getTimestamp: {{ "" | getTimestamp }} # "2024-08-28T10:57:52.063Z" encode: {{ "Hello World" | encode }} # base64: SGVsbG8gV29ybGQ= ``` Co-authored-by: GitHub Actions Bot <actions@github.com> --------- Co-authored-by: Elad Kohavi <106978846+EladKohavi@users.noreply.github.com> Co-authored-by: Yeela Lifshitz <52451294+yeelali14@users.noreply.github.com> Co-authored-by: Yeela Lifshitz <yeelalifshitz@Yeela-MacBook-Pro.local> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: GitHub Actions Bot <actions@github.com>
1 parent 7f03799 commit 6d4c0a5

33 files changed

Lines changed: 17608 additions & 131 deletions

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
lib/
2+
dist/
3+
node_modules/
4+
coverage/

.gitattributes

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

.github/dependabot.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: daily
7+
groups:
8+
actions-minor:
9+
update-types:
10+
- minor
11+
- patch
12+
13+
- package-ecosystem: npm
14+
directory: /
15+
schedule:
16+
interval: weekly
17+
groups:
18+
npm-development:
19+
dependency-type: development
20+
update-types:
21+
- minor
22+
- patch
23+
npm-production:
24+
dependency-type: production
25+
update-types:
26+
- patch

.github/linters/.eslintrc.yml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
env:
2+
node: true
3+
es6: true
4+
jest: true
5+
6+
globals:
7+
Atomics: readonly
8+
SharedArrayBuffer: readonly
9+
10+
ignorePatterns:
11+
- '!.*'
12+
- '**/node_modules/.*'
13+
- '**/dist/.*'
14+
- '**/coverage/.*'
15+
- '*.json'
16+
17+
parser: '@typescript-eslint/parser'
18+
19+
parserOptions:
20+
ecmaVersion: 2023
21+
sourceType: module
22+
project:
23+
- './.github/linters/tsconfig.json'
24+
- './tsconfig.json'
25+
26+
plugins:
27+
- jest
28+
- '@typescript-eslint'
29+
30+
extends:
31+
- eslint:recommended
32+
- plugin:@typescript-eslint/eslint-recommended
33+
- plugin:@typescript-eslint/recommended
34+
- plugin:github/recommended
35+
- plugin:jest/recommended
36+
37+
rules:
38+
{
39+
'camelcase': 'off',
40+
'eslint-comments/no-use': 'off',
41+
'eslint-comments/no-unused-disable': 'off',
42+
'i18n-text/no-en': 'off',
43+
'import/no-namespace': 'off',
44+
'no-console': 'off',
45+
'no-unused-vars': 'off',
46+
'prettier/prettier': 'error',
47+
'semi': 'off',
48+
'@typescript-eslint/array-type': 'error',
49+
'@typescript-eslint/await-thenable': 'error',
50+
'@typescript-eslint/ban-ts-comment': 'error',
51+
'@typescript-eslint/consistent-type-assertions': 'error',
52+
'@typescript-eslint/explicit-member-accessibility':
53+
['error', { 'accessibility': 'no-public' }],
54+
'@typescript-eslint/explicit-function-return-type':
55+
['error', { 'allowExpressions': true }],
56+
'@typescript-eslint/func-call-spacing': ['error', 'never'],
57+
'@typescript-eslint/no-array-constructor': 'error',
58+
'@typescript-eslint/no-empty-interface': 'error',
59+
'@typescript-eslint/no-explicit-any': 'error',
60+
'@typescript-eslint/no-extraneous-class': 'error',
61+
'@typescript-eslint/no-for-in-array': 'error',
62+
'@typescript-eslint/no-inferrable-types': 'error',
63+
'@typescript-eslint/no-misused-new': 'error',
64+
'@typescript-eslint/no-namespace': 'error',
65+
'@typescript-eslint/no-non-null-assertion': 'warn',
66+
'@typescript-eslint/no-require-imports': 'error',
67+
'@typescript-eslint/no-unnecessary-qualifier': 'error',
68+
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
69+
'@typescript-eslint/no-unused-vars': 'error',
70+
'@typescript-eslint/no-useless-constructor': 'error',
71+
'@typescript-eslint/no-var-requires': 'error',
72+
'@typescript-eslint/prefer-for-of': 'warn',
73+
'@typescript-eslint/prefer-function-type': 'warn',
74+
'@typescript-eslint/prefer-includes': 'error',
75+
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
76+
'@typescript-eslint/promise-function-async': 'error',
77+
'@typescript-eslint/require-array-sort-compare': 'error',
78+
'@typescript-eslint/restrict-plus-operands': 'error',
79+
'@typescript-eslint/semi': ['error', 'never'],
80+
'@typescript-eslint/space-before-function-paren': 'off',
81+
'@typescript-eslint/type-annotation-spacing': 'error',
82+
'@typescript-eslint/unbound-method': 'error'
83+
}

.github/linters/.markdown-lint.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Unordered list style
2+
MD004:
3+
style: dash
4+
5+
# Ordered list item prefix
6+
MD029:
7+
style: one
8+
9+
# Spaces after list markers
10+
MD030:
11+
ul_single: 1
12+
ol_single: 1
13+
ul_multi: 1
14+
ol_multi: 1
15+
16+
# Code block style
17+
MD046:
18+
style: fenced

.github/linters/.yaml-lint.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
rules:
2+
document-end: disable
3+
document-start:
4+
level: warning
5+
present: false
6+
line-length:
7+
level: warning
8+
max: 80
9+
allow-non-breakable-words: true
10+
allow-non-breakable-inline-mappings: true

.github/linters/tsconfig.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "https://json.schemastore.org/tsconfig",
3+
"extends": "../../tsconfig.json",
4+
"compilerOptions": {
5+
"noEmit": true
6+
},
7+
"include": ["../../__tests__/**/*", "../../src/**/*"],
8+
"exclude": ["../../dist", "../../node_modules", "../../coverage", "*.json"]
9+
}

.github/workflows/check-dist.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Check Transpiled JavaScript
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- v2-develop
7+
push:
8+
branches:
9+
- v2-develop
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
check-dist:
16+
name: Check dist/
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version-file: .nvmrc
25+
cache: npm
26+
27+
- name: Init npmrc
28+
run: |
29+
curl -H "X-JFrog-Art-API: ${{ secrets.ARTIFACTORY_API_KEY }}" https://linearb.jfrog.io/linearb/api/npm/npm-local/auth/linearb >> .npmrc
30+
31+
- name: Install Dependencies
32+
run: npm ci
33+
34+
- name: Build dist/ Directory
35+
run: npm run bundle
36+
37+
# This will fail the workflow if the `dist/` directory is different than
38+
# expected.
39+
- name: Compare Directories
40+
run: |
41+
if [ ! -d dist/ ]; then
42+
echo "Expected dist/ directory does not exist. See status below:"
43+
ls -la ./
44+
exit 1
45+
fi
46+
if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then
47+
echo "Detected uncommitted changes after build. See status below:"
48+
git diff --ignore-space-at-eol --text dist/
49+
exit 1
50+
fi
51+
52+
# If `dist/` was different than expected, upload the expected version as a
53+
# workflow artifact.
54+
- if: ${{ failure() && steps.diff.outcome == 'failure' }}
55+
name: Upload Artifact
56+
uses: actions/upload-artifact@v4
57+
with:
58+
name: dist
59+
path: dist/

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Continuous Integration
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- v2-develop
7+
push:
8+
branches:
9+
- v2-develop
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
test-typescript:
16+
name: TypeScript Tests
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version-file: .nvmrc
25+
cache: npm
26+
27+
- name: Init npmrc
28+
run: |
29+
curl -H "X-JFrog-Art-API: ${{ secrets.ARTIFACTORY_API_KEY }}" https://linearb.jfrog.io/linearb/api/npm/npm-local/auth/linearb >> .npmrc
30+
31+
- name: Install Dependencies
32+
run: npm ci
33+
34+
- name: Check Format
35+
run: npm run format:check
36+
37+
- name: Lint
38+
run: npm run lint
39+
40+
- name: Test
41+
run: npm run test
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CodeQL
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- v2-develop
7+
push:
8+
branches:
9+
- v2-develop
10+
schedule:
11+
- cron: '0 7 * * 0' # At 07:00 on Sunday
12+
13+
permissions:
14+
actions: read
15+
checks: write
16+
contents: read
17+
security-events: write
18+
19+
jobs:
20+
analyze:
21+
name: Analyze
22+
runs-on: ubuntu-latest
23+
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
language:
28+
- TypeScript
29+
30+
steps:
31+
- uses: actions/checkout@v4
32+
33+
- name: Initialize CodeQL
34+
uses: github/codeql-action/init@v3
35+
with:
36+
languages: ${{ matrix.language }}
37+
source-root: src
38+
39+
- name: Autobuild
40+
uses: github/codeql-action/autobuild@v3
41+
42+
- name: Perform CodeQL Analysis
43+
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)