nicklayb / alfred-bitbucket Goto Github PK
View Code? Open in Web Editor NEWWorkflow to get through your and your teams public / private repositories using App password
License: MIT License
Workflow to get through your and your teams public / private repositories using App password
License: MIT License
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?
So the latest update broke opening repositories, in addition, the bookmark capabilities do not work. Shift+Enter does the same actions as just Enter
When you start typing the name of a team, results aren't filtered
Our company Bitbucket install doesn’t allow the creation of oAuth apps, but it will all personal access tokens to be generated.
Any interest?
Hey, i followed the readme but i receive the following error when using the workflow:
[13:36:51.456] ERROR: BitBucket[Script Filter] JSON error: No string key for value in object around character 4. in JSON:
{
OPTIONS: {
auth: 'xxx:xxx',
json: true,
method: 'POST',
body: { grant_type: 'client_credentials' },
form: true
}
}
Any tipps what might be wrong here?
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?
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)
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:
The key + secret both shows up in the debug console, only it doesn't seem to work for some unclear reason.
Nice to know:
Please advice. Thanks!
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"
}
}
]
}
In my opinion, it would be good UX to have bookmarks always sorted at the top of a list.
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?
This repository is not linked to the NPM page, making it difficult to find this repository.
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.