Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

env.pullRequestAuthor returns <@null> for email address #217

Open
RayOei opened this issue Feb 16, 2020 · 3 comments
Open

env.pullRequestAuthor returns <@null> for email address #217

RayOei opened this issue Feb 16, 2020 · 3 comments
Assignees
Labels

Comments

@RayOei
Copy link

RayOei commented Feb 16, 2020

The pullRequestAuthor environment variable return the name, but not the email.
So echo "$env.pullRequestAuthor" returns: Ray Oei <@null> while I would expect: Ray Oei <[email protected]>

@RayOei RayOei changed the title env.pullRequestAuthor return <@null> env.pullRequestAuthor returns <@null> for email address Feb 16, 2020
@CodeMonk CodeMonk self-assigned this Feb 19, 2020
@CodeMonk CodeMonk added the bug label Feb 19, 2020
@CodeMonk
Copy link
Collaborator

Thank you! I'll look into that ASAP.

@dima1308
Copy link

dima1308 commented Apr 7, 2020

Any update on this? Can I do something to help to solve it?

@CodeMonk
Copy link
Collaborator

CodeMonk commented Apr 7, 2020

The Bitbucket API endpoint:
https://bitbucket.org/api/2.0/repositories/ACCOUNT/REPO/pullrequests/

Does NOT return email addresses for users. All you get is this for the author:

"author": {
                "account_id": "HEX_MESS",
                "display_name": "FIRST_NAME LAST_NAME",
                "links": {
                    "avatar": {
                        "href": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/STUFF/UID"
                    },
                    "html": {
                        "href": "https://bitbucket.org/UID_STUFF/"
                    },
                    "self": {
                        "href": "https://bitbucket.org/!api/2.0/users/UID_STUFF"
                    }
                },
                "nickname": "FIRST_NAME LAST_NAME",
                "type": "user",
                "uuid": "{UID}"
            },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants