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

Add a github UDA for user field #401

Merged
merged 1 commit into from
Nov 9, 2016

Conversation

stbenjam
Copy link
Contributor

This adds a gitubuser uda that gives the reporter for an issue, or the creator of a pull request. I use this in my .bugwarriorrc like the below:

This way, I can do queries like task +github_pull_request +created_by_me

[github.stbenjam]
service = github
github.username = stbenjam
github.login = stbenjam
github.token =  XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
add_tags = github, created_by_{{ 'me' if githubuser == 'stbenjam' else 'other' }}, github_{{ githubtype }}
github.import_labels_as_tags = True
github.label_template = github_{{ label |lower}}
github.involved_issues = True
github.filter_pull_requests = True
github.include_user_issues = True

@stbenjam stbenjam force-pushed the githubuser-uda branch 2 times, most recently from 9c2cb4a to 9f1a36c Compare October 17, 2016 18:55
@@ -135,3 +135,5 @@ Provided UDA Fields
+---------------------+---------------------+---------------------+
| ``githubrepo`` | username/reponame | Text (string) |
+---------------------+---------------------+---------------------+
| ``githubuser`` | User created by | Text (string) |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be better to word this as Author of issue/PR.

@stbenjam
Copy link
Contributor Author

@mathstuf Updated, thanks that's better wording

@ralphbean
Copy link
Collaborator

Good stuff. 👍

@ralphbean ralphbean merged commit 601b918 into GothenburgBitFactory:develop Nov 9, 2016
@stbenjam stbenjam deleted the githubuser-uda branch November 9, 2016 15:50
ralphbean added a commit that referenced this pull request Nov 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants