Skip to content

Commit

Permalink
Merge branch 'hotfix/2.3.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
titouanmathis committed Jan 8, 2021
2 parents d1fe8d7 + 0777582 commit fcfa9da
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "alfred-jira-search",
"version": "2.3.1",
"version": "2.3.2",
"description": "Alfred workflow to quickly search through your Jira issues",
"main": "index.js",
"scripts": {
Expand Down
8 changes: 6 additions & 2 deletions src/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -1092,7 +1092,7 @@
<key>escaping</key>
<integer>102</integer>
<key>script</key>
<string>./node_modules/.bin/run-node update-data.js --force &amp;&amp; ./node_modules/.bin/run-node update-data-boards.js --force</string>
<string>./node_modules/.bin/run-node update-data.js --force &amp;&amp; ./node_modules/.bin/run-node update-data-boards.js --force &amp;&amp; ./node_modules/.bin/run-node utils/check-version.js</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
Expand All @@ -1113,8 +1113,12 @@
Use `jj` to display and filter all the unresolved Jira issues of your Jira cloud instance.
Use `jb` to display and filter all your Jira boards.
Use `ju` to force update the local data (default cache is 5min).
Use `jconf` to configure the workflow.
## Filtering
When using the `jj` command, some smart filtering can be done:
Expand Down Expand Up @@ -1311,7 +1315,7 @@ When using the `jj` command, some smart filtering can be done:
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>2.3.1</string>
<string>2.3.2</string>
<key>webaddress</key>
<string>https://www.titouanmathis.com</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "alfred-jira-search",
"version": "2.3.1",
"version": "2.3.2",
"homepage": "https://github.com/titouanmathis/alfred-jira-search",
"dependencies": {
"axios": "^0.21.1",
Expand Down
1 change: 1 addition & 0 deletions src/utils/run-background.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const defaultCmd = path.resolve(__dirname, '../node_modules/.bin/run-node');
* @return {ChildProcess}
*/
module.exports = (args, cmd = defaultCmd) => {
// console.log('Background task', cmd, args);
const child = childProcess.spawn(cmd, args.split(' '), {
detached: true,
stdio: 'ignore',
Expand Down
7 changes: 3 additions & 4 deletions src/utils/test-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ const pkg = require('../package.json');
const config = require('./get-config');
const runBackground = require('./run-background');

const testUpdate = () => {
runBackground(path.resolve(__dirname, 'check-version.js'));
return config.get('shouldUpdate') && pkg.version !== config.get('latestVersion');
};
runBackground(path.resolve(__dirname, 'check-version.js'));

const testUpdate = () => config.get('shouldUpdate') && pkg.version !== config.get('latestVersion');

const getUpdateItem = () => ({
title: `A new version is available: ${pkg.version}${config.get('latestVersion')}`,
Expand Down

0 comments on commit fcfa9da

Please sign in to comment.