Last active
June 6, 2016 19:25
Revisions
-
JanTvrdik revised this gist
May 13, 2016 . 1 changed file with 7 additions and 12 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,6 +3,9 @@ current_branch="$(git symbolic-ref HEAD 2>/dev/null)" || current_branch="(unknown)" current_branch=${current_branch##refs/heads/} github_username="JanTvrdik" github_token="..." if [[ $current_branch = "(unknown)" ]] then echo "Unable to determine current branch!" @@ -21,18 +24,10 @@ read project echo "Issue number:" read issue echo "Base commit / branch (usually master):" read base curl \ -d "{ \"base\": \"$base\", \"head\": \"$github_username:$current_branch\", \"issue\": \"$issue\"}" \ -u "$github_token:x-oauth-basic" \ https://api.github.com/repos/$owner/$project/pulls -
JanTvrdik revised this gist
Jun 14, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,7 +10,7 @@ then fi echo "Project owner:" echo " (the guy or the company which must accept your pull request)" echo " (https://github.com/symfony/TwigBundle -> symfony)" read owner -
JanTvrdik revised this gist
Jun 14, 2012 . 1 changed file with 8 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,8 +9,14 @@ then exit 1 fi echo "Project owner:" echo " (the guy or the company which must to accept your pull request)" echo " (https://github.com/symfony/TwigBundle -> symfony)" read owner echo "Project name:" echo " (https://github.com/symfony/TwigBundle -> TwigBundle)" read project echo "Issue number:" read issue -
JanTvrdik revised this gist
Jun 14, 2012 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,8 +9,8 @@ then exit 1 fi owner="..." # project owner project="..." # project name echo "Issue number:" read issue @@ -26,7 +26,7 @@ read password curl \ -d "pull[base]=$base" \ -d "pull[head]=$owner:$current_branch" \ -d "pull[issue]=$issue" \ -u "$username:$password" \ https://github.com/api/v2/json/pulls/$owner/$project -
JanTvrdik revised this gist
Apr 20, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ current_branch=${current_branch##refs/heads/} if [[ $current_branch = "(unknown)" ]] then echo "Unable to determine current branch!" exit 1 fi -
JanTvrdik revised this gist
Apr 20, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -28,5 +28,5 @@ curl \ -d "pull[base]=$base" \ -d "pull[head]=$company:$current_branch" \ -d "pull[issue]=$issue" \ -u "$username:$password" \ https://github.com/api/v2/json/pulls/$company/$project -
JanTvrdik revised this gist
Apr 20, 2012 . 1 changed file with 32 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,32 @@ #!/bin/bash current_branch="$(git symbolic-ref HEAD 2>/dev/null)" || current_branch="(unknown)" current_branch=${current_branch##refs/heads/} if [[ $current_branch = "(unknown)" ]] then echo "Nepodařilo se zjistit aktuální větev!" exit 1 fi company="clevisaci" project="tripilot" echo "Issue number:" read issue echo "Base commit / branch:" read base echo "GitHub username:" read username echo "GitHub password:" read password curl \ -d "pull[base]=$base" \ -d "pull[head]=$company:$current_branch" \ -d "pull[issue]=$issue" \ -u '$username:$password' \ https://github.com/api/v2/json/pulls/$company/$project -
sethvargo created this gist
Jul 14, 2011 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ curl -d "pull[base]={branch_in_project_to_pull_to}" -d "pull[head]={your_github_username}:{branch_you_want_to_merge}" \ -d "pull[issue]={issue_number}" \ -u '{your_github_username}:{your_github_password}' \ https://github.com/api/v2/json/pulls/{github_username_you_are_requesting_the_pull_from}/{project_you want_to_submit_pull_to}