Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
e5cd5f9
Printing labels from pull request
MostefaKamalLala Aug 13, 2021
0bd62c5
Added important inputs
MostefaKamalLala Aug 13, 2021
12fd923
Added github token input
MostefaKamalLala Aug 13, 2021
e51b9c0
Fixed auth
MostefaKamalLala Aug 13, 2021
c69ecb7
Added new wait to connect
MostefaKamalLala Aug 16, 2021
eb74dc2
Changed npm packages
MostefaKamalLala Aug 16, 2021
8bf3774
Changed code
MostefaKamalLala Aug 17, 2021
11c4ce0
Fixed get input
MostefaKamalLala Aug 17, 2021
df5fe38
Revert "Fixed get input"
MostefaKamalLala Aug 17, 2021
a5180d3
Revert "Changed code"
MostefaKamalLala Aug 17, 2021
3e708de
Revert "Changed npm packages"
MostefaKamalLala Aug 16, 2021
aba360d
Revert "Added new wait to connect"
MostefaKamalLala Aug 16, 2021
8aa1fc4
Fixed input
MostefaKamalLala Aug 17, 2021
86e6346
Added new wait to connect
MostefaKamalLala Aug 17, 2021
520f8c4
Fixed new api auth
MostefaKamalLala Aug 16, 2021
44157c9
Fixed printing
MostefaKamalLala Aug 17, 2021
9f044c9
Printing names only
MostefaKamalLala Aug 18, 2021
ccedc70
Merging versions by service and sorting highest
MostefaKamalLala Aug 19, 2021
4747bc8
Getting latest tag with graphQl
MostefaKamalLala Aug 24, 2021
5ec8fcc
Changed graphQl usage
MostefaKamalLala Aug 24, 2021
491acaa
More logging
MostefaKamalLala Aug 24, 2021
a86b05a
Changed set output location
MostefaKamalLala Aug 24, 2021
dd1b6fa
Added semver bumper
MostefaKamalLala Aug 24, 2021
31922a8
Added chart and .net core files version
MostefaKamalLala Aug 26, 2021
2968321
Fixed printing context for debug
MostefaKamalLala Aug 26, 2021
6e0a225
Listing service metadata versioning files paths
MostefaKamalLala Aug 27, 2021
d075998
Fixed return error
MostefaKamalLala Aug 27, 2021
185fe99
Changed file unexistant error catching
MostefaKamalLala Aug 27, 2021
e040057
Hopefully last fixed of the error
MostefaKamalLala Aug 27, 2021
38cdda0
Changed async methods and improved logging
MostefaKamalLala Aug 27, 2021
dbff1dc
Fixed error handling
MostefaKamalLala Aug 27, 2021
12b557a
Added error hint
MostefaKamalLala Aug 27, 2021
b52bd6e
More debugging
MostefaKamalLala Aug 27, 2021
b7cbd62
Fixed logic
MostefaKamalLala Aug 27, 2021
beaba7b
Fixed custom service path bug
MostefaKamalLala Aug 27, 2021
de20968
More console debugging
MostefaKamalLala Aug 27, 2021
40c1ae7
Fixed split character for custom paths
MostefaKamalLala Aug 27, 2021
7c9580a
Edit files, push tag, create release
MostefaKamalLala Aug 31, 2021
a74b9c5
Bump eslint from 7.31.0 to 7.32.0
dependabot[bot] Aug 31, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
142 changes: 91 additions & 51 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,54 +1,94 @@
{
"plugins": ["jest", "@typescript-eslint"],
"extends": ["plugin:github/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module",
"project": "./tsconfig.json"
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nrwl/nx"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"excludedFiles": ["*.stories.ts"],
"rules": {
"@nrwl/nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "scope:app",
"onlyDependOnLibsWithTags": ["*"]
},
{
"sourceTag": "scope:core",
"onlyDependOnLibsWithTags": ["scope:core", "scope:testing"]
},
{
"sourceTag": "scope:shared",
"onlyDependOnLibsWithTags": [
"scope:core",
"scope:shared",
"scope:legacy",
"scope:testing",
"scope:maps",
"scope:quotes"
]
},
{
"sourceTag": "scope:maps",
"onlyDependOnLibsWithTags": ["scope:core", "scope:shared", "scope:legacy", "scope:testing"]
},
{
"sourceTag": "scope:quotes",
"onlyDependOnLibsWithTags": [
"scope:core",
"scope:shared",
"scope:legacy",
"scope:quotes",
"scope:maps",
"scope:testing"
]
},
{
"sourceTag": "scope:aeon",
"onlyDependOnLibsWithTags": ["scope:core", "scope:shared", "scope:legacy", "scope:aeon"]
},
{
"sourceTag": "scope:legacy",
"onlyDependOnLibsWithTags": ["scope:legacy", "scope:core"]
},
{
"sourceTag": "scope:configs-client",
"onlyDependOnLibsWithTags": [
"scope:configs-client",
"scope:core",
"scope:configs",
"scope:shared",
"scope:legacy",
"scope:testing"
]
},
{
"sourceTag": "scope:configs",
"onlyDependOnLibsWithTags": [
"scope:configs",
"scope:core",
"scope:legacy",
"scope:shared",
"scope:testing"
]
}
]
}
]
}
},
"rules": {
"eslint-comments/no-use": "off",
"import/no-namespace": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/explicit-member-accessibility": ["error", {"accessibility": "no-public"}],
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/array-type": "error",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/ban-ts-comment": "error",
"camelcase": "off",
"@typescript-eslint/consistent-type-assertions": "error",
"@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-unnecessary-qualifier": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "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",
"semi": "off",
"@typescript-eslint/semi": ["error", "never"],
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/unbound-method": "error"
},
"env": {
"node": true,
"es6": true,
"jest/globals": true
{
"files": ["*.ts"],
"extends": ["plugin:@nrwl/nx/typescript"],
"rules": {
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-this-alias": "off"
}
}
}
]
}
11 changes: 4 additions & 7 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": false,
"printWidth": 120,
"singleQuote": true,
"trailingComma": "none",
"bracketSpacing": false,
"arrowParens": "avoid"
"useTabs": false,
"arrowParens": "avoid",
"endOfLine": "crlf"
}
30 changes: 24 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,29 @@
name: 'Your name here'
description: 'Provide a description here'
author: 'Your name or organization here'
name: 'Microservices versioning'
description: 'This actions is about upping versions of each microservice automatically'
author: 'Mostefa Kamal Lala'
inputs:
milliseconds: # change this
pull_number:
required: true
description: 'input description here'
default: 'default value if applicable'
description: 'The pull request number, if not provided will take the one from context'
owner:
required: true
description: 'Owner of pull request repo, if not provided will take the one from context'
repo:
required: true
description: 'Repo name, if not provided will take the one from context'
token:
required: true
description: 'Github token, if not provided will take the one from context'
working_directory:
required: true
description: 'The working directory of the repo'
services_path:
required: true
description: 'The relative path where each microservice is in repo for changing versions in files'
default: 'services'
custom_services_path:
required: false
description: 'A list of comma separated relative path by microservice that are not in the common place in the repo. '
runs:
using: 'node12'
main: 'dist/index.js'
Loading