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

If custom description is created, description is not added as an annotation #239

Closed
harleypig opened this issue Sep 10, 2015 · 3 comments
Closed

Comments

@harleypig
Copy link
Sponsor

I have the following in my .bugwarriorrc .

[general]
annotation_length = 132
annotation_links = true
inline_link = false
targets = harleypig_github

[harleypig_github]
service = github
github.login = harleypig
github.password = SUPERKEWLSEKRET
github.username = harleypig

add_tags = bugwarrior
also_unassigned = true
description_template = #{{githubnumber}} {{githubtitle}}
annotation_template = {{githubdescription}}
filter_pull_requests = true
import_labels_as_tags = true
project_template = project.github.{{project|lower|replace('.','-')}}

The annotation_links adds {{githuburl}} as the first annotation, but I how do I add {{githubdescription}} as the second annotation? As you can see, I tried annotation_template, but that isn't working.

@coddingtonbear
Copy link
Collaborator

The fields you have available are described here -- http://bugwarrior.readthedocs.org/en/latest/services/github.html#provided-uda-fields -- I wonder if it'll work if you try {{githubbody}}?

@harleypig
Copy link
Sponsor Author

That's what I get for reading the gitlab doc by mistake. With annotation_template = {{githubbody}} I got nothing. Then I noticed that the Taskwarrior JSON documentation for annotation has the json attribute as annotations.

Setting annotations_template = {{githubbody}} did not end well. I got a whole bunch of errors that look like

2015-09-11T03:08:38Z:ERROR:db|Unable to add task: Configuration override rc.uda.githubcreatedon.type:date\nConfiguration override rc.uda.githubcreatedon.label:"Github Created"\nConfiguration override rc.uda.githubtitle.type:string\nConfiguration override rc.uda.githubtitle.label:"Github Title"\nConfiguration override rc.uda.githubnumber.type:numeric\nConfiguration override rc.uda.githubnumber.label:"Github Issue/PR #"\nConfiguration override rc.uda.githubbody.type:string\nConfiguration override rc.uda.githubbody.label:"Github Body"\nConfiguration override rc.uda.githubrepo.type:string\nConfiguration override rc.uda.githubrepo.label:"Github Repo Slug"\nConfiguration override rc.uda.githuburl.type:string\nConfiguration override rc.uda.githuburl.label:"Github URL"\nConfiguration override rc.uda.githubupdatedat.type:date\nConfiguration override rc.uda.githubupdatedat.label:"Github Updated"\nConfiguration override rc.uda.githubtype.type:string\nConfiguration override rc.uda.githubtype.label:"Github Type"\nConfiguration override rc.uda.githubmilestone.type:numeric\nConfiguration override rc.uda.githubmilestone.label:"Github Milestone"\nConfiguration override rc.dependency.confirmation:no\nConfiguration override rc.json.array:TRUE\nConfiguration override rc.confirmation:no\nConfiguration override rc.verbose:new-uuid\nAdditional text must be provided.

And tasks that look like

146 6min M project.github.gitperms                        bugwarrior #7 /selinux/enforce may not exist.                                                   6.7
                                                                       2015-09-10 T                                                                          
                                                                       2015-09-10 h                                                                          
                                                                       2015-09-10 e                                                                          
149 6min M project.github.gitperms                        bugwarrior #3 chattr 0 is wrong                                                                 6.7
                                                                       2015-09-10 E
                                                                       2015-09-10 x
                                                                       2015-09-10 t
                                                                       2015-09-10 e
                                                                       2015-09-10 n
                                                                       2015-09-10 d
                                                                       2015-09-10 e
                                                                       2015-09-10 d
145 6min M project.github.dist-zilla-plugin-test-kwalitee bugwarrior #3 v2.03 tests fail with HARNESS_OPTIONS=j5                                          6.6
                                                                       2015-09-10 a                                                                          
                                                                       2015-09-10 t                                                                          
147 6min M project.github.gitperms                        bugwarrior #5 Don't chmod symlinks                                                              6.6
                                                                       2015-09-10 I
                                                                       2015-09-10 f

It looks like the first word in each github body was broken up into separate characters and each character added as a separate annotation.

@ryneeverett
Copy link
Collaborator

Triage: Doesn't look like anyone else has experienced this issue. Perhaps it was a documentation issue or resolved by now.

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

No branches or pull requests

4 participants