@beauraines/sprint-tracker 0.6.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/publish.yml +54 -0
- package/.github/workflows/test.yaml +27 -0
- package/CHANGELOG.md +28 -0
- package/cmds/addOutcomes.js +1 -0
- package/package.json +1 -1
- package/src/addOutcomes.js +1 -0
- package/src/addSprint.js +1 -0
- package/utils/readConfig.js +8 -7
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
name: 'Publish to NPM'
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_run:
|
|
5
|
+
workflows: ['Node.js CI']
|
|
6
|
+
types: [completed]
|
|
7
|
+
branches: [master,main]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
publish-new-version:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v3
|
|
15
|
+
with:
|
|
16
|
+
fetch-depth: '0'
|
|
17
|
+
- name: git setup
|
|
18
|
+
run: |
|
|
19
|
+
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
20
|
+
git config --local user.name "github-actions[bot]"
|
|
21
|
+
- name: setup node
|
|
22
|
+
uses: actions/setup-node@v3
|
|
23
|
+
with:
|
|
24
|
+
node-version: 16.x
|
|
25
|
+
registry-url: 'https://registry.npmjs.org'
|
|
26
|
+
- name: npm install
|
|
27
|
+
run: npm ci
|
|
28
|
+
|
|
29
|
+
- name: Should release
|
|
30
|
+
id: should_release
|
|
31
|
+
continue-on-error: true
|
|
32
|
+
run: npm run should-release -- -v
|
|
33
|
+
|
|
34
|
+
- name: No release
|
|
35
|
+
if: steps.should_release.outcome != 'success'
|
|
36
|
+
run: echo "No release required. Skipping publishing."
|
|
37
|
+
|
|
38
|
+
- name: Version bump
|
|
39
|
+
if: steps.should_release.outcome == 'success'
|
|
40
|
+
run: npm run release
|
|
41
|
+
|
|
42
|
+
- name: Publish to NPM
|
|
43
|
+
if: steps.should_release.outcome == 'success'
|
|
44
|
+
run: npm publish
|
|
45
|
+
env:
|
|
46
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
47
|
+
|
|
48
|
+
- name: Push commits to GitHub
|
|
49
|
+
if: steps.should_release.outcome == 'success'
|
|
50
|
+
uses: ad-m/github-push-action@master
|
|
51
|
+
with:
|
|
52
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
53
|
+
branch: ${{ github.ref }}
|
|
54
|
+
tags: true
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
name: Node.js CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ main ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ main ]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
build:
|
|
11
|
+
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
|
|
14
|
+
strategy:
|
|
15
|
+
matrix:
|
|
16
|
+
node-version: [16.x]
|
|
17
|
+
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v3
|
|
20
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
21
|
+
uses: actions/setup-node@v3
|
|
22
|
+
with:
|
|
23
|
+
node-version: ${{ matrix.node-version }}
|
|
24
|
+
- run: npm ci
|
|
25
|
+
- run: npm run lint
|
|
26
|
+
- run: npm run build --if-present
|
|
27
|
+
- run: npm test -- --passWithNoTests
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.6.2](https://bitbucket.org/beauraines/sprint-tracker/compare/v0.6.1...v0.6.2) (2023-12-07)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* Add database seeds ([0cdc547](https://bitbucket.org/beauraines/sprint-tracker/commit/0cdc547d75ee2f91fb04c779cf7179548c0af536)), closes [#21](https://bitbucket.org/beauraines/sprint-tracker/issues/21)
|
|
11
|
+
* Add new project command ([bb55704](https://bitbucket.org/beauraines/sprint-tracker/commit/bb557046848ad5e9be3e1cb479a9a9695fbb3adf)), closes [#2](https://bitbucket.org/beauraines/sprint-tracker/issues/2)
|
|
12
|
+
* adds bash completion ([52d217d](https://bitbucket.org/beauraines/sprint-tracker/commit/52d217d455fe7ed88a817735f07b0e6d816786d7))
|
|
13
|
+
* adds command to generate Sprint Outcome visualization ([671c350](https://bitbucket.org/beauraines/sprint-tracker/commit/671c350144625296675028b57e9cfada0dc204cc))
|
|
14
|
+
* adds command to prompt and add project ([e9c788e](https://bitbucket.org/beauraines/sprint-tracker/commit/e9c788e3c80edadf593be73a6d48edaef42cfdc1)), closes [#2](https://bitbucket.org/beauraines/sprint-tracker/issues/2)
|
|
15
|
+
* adds config command ([e5d1f4e](https://bitbucket.org/beauraines/sprint-tracker/commit/e5d1f4e2ded5d5e8bb0e930575314088c583c1f0))
|
|
16
|
+
* adds docker compose file ([0a2fffc](https://bitbucket.org/beauraines/sprint-tracker/commit/0a2fffc7e6b8d8c15b88fd130528fd8f3e51fd02))
|
|
17
|
+
* adds shell script to generate backlog by team ([5063a42](https://bitbucket.org/beauraines/sprint-tracker/commit/5063a427613a307da3a26dd2c6f561dd0e234e8b))
|
|
18
|
+
* compensates for unestimated work-items ([#19](https://bitbucket.org/beauraines/sprint-tracker/issues/19)) ([79bfa68](https://bitbucket.org/beauraines/sprint-tracker/commit/79bfa68bc30a6244416af10fcb26007957ee0f0f))
|
|
19
|
+
* makes config path work cross-OS ([4fae74b](https://bitbucket.org/beauraines/sprint-tracker/commit/4fae74b4ba45f5bf0f6d62c7b924d2ead01d0d73))
|
|
20
|
+
* Prettify output with cli-table3 ([682b72f](https://bitbucket.org/beauraines/sprint-tracker/commit/682b72f343c4cb34e8b36bb907065993f09b4c70)), closes [#5](https://bitbucket.org/beauraines/sprint-tracker/issues/5)
|
|
21
|
+
* removes description from sprint display ([1ebd19e](https://bitbucket.org/beauraines/sprint-tracker/commit/1ebd19e3aca1c9dbaed021b84963b4dc7aa3e135))
|
|
22
|
+
* saves feature team backlog to a file ([01e79b5](https://bitbucket.org/beauraines/sprint-tracker/commit/01e79b53b9e067e33151e6d4f38b47900c7439ae))
|
|
23
|
+
* scripts to create visualizations ([a6aa4f8](https://bitbucket.org/beauraines/sprint-tracker/commit/a6aa4f861e526a5abb7fc9cb77af2c719aae1b24))
|
|
24
|
+
* **visuals:** Updates sprint outcomes legend ([b2010db](https://bitbucket.org/beauraines/sprint-tracker/commit/b2010db22c310c341dbe8075a596bbedff7dbd25))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* removes extraneous db output console logging ([#35](https://bitbucket.org/beauraines/sprint-tracker/issues/35)) ([c07e318](https://bitbucket.org/beauraines/sprint-tracker/commit/c07e3183df934dc8a2d796fd7ad68c94163bf91d)), closes [#14](https://bitbucket.org/beauraines/sprint-tracker/issues/14)
|
|
30
|
+
* removes unneeded log statement ([92cca30](https://bitbucket.org/beauraines/sprint-tracker/commit/92cca30b1a3101bf8038cd8c03110bd091e5392a))
|
|
31
|
+
* **tracker:** adding sprint with out commmitment ([3cf79fa](https://bitbucket.org/beauraines/sprint-tracker/commit/3cf79fa7805fe2f1b820378336935c545daf29ce))
|
|
32
|
+
|
|
5
33
|
### [0.6.1](https://bitbucket.org/beauraines/sprint-tracker/compare/v0.6.0...v0.6.1) (2023-03-25)
|
|
6
34
|
|
|
7
35
|
|
package/cmds/addOutcomes.js
CHANGED
|
@@ -87,6 +87,7 @@ const handler = async function () {
|
|
|
87
87
|
delete outcome.outcome_name
|
|
88
88
|
delete outcome.outcome_description
|
|
89
89
|
}
|
|
90
|
+
// eslint-disable-next-line no-unused-vars
|
|
90
91
|
let result = await db.insert(database,'sprint_outcomes',sprintOutcomes,['sprint_id','outcome_id'])
|
|
91
92
|
}
|
|
92
93
|
|
package/package.json
CHANGED
package/src/addOutcomes.js
CHANGED
package/src/addSprint.js
CHANGED
package/utils/readConfig.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const fs = require('fs');
|
|
2
|
-
const { helpers
|
|
2
|
+
const { helpers } = require('helpers')
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Reads the specified config file
|
|
@@ -7,7 +7,7 @@ const { helpers, database } = require('helpers')
|
|
|
7
7
|
* @param {string} configFile the fully qualified path and file name for the config file
|
|
8
8
|
* @returns {object} the configuration object
|
|
9
9
|
*/
|
|
10
|
-
readConfig = async (configFile) => {
|
|
10
|
+
const readConfig = async (configFile) => {
|
|
11
11
|
|
|
12
12
|
let config
|
|
13
13
|
if ( await helpers.fileExists(configFile) ) {
|
|
@@ -33,7 +33,7 @@ readConfig = async (configFile) => {
|
|
|
33
33
|
* @throws {Invalid configuration file}
|
|
34
34
|
* @returns {boolean}
|
|
35
35
|
*/
|
|
36
|
-
validateConfig = async (configFile, configProps) => {
|
|
36
|
+
const validateConfig = async (configFile, configProps) => {
|
|
37
37
|
if (! fs.existsSync(configFile) ) {
|
|
38
38
|
throw new Error('Configuration file not found')
|
|
39
39
|
}
|
|
@@ -43,7 +43,7 @@ validateConfig = async (configFile, configProps) => {
|
|
|
43
43
|
config = JSON.parse(config);
|
|
44
44
|
// Check for properties
|
|
45
45
|
let validConfig = true
|
|
46
|
-
for (key of configProps) {
|
|
46
|
+
for (const key of configProps) {
|
|
47
47
|
validConfig = config[key] ? true : false
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -60,9 +60,9 @@ validateConfig = async (configFile, configProps) => {
|
|
|
60
60
|
* @param {Array} configProps an array of properties that defines a valid config file
|
|
61
61
|
*
|
|
62
62
|
*/
|
|
63
|
-
createConfig = async (configFile,configProps) => {
|
|
63
|
+
const createConfig = async (configFile,configProps) => {
|
|
64
64
|
let config = {}
|
|
65
|
-
for (key of configProps) {
|
|
65
|
+
for (const key of configProps) {
|
|
66
66
|
config[key] = ''
|
|
67
67
|
}
|
|
68
68
|
fs.writeFileSync(configFile,JSON.stringify(config))
|
|
@@ -70,5 +70,6 @@ createConfig = async (configFile,configProps) => {
|
|
|
70
70
|
|
|
71
71
|
module.exports = {
|
|
72
72
|
readConfig,
|
|
73
|
-
createConfig
|
|
73
|
+
createConfig,
|
|
74
|
+
validateConfig
|
|
74
75
|
}
|