Giter Club home page Giter Club logo

issuescreationscript's Introduction

Command Line Script to create gitHub and BitBucket issues using APIs

This project contains a Php script that can be used to create GitHub and BitBucket issues by calling the APIs provided by GitHub and BitBucket respectively. The script can be extended to include other repositories as well by creating a class and a function to post issue for that repository and can also be extended to include other functions such as get posts, delete posts, update posts etc.

Setup Instructions

  1. Create a php script and execute it using command prompt. In order to run that file open command prompt and change the directory to reach the root folder of Php in wamp directory where php.exe file is present. Alternatively, if the environmental variable for php is set in the system then this is not required. Php.exe file is normally present in <Drive in which wamp is installed>\wamp\bin\php\<phpversion> eg: C:\wamp\bin\php\php5.3.8

  2. Use the following command to execute the script 2.a) For windows php.exe -f username <username> password <password> <"Issue Title"> <"Steps to reproduce the problem"> eg: php.exe -f C:/Users/Joe/Desktop/createIssue.php username joe password secret https://github.com/example/test "My Issue Title" "These are the steps required". 2.b) For Linux(Ubuntu) php -f username <username> password <password> <"Issue Title"> <"Steps to reproduce the problem">** eg: php -f var/www/issues/createIssue.php username joe password secret https://github.com/example/test "My Issue Title" "These are the steps required". Script can also be executed by using the command : php.exe -f after step 1 and then manually entering the input parameters from the command line.

NOTE: This script uses CURL to connect to APIs, Please uncomment the extension=php_curl.dll extension in the php.ini file for windows and/or use the following commands in Linux(Ubuntu) sudo apt-get install php5-curl sudo /etc/init.d/apache2 restart to enable this script to execute

issuescreationscript's People

Contributors

gauravhanda25 avatar

Watchers

James Cloos avatar  avatar

issuescreationscript's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.