Bootstrap typeahed multiple values. Fork? - ruby-on-rails

I read here https://github.com/twitter/bootstrap/pull/2007 that it was opened a pull request for adding support for multiple selections in Typeahead. I don't understand github, pull requests very well, so I wonder where I can find this updated js file?
I work in Rails

The repository that contains the code you are looking for is https://github.com/codeimpossible/bootstrap
How pull requests work
Pull requests are sent by someone (in this case codeimpossible) to the original owner of a forked repository. That means that codeimpossible has a version of the bootstrap repository https://github.com/codeimpossible/bootstrap whereas twitter's original original repository is https://github.com/twitter/bootstrap.
With the pull request he is asking them to merge his changes back into their repository (and subsequent new versions of twitter bootstrap. If the pull request is successful (follow the comment thread on that page to the end!) you will eventually get the code from twitters repository.
In this case however, the pull request was not accepted and you will only find the code on https://github.com/codeimpossible/bootstrap

Related

Updating JIRA issues from gitlab pipeline

I want to move an issue to the deployed stage (transition) when the gitlab pipeline of a merge request has finished. Is that even possible?
My Idea so far:
The pipeline is related to that specific issue by both the branch name (see 1.) of the merge request and also the message of that merge request like so "Finish PV-1234".
I can parse the issue key from the branch name.
I can call a server to run a script making the Jira api call.
If you directly want to close the issu, look into the gitlab jira integration docs - therefore you have to add a description to your MR, to tell the integration to close the issue, as soon as the MR was merged.
If you want more control, write yourself a simple script, that first gets the ids of the available transition (You can get them via /rest/api/3/issue/{issueIdOrKey}/transitions see here) and after that posts the transition you want (You can do that by posting on the same endpoint, as the get command mentioned before see here).
Sad that the jira integration doesn't provide more issue-movement than jsut closing issues...

Bitbucket credentials issue in source tree and git

I am not sure if this is the correct place for this. I used source tree to clone a bit bucket repo and was able to do it a couple of months ago. I was also able to push and pull. However, recently when I try to push and pull or even clone down another copy using the same credentials i get an invalid credentials message.
I have tried clearing out the windows credential manager, resetting my atlassian password, and trying to clone on a completely different computer with the same result.
It's weird because I can add my bitbucket account to source tree using the username and password but I cannot clone, pull, or push using those same credentials.
I do not have an errors message screenshot but could get one if the issue is not clear.
Thanks!
Update: Here is an interesting behavior happening out of sourcetree, when I try to clone a repo I get multiple login prompts. All of these fail when using the credentials.
It appears that the newest version of source tree has a few issues to work out. Downgrading to an older version, 1.9 I believe, I was able to perform cloneing, pulling, and pushing without issue.
I decided to look for alternative clients but source tree would still work on an older version.

JIRA dev-status api not returning all files commited

Iam trying to get all the files committed against a JIRA issue. Iam using the following method to get the information
GET /rest/dev-status/1.0/issue/detail?issueId=&applicationType=bitbucket&dataType=pullrequest
The JSON returns all the commits but not full list of files committed. if i commit more than 5 files on a single commit, then only the first 5 files are listed in the JSON. anyways to get the full list of files?
The resource you are using is not part of the public rest API of Jira, so you there is no guarantees around the response you will receive from it. It is very much use at your own risk.
The current implementation limits itself to only fetching the first 5 files changed, if you require more that this you will need to do a call to Bitbucket etc and lookup the diffstat information yourself eg https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/diffstat/%7Bspec%7D

Github API - create contents api method not triggering GitHub Pages build

I'm working on a Rails app that allows users to publish datasets via Github and access it via GitHub pages. I'm using the Github API to act as the user, create a repo and add the files, and everything works as expected, the only issue is that the GitHub pages page build doesn't seem to be happening. The datasets can be downloaded, but trying to access the index.html page doesn't seem to work at all.
Here's an example repo:
https://github.com/git-data-publisher/Foo
And here's the Github pages site:
http://git-data-publisher.github.io/Foo/
You can see that, for example:
http://git-data-publisher.github.io/Foo/data/June_2014.csv
Works fine.
I can only guess that this means the GitHub pages build isn't getting triggered. Any way I can make this happen without having to do a manual Git push?
You can also see my code here if this helps:
https://github.com/theodi/git-data-publisher
Github tries to parse you site as a Jekyll site.
You must indicate that you're not using Jekyll by creating an empty .nojekyll file at the root of your repository.

Github API -- request for diff in repository with 1 commit 404s

I'm trying to allow users of my app to pull git diffs from their repositories using the api. It's working great, except for one weird case that feels like a bug.
Basically, if the repo has more than one commit, everything works smoothly. However, if there's only the one initial commit, the API returns a 404 error, which brings down the view on my page. This is weird, because you can view "Diffs", or at least files changed in the most recent (first) commit, on the github page.
Moreover, I can fetch the diff in another format (not ideal) if I don't specify the format I accept.
Take, for example, my friend's repo (this is using Rails's RestClient instead of curl). In her repo, which has just one commit, this 404s:
# Replaced fake values (per request) with symbols. Don't feel comfortable sharing her GH info without asking.
RestClient.get("https://api.github.com/repos/:owner/:repo/commits/:sha", accept: 'application/vnd.github.diff')
But this (without the accept) returns the commit, just not in diff format:
RestClient.get("https://api.github.com/repos/:ownder/:repo/commits/:sha")
If I were to pull diffs from other repos of hers with more than one commit, using
RestClient.get("https://api.github.com/repos/:owner/:repo/commits/:sha", accept: 'application/vnd.github.diff')
works great. Am I doing something wrong? What's up with this?

Resources