Skip to content

Wiki attachments#113

Open
zzzeek wants to merge 3 commits intojeffwidman:masterfrom
zzzeek:wiki_attachments
Open

Wiki attachments#113
zzzeek wants to merge 3 commits intojeffwidman:masterfrom
zzzeek:wiki_attachments

Conversation

@zzzeek
Copy link
Contributor

@zzzeek zzzeek commented Nov 20, 2018

Since github doesn't allow attachments to be uploaded through the API, and requests for this to be added have been ignored for years, work around it by pushing attachment files to the wiki git repo. Add links using relative URLs into the issue so they are both linked and also portable with the repo.

this is all in that line of PRs I have, because they are all building on the previous one, so they keep growing and growing as far as the changesets

Per https://developer.atlassian.com/cloud/bitbucket/deprecation-notice-v1-apis/,
Bitbucket API version 1.0 is deprecated as of June 30 2018
and will no longer work in April of 2019.  Alter the issue
fetch methods to use the v2.0 API.

Additionally, the "issues" collection is now streamed through
the tool in order to support large issue sets with thousands
of issues without a large memory footprint.   Added a new
option --mention-changes that formats status changes as comments;
the new Bitbucket API now allows us to have these status changes
available.

I did notice that the "/changes/" API seems to throw a 500
on at least one issue persistently.   The issue in question
seems to have a broken assignee on it, so since this is a new
API for BB that still has some bugs, it warns for 500
on just the "changes" API and skips.
The TEMPLATE constants are now stored in a local yaml
file called templates.yaml, using the same template format
(though a real template language with conditionals could be
another improvement).   The user can now make their own
customizing template using the --use-template option.
@zzzeek zzzeek force-pushed the wiki_attachments branch 2 times, most recently from cb8e2ac to 90ff336 Compare November 20, 2018 04:48
Since github doesn't allow attachments to be uploaded through
the API, and requests for this to be added have been ignored for
years, work around it by pushing attachment files to the
wiki git repo.    Add links using relative URLs into the
issue so they are both linked and also portable with the
repo.
@jeffwidman
Copy link
Owner

Looks like this one will also need rebasing.

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.

2 participants