Coder Social home page Coder Social logo

alfred-bitbucket's People

Contributors

jonicious avatar lewazo avatar lordzardeck avatar nicklayb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

alfred-bitbucket's Issues

Option to change default "enter" behavior

By default, hitting enter on a repository opens up the options for pull request, issues, etc. I primarily use this workflow to navigate to a repository quickly, meaning if I forget to hold command down, i have to re-start my flow. Would it be feasible/make sense to add a boolean option to swap what the default action for a repository is?

Latest update is broken

So the latest update broke opening repositories, in addition, the bookmark capabilities do not work. Shift+Enter does the same actions as just Enter

Bookmark repos or teams?

I find having to always go through 2-3 steps to get where I want time consuming, would it be possible to bookmark teams and repos for quick access?

Error: Cannot find module 'json-parse-better-errors'

Just upgraded to macOS Catalina this week and noticed my bitbucket workflow is missing. Re-installed the workflow, setup authentication and go to use the workflow and it's not working. Here's the error showing up in the debug console.

(node:35393) UnhandledPromiseRejectionWarning: /Users/username/.npm-packages/lib/node_modules/alfred-bitbucket/node_modules/read-pkg-up/node_modules/parse-json/index.js:1
Error: Cannot find module 'json-parse-better-errors'
Require stack:
- /Users/username/.npm-packages/lib/node_modules/alfred-bitbucket/node_modules/read-pkg-up/node_modules/parse-json/index.js
- /Users/username/.npm-packages/lib/node_modules/alfred-bitbucket/node_modules/read-pkg-up/node_modules/read-pkg/index.js
- /Users/username/.npm-packages/lib/node_modules/alfred-bitbucket/node_modules/read-pkg-up/index.js
- /Users/username/.npm-packages/lib/node_modules/alfred-bitbucket/node_modules/alfy/lib/update-notification.js
- /Users/username/.npm-packages/lib/node_modules/alfred-bitbucket/node_modules/alfy/index.js
- /Users/username/.npm-packages/lib/node_modules/alfred-bitbucket/teams.js
    at Object.<anonymous> (/Users/username/.npm-packages/lib/node_modules/alfred-bitbucket/node_modules/read-pkg-up/node_modules/parse-json/index.js:3:18)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1221:10)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:35393) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:35393) UnhandledPromiseRejectionWarning: TypeError: updateNotification is not a function
    at /Users/username/.npm-packages/lib/node_modules/alfred-bitbucket/node_modules/alfy/index.js:14:1
    at Object.<anonymous> (/Users/username/.npm-packages/lib/node_modules/alfred-bitbucket/node_modules/alfy/index.js:166:3)
    at Generator.next (<anonymous>)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1221:10)
(node:35393) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:35393) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'get' of undefined
    at getDefaultUsername (/Users/username/.npm-packages/lib/node_modules/alfred-bitbucket/config.js:32:42)
    at /Users/username/.npm-packages/lib/node_modules/alfred-bitbucket/bitbucket/repoService.js:4:40
    at Object.<anonymous> (/Users/username/.npm-packages/lib/node_modules/alfred-bitbucket/bitbucket/repoService.js:39:3)
    at Generator.next (<anonymous>)
(node:35393) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)
(node:35393) UnhandledPromiseRejectionWarning: TypeError: alfy.error is not a function
    at loginAttempt (/Users/username/.npm-packages/lib/node_modules/alfred-bitbucket/authenticate.js:79:14)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at process.runNextTicks [as _tickCallback] (internal/process/task_queues.js:62:3)
(node:35393) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 4)

Keys not accepted

When using the command bit or any other command, the script goes into error, and I'm out of the bitbucket-flow.
I've enabled debugging, en here is a screenshot where things go wrong:
err

The key + secret both shows up in the debug console, only it doesn't seem to work for some unclear reason.

Nice to know:

  • I've added the client key and secret through alfred's configuration setting (so NOT the plist option)

Please advice. Thanks!

Team endpoint removed

I am getting 404 error on listing.

First request i see down is listing teams and on bitbucket it is deprecated
https://developer.atlassian.com/cloud/bitbucket/rest/api-group-teams/#api-teams-get

[11:18:38.627] ERROR: BitBucket[Script Filter] Code 1: {
	"items": [
		{
			"title": "HTTPError: Response code 404 (Not Found)\n    at Object.<anonymous> (/*lib/node_modules/alfred-bitbucket/node_modules/got/source/as-promise.js:74:19)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)",
			"subtitle": "Press ⌘L to see the full error and ⌘C to copy it.",
			"valid": false,
			"text": {
				"copy": "```\nHTTPError: Response code 404 (Not Found)\n    at Object.<anonymous> (/*/lib/node_modules/alfred-bitbucket/node_modules/got/source/as-promise.js:74:19)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)\n```\n\n-\nBitBucket 1.5.1\nAlfred 4.6.2\ndarwin 21.3.0",
				"largetype": "HTTPError: Response code 404 (Not Found)\n    at Object.<anonymous> (/*/lib/node_modules/alfred-bitbucket/node_modules/got/source/as-promise.js:74:19)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)"
			},
			"icon": {
				"path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"
			}
		}
	]
}

Bookmarks sort at top?

In my opinion, it would be good UX to have bookmarks always sorted at the top of a list.

Allow setting up multiple Workspaces

For my personal account, I don't see an option for OAuth consumers. However, I see the option for any workspaces I have. Can this Alfred workflow be setup to allow multiple Workspaces instead of just 1?

Commands show no results

When I try to run any command from this workflow I get no results.

I added the secret and key from Alfred and made sure they were correctly saved in the plist which seems to be fine.

telechargement

Use caching to speed up response time of workflow

Currently you have to wait a little bit to get a response from bitbucket, even for the same query. It would be valuable to have a configurable cache lifetime, which could be implemented easily by adding the maxAge option here: https://github.com/nicklayb/alfred-bitbucket/blob/master/utils.js#L3

It's also important that this cache lifetime be configurable (possibly an option to clear?) as I could have it cached for days at a time as my repos do not update often

installation

3614 verbose unlock done using /Users/home/.npm/_locks/staging-3a08f0df5026584d.lock for /usr/local/lib/node_modules/.staging 3615 timing stage:rollbackFailedOptional Completed in 142ms 3616 timing stage:runTopLevelLifecycles Completed in 6836ms 3617 verbose stack Error: [email protected] postinstall: alfy-init3617 verbose stack Exit status 1 3617 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:304:16) 3617 verbose stack at EventEmitter.emit (events.js:182:13) 3617 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 3617 verbose stack at ChildProcess.emit (events.js:182:13) 3617 verbose stack at maybeClose (internal/child_process.js:961:16) 3617 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:250:5) 3618 verbose pkgid [email protected] 3619 verbose cwd /Users/home/ 3620 verbose Darwin 16.7.0 3621 verbose argv "/usr/local/Cellar/node/10.9.0/bin/node" "/usr/local/bin/npm" "install" "--global" "alfred-bitbucket" 3622 verbose node v10.9.0 3623 verbose npm v6.2.0 3624 error code ELIFECYCLE 3625 error errno 1 3626 error [email protected] postinstall:alfy-init 3626 error Exit status 1 3627 error Failed at the [email protected] postinstall script. 3627 error This is probably not a problem with npm. There is likely additional logging output above.

uname -a Darwin Kernel Version 16.7.0: Tue Jan 30 11:27:06 PST 2018; root:xnu 3789.73.11~1/RELEASE_X86_64 x86_64

npm --version 6.2.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.