I generate a pull request in the company repo on GitHub. My colleagues login to GitHub, review my changes and add comments.
Is there a way from me to pull those comments (or that PR) from GitHub so I can read and, ideally respond to their comments locally from within the latest PhpStorm (version 2017.3.4) or for that matter, from the CLI?
I can see how to generate PRs in PhpStorm and push them up to GH, but not the other way around.
You might try this plugin: https://plugins.jetbrains.com/plugin/10448-github-code-reviews-plugin. In general, this is not yet supported in PhpStorm out of the box, you can vote for that feature request at https://youtrack.jetbrains.com/issue/IDEA-85079 and try out some of the suggestion listed there (e.g. the plugin mentioned above).
I'm not sure if there's something for Github, but for Bitbucket you can use this plugin.
Related
I published 2 extensions to the VS marketplace, in the manifest file and on the marketplace I added the source code github link. When I go to the marketplace, there is no link to the repository or showing open issues/pull requests.
Is there anything I forget?
Assuming the extensions are for vs. It's fairly easy to publish it to marketplace as we all know.
Please remove the github links in manifest file,and check the github url again:
I think maybe there has something wrong with your link here. I've done several tests and find the Project Details Section would disappear only when the github link was not valid for a github repo.(Even the github repo is private, the link to repo will display.)
I have configured a multibranch pipeline job in Jenkins linked to our GitHub repo which is working nicely, feeding back the status of checks to the pull request in our GitHub so we know if the branch is good for merging in.
What I don't see are any open pull requests listed against the Job in Jenkins:
We also have the Blue Ocean plugin in installed and no PR's are shown there either.
Anyone know why this is the case? Am I missing another plugin\config?
I had this issue as well. I tried what joey suggested, but that did not work. I found out that if you add PR-.+ (or PR-* as a wildcard) to your regex filter for branches to include, the pull requests "magically" appear. The documentation of this was found here. It's very frustrating that the "official" documentation for this plugin does not explain this (at least from what sparse documentation I could find). The configuration for my project, which works, is here:
I'm not sure if this is a recommended way to use this plugin for this use case, but Jenkins never seems to have ample documentation.
I was getting the same issue. But this time within Blue Ocean UI as shown below
The fix was to switch from using Git to GitHub Branch Source at the job level and configure GitHub Branch Source. The job type was Multibranch pipeline.
One possible cause could be that GitHub is unable to connect to Jenkins directly due to a firewall. This is likely the case if GitHub never reports the status check as completed, in other words, it hangs forever.
In this case, polling is an easy solution. Go to http://_jenkins_ip_:8080/job/_job_name_/configure and select the "Scan Repository Triggers" tab. Tick the "Periodically if not otherwise run" checkbox and select an interval. I have 15 minutes on mine.
The first time this is done, there should be an immediate scan and it should detect the pull request, otherwise, there might be something else going on. Check the "Scan Repository Log" page on the job, as it might have useful info.
By the way, I did not install the "GitHub Pull Request Builder Plugin" as the page says that it has a security issue. Instead, the "GitHub Branch Source Plugin" is being used. Some other related plugins installed:
Git client plugin
Git plugin
GitHub API Plugin
GitHub Authentication plugin
GitHub Integration Plugin
GitHub plugin
I'm also using Blue Ocean, but this is not required, it simply provides a different UI.
I know that this is an old topic, but I had the same issue while I was trying to visualize my Pull Requests from Bitbucket and I hope this answer will help other people in need. In my case, I was using Bitbucket Push and Pull Request Plugin, which is pretty similar to other GitHub Plugins for Jenkins.
My problem came from the fact that I selected Git instead of Bitbucket in Branch Sources >> Add Source section. I suspect the same thing happened in this case, where the two options Git and GitHub are even easier to confuse.
I want to use editor in browser and save in github without server. Just like text editor in github/bitbucket could new file and save it
I want to know are there any REST api of this 2 services to easily commit file like that
Or a git library in js that could work without the need to pull all files in to our machine
edit:
After 2018 both service already expose their API. This question is outdated
In case you're looking for an online code editor that you can connect to github or bitbucket then you could take a look at these:
Codeanywhere
Cloud9
If you're looking to develop such an editor yourself, you could just start from github or bitbucket's REST API documentation:
Github
Bitbucket
And just choose the javascript REST library of your preference to interact with those APIs.
For Github: to create/update/remove files you can use the Contents resources.
For example, this section explains how to update a file.
Bitbucket user here, you can EDIT/COMMIT your files in browser.
https://gyazo.com/ff3cb58bcc1cceda0306037989f32ab1
Bitbucket has an online editor where you can change the file and commit right away. Check it out here.
See the official response here:
tldr:
They're working on expanding their API and have responded to an issue opened in 2013
EDIT: An endpoint to do this is now available!
Update August 2021: just type . (dot)
🤫 New shortcut: Press . on any GitHub repo.
That will launch GitHub Codespace on your current repository.
You can install on your local computer benweet/stackedit, a markdown javascript editor.
As mentioned in the README,
Publish your Markdown document on GitHub
(See more at Publication)
You can use Power Editor for Bitbucket for editing and commiting code from browser in bitbucket.
How the docker git repo is showing different tags in pull requests like status/need-review? What are the plugins they are using. Is the same one can be used for bitbucket, if not is there any alternatives?
That is because GitHub proposes to add labels to pull requests (See GitHub help for pull requests)
BitBucket, in its "Work with pull requests", does not mention (yet, May 2015) a similar feature.
The OP rohit asks in the comments:
do you have any idea how it actually happening automatically?
Like as soon as I send a pull request to docker it shows status0/need-triage etc... labels. In the complete process tags for different stages like status2/need-code-review etc are assigned.
Is the docker administrators are assigning them manually?
That must be a webhook (Webhooks API) set on the docker GitHub repo, which will detect the new PR and automatically label it.
Vincent Demeester confirms in the comments:
look for a project called gh-patch-parser, it's Jessie Frazelle who's maintaining this ;-)
And yeah it's using webhooks and the GitHub api.
I've integrated YouTrack with GitHub, I have hook set up on git hub, I can run commands on youtrack from git commit messages. I've also integrated IntelliJ with GitHub, so I see issues' ids as YouTrack links like this:
I wonder, can I configure something similar on GitHub? Can it create links from my issues' ids?
Unfortunately not. This is something GitHub would have to implement themselves and isn't available as an API method.