Skip to content

Commit

Permalink
switching v2-develop into develop (#132)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
6 people authored Sep 2, 2024
1 parent 7f03799 commit 6d4c0a5
Show file tree
Hide file tree
Showing 33 changed files with 17,608 additions and 131 deletions.
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
lib/
dist/
node_modules/
coverage/
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* text=auto eol=lf

dist/** -diff linguist-generated=true
26 changes: 26 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
groups:
actions-minor:
update-types:
- minor
- patch

- package-ecosystem: npm
directory: /
schedule:
interval: weekly
groups:
npm-development:
dependency-type: development
update-types:
- minor
- patch
npm-production:
dependency-type: production
update-types:
- patch
83 changes: 83 additions & 0 deletions .github/linters/.eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
env:
node: true
es6: true
jest: true

globals:
Atomics: readonly
SharedArrayBuffer: readonly

ignorePatterns:
- '!.*'
- '**/node_modules/.*'
- '**/dist/.*'
- '**/coverage/.*'
- '*.json'

parser: '@typescript-eslint/parser'

parserOptions:
ecmaVersion: 2023
sourceType: module
project:
- './.github/linters/tsconfig.json'
- './tsconfig.json'

plugins:
- jest
- '@typescript-eslint'

extends:
- eslint:recommended
- plugin:@typescript-eslint/eslint-recommended
- plugin:@typescript-eslint/recommended
- plugin:github/recommended
- plugin:jest/recommended

rules:
{
'camelcase': 'off',
'eslint-comments/no-use': 'off',
'eslint-comments/no-unused-disable': 'off',
'i18n-text/no-en': 'off',
'import/no-namespace': 'off',
'no-console': 'off',
'no-unused-vars': 'off',
'prettier/prettier': 'error',
'semi': 'off',
'@typescript-eslint/array-type': 'error',
'@typescript-eslint/await-thenable': 'error',
'@typescript-eslint/ban-ts-comment': 'error',
'@typescript-eslint/consistent-type-assertions': 'error',
'@typescript-eslint/explicit-member-accessibility':
['error', { 'accessibility': 'no-public' }],
'@typescript-eslint/explicit-function-return-type':
['error', { 'allowExpressions': true }],
'@typescript-eslint/func-call-spacing': ['error', 'never'],
'@typescript-eslint/no-array-constructor': 'error',
'@typescript-eslint/no-empty-interface': 'error',
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-extraneous-class': 'error',
'@typescript-eslint/no-for-in-array': 'error',
'@typescript-eslint/no-inferrable-types': 'error',
'@typescript-eslint/no-misused-new': 'error',
'@typescript-eslint/no-namespace': 'error',
'@typescript-eslint/no-non-null-assertion': 'warn',
'@typescript-eslint/no-require-imports': 'error',
'@typescript-eslint/no-unnecessary-qualifier': 'error',
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/no-useless-constructor': 'error',
'@typescript-eslint/no-var-requires': 'error',
'@typescript-eslint/prefer-for-of': 'warn',
'@typescript-eslint/prefer-function-type': 'warn',
'@typescript-eslint/prefer-includes': 'error',
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
'@typescript-eslint/promise-function-async': 'error',
'@typescript-eslint/require-array-sort-compare': 'error',
'@typescript-eslint/restrict-plus-operands': 'error',
'@typescript-eslint/semi': ['error', 'never'],
'@typescript-eslint/space-before-function-paren': 'off',
'@typescript-eslint/type-annotation-spacing': 'error',
'@typescript-eslint/unbound-method': 'error'
}
18 changes: 18 additions & 0 deletions .github/linters/.markdown-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Unordered list style
MD004:
style: dash

# Ordered list item prefix
MD029:
style: one

# Spaces after list markers
MD030:
ul_single: 1
ol_single: 1
ul_multi: 1
ol_multi: 1

# Code block style
MD046:
style: fenced
10 changes: 10 additions & 0 deletions .github/linters/.yaml-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
rules:
document-end: disable
document-start:
level: warning
present: false
line-length:
level: warning
max: 80
allow-non-breakable-words: true
allow-non-breakable-inline-mappings: true
9 changes: 9 additions & 0 deletions .github/linters/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "../../tsconfig.json",
"compilerOptions": {
"noEmit": true
},
"include": ["../../__tests__/**/*", "../../src/**/*"],
"exclude": ["../../dist", "../../node_modules", "../../coverage", "*.json"]
}
59 changes: 59 additions & 0 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Check Transpiled JavaScript

on:
pull_request:
branches:
- v2-develop
push:
branches:
- v2-develop

permissions:
contents: read

jobs:
check-dist:
name: Check dist/
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm

- name: Init npmrc
run: |
curl -H "X-JFrog-Art-API: ${{ secrets.ARTIFACTORY_API_KEY }}" https://linearb.jfrog.io/linearb/api/npm/npm-local/auth/linearb >> .npmrc
- name: Install Dependencies
run: npm ci

- name: Build dist/ Directory
run: npm run bundle

# This will fail the workflow if the `dist/` directory is different than
# expected.
- name: Compare Directories
run: |
if [ ! -d dist/ ]; then
echo "Expected dist/ directory does not exist. See status below:"
ls -la ./
exit 1
fi
if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff --ignore-space-at-eol --text dist/
exit 1
fi
# If `dist/` was different than expected, upload the expected version as a
# workflow artifact.
- if: ${{ failure() && steps.diff.outcome == 'failure' }}
name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Continuous Integration

on:
pull_request:
branches:
- v2-develop
push:
branches:
- v2-develop

permissions:
contents: read

jobs:
test-typescript:
name: TypeScript Tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm

- name: Init npmrc
run: |
curl -H "X-JFrog-Art-API: ${{ secrets.ARTIFACTORY_API_KEY }}" https://linearb.jfrog.io/linearb/api/npm/npm-local/auth/linearb >> .npmrc
- name: Install Dependencies
run: npm ci

- name: Check Format
run: npm run format:check

- name: Lint
run: npm run lint

- name: Test
run: npm run test
43 changes: 43 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CodeQL

on:
pull_request:
branches:
- v2-develop
push:
branches:
- v2-develop
schedule:
- cron: '0 7 * * 0' # At 07:00 on Sunday

permissions:
actions: read
checks: write
contents: read
security-events: write

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
language:
- TypeScript

steps:
- uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
source-root: src

- name: Autobuild
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
Loading

0 comments on commit 6d4c0a5

Please sign in to comment.