I'm trying to link issues in commit messages from Bitbucket to Youtrack, but can't find proper solution.
I have for ex. commit message "CORE-214 adding foreign currency" and want to make CORE-214 link to our Youtrack as described here - https://blog.bitbucket.org/2012/06/18/use-custom-regex-to-link-anywhere-on-bitbucket/
So I create new custom link in Repository / Settings / Links using Add a custom link:
Replacement URL: https://ouryoutrack.myjetbrains.com/youtrack/issue/\1
Raw regex: CORE-\d+
However no links are showing in commit messages. We were using JIRA links integration before and everything was working fine, but that was configured using Add a repository link to JIRA feature.
The \1 part of the replacement regex is meant to insert a captured group from the regular expression. Your regex doesn't include any capture groups.
Try this instead: (CORE-\d+).
Related
I have the following code for checkboxes,
### Pre-requisites
- [ ] You should have done the Verilog parsign of all the files (../parse_verilog/)
- [ ] You should have generated CDFGs for all the modules (../gen_cdfg/)
which appears in Bitbucket like the following (with bullets instead of checkboxes)
What could be the reason?
Update (2-Jul-2020)
If Bitbucket enables this feature, please post a comment below.
Checkboxes are a non-standard Markdown feature, which are not supported by most Markdown implementations. Bitbucket documents their Markdown implementation here.
Bitbucket Server uses Markdown for formatting text, as specified in CommonMark (with a few extensions).
Note that Commonmark does not include support for checkboxes, and they are not listed among the extensions in Bitbucket's documentation. Therefore, it should be safe to assume that they are not supported.
One can add checkboxes by converting comments into tasks (Create Task button).
Example follows:
I know there are some questions regarding this, but didn't get the right answer yet.
I am trying to use Confluence publisher plugin in Jenkins to send build information (Logs, artifacts...) to wikiD page. I can attach artifacts and write plain text to the wiki page. But I'm trying to update/append/prepend wiki page table with build info. I think I might be able to achieve this by using macros but not sure how to use that for data in tables??
does anyone here know how to achieve that?
Sure. I can mention how i did it. There might be different way others will do the same thing.
So, in Confluence, either create a Blank macros as mentioned on Confluence-publisher-plugin wiki and in Jenkins, use "Wiki Markup Replacements" options in plugin configuration to direct your Contents.
OR other option is what i did on mine, was to create table in the wiki and use Cell header ( |cell1||cell2|... ) as Marker Token. then select plain text option, where you enter all the contents that you want to be published in your Wiki.
Now that TFS 2015 comes with the same new Rest API of VS Team Services, I've taken a look at the API doc:
https://www.visualstudio.com/en-us/integrate/api/git/overview
One question naturally raised is that most queries do not expose an parameter for git branch or tag (e.g. download /path/to/my/file with tag 'release_v1.0'), which looks like a show stopper. As in my case, I need programatically pull out some source file under a certain branch/tag.
Is it not supported yet?
Yes you can. As or the link that you have above you can use the provided so to retrieve both branches and yes. In git they are really all the same thing, pointers. This use the "refs" api.
https://www.visualstudio.com/integrate/api/git/refs
I used to write commit message to connect issue system like issue #9548, redmine start page is fixed, and wonder whether it can be written in hook or plugin in gerrit system.
So in the code review page, the issue #9548 can be automatically show the http link to my issues system (like redmine): => issue#9548,redmine start page is fixed
It will be easily for code review.
Yes, it is possible. In your Gerrit configuration, you have to provide a regex expression for the string in the commit message and the link to your bugtracker with wildcards. See the Gerrit documentation. For your example, you would have a regex like (issue\s+#?)(\d+)
If you use Jira and have your Jira case number first in the commit message, add the following to gerrit.config to get links when viewing change sets:
[commentlink "jira"]
match = "^([A-Z]*-[0-9]*)"
link = http://jira/browse/$1
Some supported commit message formats (paste into Rubular to test):
PRJ-123: This is my commit message
ABC-123 - Something: Yes yes
PROJ-123
ABCD-123 - Message
For more examples, see the Gerrit documentation on Section commentlink
Yes you can turn the issue tag into a link in Gerrit. Look at the commentlink configuration - http://gerrit-documentation.googlecode.com/svn/Documentation/2.2.0/config-gerrit.html#_a_id_commentlink_a_section_commentlink
We have several repositories on BitBucket. For every repository we
have the issue tracker enabled. For our progress reports I would like
to be able to see all issues from all related repositories in one
overview.
Is this possible and how can it be done?
Thanks,
Paul
Bitbucket has an API. You could quickly put together a script (or webpage using JSONP) calling:
https://api.bitbucket.org/1.0/repositories/USERNAME/REPOSITORY/issues/
for each repository? (Replacing USERNAME and REPOSITORY with appropriate values)
For something more advanced you could query the USER, get all their repositories, then iterate.
I needed the same thing today so I made the following python script available here on github.
The two API call URLs you need are
https://bitbucket.org/api/1.0/user/repositories/
https://bitbucket.org/api/1.0/repositories/{owner}/{slug}/issues/
You'll have to authenticate with your BitBucket credentials which I did using the python requests library:
response = requests.get(url, auth=HTTPBasicAuth(_USERNAME, _PASSWORD))