Skip to content

Commit

Permalink
fix #100 uuid support and doc
Browse files Browse the repository at this point in the history
  • Loading branch information
palashkulsh committed Sep 9, 2021
1 parent 908ecac commit 686e140
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,16 @@ Once you hit enter after the password then you should get this message:

This saves your credentials in the [home directory](https://github.com/danshumaker/cmd-bitbucket/pull/2) in a config rc `~/.bitbucketconfigrc` file.

### How to get a user's uuid which you should save in ~/.bitbucketconfigrc
* go to https://bitbucket.org/dashboard/overview
* Try to find a PR of intended person
* open the browser inspect element portion
* hover on his name
* a request is made like https://bitbucket.org/!api/2.0/users/%7B140cc970-81cc-4rdf-8fff-571ssgas28d2%7D?fields=%2Bdepartment%2C%2Bjob_title%2C%2Blocation%2C%2Borganization%2C%2Bzoneinfo
* the portion between %7B (denotes "{" ) and %7D (denotes "}") is that person's uuid
* for eg. in this case uuid id 140cc970-81cc-4rdf-8fff-571ssgas28d2
* add that in .bitbucketconfigrc as { "uuid" :"{140cc970-81cc-4rdf-8fff-571ssgas28d2}" } in the reviewer's list

### Basic commands

### Creating pull request
Expand Down
2 changes: 1 addition & 1 deletion lib/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ define([
configFile.default.default_dest_branch = 'master';
var configPath = path.join(config.getHomePath(),'.'+'bitbucketconfig'+'rc');
if(!configFile.default.reviewers){
configFile.default.reviewers = [{username:"danielnv18"},{ username:"jmsv23"}];
configFile.default.reviewers = [{username:"danielnv18"},{ uuid:"{140cc970-81cc-4rdf-8fff-571ssgas28d2}"}];
console.log('please go to '.red+' '+configPath+' and overwrite your reviewer names instead of danielnv18 and jmsv23 . Its important'.red);
}
configFile.repo_level = configFile.repo_level || {};
Expand Down

0 comments on commit 686e140

Please sign in to comment.