Skip to content

Commit fe606a9

Browse files
* Dependencies updated, eslint config converted to yaml * fixes issue remote links return type (MrRefactoring#296) * CHANGELOG updated --------- Co-authored-by: Fernando Maia <fsmaia@gmail.com>
1 parent 47db5aa commit fe606a9

File tree

8 files changed

+1280
-777
lines changed

8 files changed

+1280
-777
lines changed

.eslintrc

Lines changed: 0 additions & 126 deletions
This file was deleted.

.eslintrc.yml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
parser: "@typescript-eslint/parser"
2+
extends:
3+
- "airbnb-typescript/base"
4+
parserOptions:
5+
ecmaVersion: 2018
6+
sourceType: "module"
7+
project: "./tsconfig.lint.json"
8+
plugins:
9+
- "import"
10+
env:
11+
node: true
12+
browser: true
13+
rules:
14+
"@typescript-eslint/lines-between-class-members": "off"
15+
"arrow-parens":
16+
- "error"
17+
- "as-needed"
18+
"class-methods-use-this": "off"
19+
"eol-last": "error"
20+
"import/no-cycle": "off"
21+
"import/prefer-default-export": "off"
22+
"linebreak-style":
23+
- "error"
24+
- "unix"
25+
"lines-between-class-members": "off"
26+
"max-len": "off"
27+
"no-trailing-spaces": "error"
28+
"no-underscore-dangle": "off"
29+
"padding-line-between-statements":
30+
- "error"
31+
- blankLine: "always"
32+
prev: "*"
33+
next:
34+
- "block"
35+
- "block-like"
36+
- "cjs-export"
37+
- "class"
38+
- "const"
39+
- "export"
40+
- "import"
41+
- "let"
42+
- "var"
43+
- blankLine: "always"
44+
prev:
45+
- "block"
46+
- "block-like"
47+
- "cjs-export"
48+
- "class"
49+
- "const"
50+
- "export"
51+
- "import"
52+
- "let"
53+
- "var"
54+
next: "*"
55+
- blankLine: "any"
56+
prev:
57+
- "const"
58+
- "let"
59+
- "var"
60+
next:
61+
- "const"
62+
- "let"
63+
- "var"
64+
- blankLine: "never"
65+
prev:
66+
- "import"
67+
next:
68+
- "import"
69+
- blankLine: "always"
70+
prev:
71+
- "import"
72+
next:
73+
- "export"
74+
- blankLine: "any"
75+
prev:
76+
- "export"
77+
next:
78+
- "export"
79+
settings:
80+
import/parsers:
81+
"@typescript-eslint/parser":
82+
- ".ts"

.github/workflows/publish.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,65 @@ jobs:
105105
git add .
106106
git commit -m "Update documentation for version v${{ env.VERSION }}"
107107
git push
108+
109+
creating-git-tag:
110+
name: Create Git Tag
111+
needs:
112+
- publish
113+
runs-on: self-hosted
114+
steps:
115+
- name: Checkout sources
116+
uses: actions/checkout@v4
117+
with:
118+
fetch-depth: 0
119+
120+
- name: Set up Node.js
121+
uses: actions/setup-node@v3
122+
with:
123+
node-version: 18
124+
125+
- name: Extract version from package.json
126+
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
127+
128+
- name: Create and Push Git Tag
129+
run: |
130+
git config user.name "GitHub Actions"
131+
git config user.email "actions@github.com"
132+
TAG="v${{ env.version }}"
133+
git tag $TAG
134+
git push origin $TAG
135+
136+
creating-github-release:
137+
name: Create GitHub Release
138+
needs:
139+
- creating-git-tag
140+
runs-on: self-hosted
141+
steps:
142+
- name: Checkout sources
143+
uses: actions/checkout@v4
144+
145+
- name: Set up Node.js
146+
uses: actions/setup-node@v3
147+
with:
148+
node-version: 18
149+
150+
- name: Extract version from package.json
151+
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
152+
153+
- name: Extract Changelog Entry
154+
id: changelog
155+
uses: juliangruber/read-file-action@v1
156+
with:
157+
path: ./CHANGELOG.md
158+
159+
- name: Parse Changelog Entry
160+
run: |
161+
CHANGELOG_CONTENT=$(echo '${{ steps.changelog.outputs.content }}' | awk '/### ${{ steps.pkg.outputs.version }}/,/### /{print; if (/### / && !/### ${{ steps.pkg.outputs.version }}/){exit}}')
162+
echo "CHANGELOG=$CHANGELOG_CONTENT" >> $GITHUB_ENV
163+
164+
- name: Create GitHub Release
165+
uses: softprops/action-gh-release@v1
166+
with:
167+
tag_name: v${{ env.version }}
168+
name: Release v${{ env.version }}
169+
body: ${{ env.CHANGELOG }}

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Jira.js changelog
22

3+
### 3.0.2
4+
5+
- Return type fixed for `issue remote links` endpoint. Thanks to [Fernando Maia](https://github.com/fsmaia) for reporting and [fixing](https://github.com/MrRefactoring/jira.js/pull/296) [the issue](https://github.com/MrRefactoring/jira.js/issues/295).
6+
- Dependencies upgraded
7+
- CI/CD improvements
8+
39
### 3.0.1
410

511
- Dependencies upgraded

0 commit comments

Comments
 (0)