Can I reference YouTrack issues on github? - github

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.

Related

Create git pre-receive hook to link git commits with jira id

I am trying to create a pre-receive hook in github enterprise. I want to put a check on commit message, that it should contain a jira id (say 'RP-123') along with some text. And that commit shoould be visible in jira as a link to github.
Can someone please help me with this.
Thanks!
I have integrated jira with github by adding it to OAuth Apps under developer settings.
I tried to add an executable script under /git/hooks folder to verify commit message, but this is going to do only client side verification since .git folder is not version controlled in github.
Can you please let me know how to add server side verification for commit message and how jira will be linked to those specific commits
If I’m not too late, you can do this using pre-receive hook. An example of pre-receive hook using regex is here: https://github.com/github/platform-samples/blob/master/pre-receive-hooks/require-jira-issue.sh

View GitHub PR comments locally in PhpStorm

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.

Using GitHub for issue tracking for a local Git repository

My company has a Git repository hosted on our servers. We use TortoiseGit. I would like to integrate it with GitHub Issues.
Is this possible? Note that we do not host our repository on GitHub.
I have tried using the bugtraq settings on TortoiseGit but it doesn't interact with the repository I've set up on GitHub.
I would like to integrate it with GitHub Issues. Is this possible?
Integrate in this context is a very open concept. Which integrations are you looking for? If you're not hosting the code on the repository itself, any kind of integration will be hard, but it really depends on your specific goal with GitHub Issues and which kind of triggers and links you want from your code to your issues.
From experience if I assume that by integration you mean linking Git commits in your local repository to GitHub Issues the clear answer is no.
So if you really want to use GitHub Issues without pushing the Git code upstream, have you considered creating an empty project to just use GitHub Issues and GitHub Projects. You won't be able to reference issues from the commit message, i.e., Fixed issue found in #4 but you can use it as a standalone project management tool.
Trello offers a free tier for project management that you might also want to check out.

Is it possible to edit file and commit github/bitbucket from browser

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.

Host a project on GitHub and Google Code

Is it possible to have a project hosted on GitHub and Google Code?
I've been using Google Code for years, and recently started playing with GitHub. I like GitHub a lot, but there's also a long list of Google Code features I really miss.
Is it possible/feasible to host a single project on both? Can I use GitHub as the primary repository for my source, but have all revisions automatically sent over to a git repository on Google Code?
Yes, absolutely! Just add then commit then push to both repos! You can also add a remote in .git/config