Jiwa and GitHub (JitHub)  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

Jiwa and GitHub (JitHub)  Topic is solved

Postby SBarnes » Sun Dec 11, 2022 9:13 am

A couple of years back I started on a plugin based upon this library that uses the GitHub api https://github.com/octokit/octokit.net but the whole thing went on hiatus due to lack of time, finally I got to dust it off and finish it.

What is does is introduce version control to Jiwa by interacting with GitHub, where it adds version control is in the following way:

  • It adds two buttons to plugin maintenance one to send the plugin to GitHub and one to increment the version number
  • When a new plugin is created it will fill in the author based upon a system setting and create the version number based upon the version number of the Jiwa database
  • It adds a button to the rows in the reports screen to send the reports to GitHub

What you need to do to make it work

  • A GitHub account, not sure if it needs to be a paid account I know you need that if you want private repositories
  • You need to generate an api key for the GitHub account, this is done under the developer section under settings inside GitHub, make sure you choose to enable the repository options
  • Put the generated key in system settings
  • Create a repository and put its name in the system settings

Hopefully this will be useful to people.
Attachments
Plugin JitHub.xml
(1.37 MiB) Downloaded 49 times
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Jiwa and GitHub (JitHub)

Postby pricerc » Sun Dec 11, 2022 9:01 pm

paid account...private repositories


You can have private repositories with with a free account, but there are limits to how many, and with how many people you can share them.
/Ryan

ERP Consultant,
Advanced ERP Limited, NZ
https://aerp.co.nz
User avatar
pricerc
Senpai
Senpai
 
Posts: 504
Joined: Mon Aug 10, 2009 12:22 pm
Location: Auckland, NZ
Topics Solved: 20

Re: Jiwa and GitHub (JitHub)

Postby SBarnes » Wed May 10, 2023 7:05 pm

An improved version of the original plugin that will now allow you to specify the branch to push the files into and it will now work with an organization in grabbing the list of repositories, leave the organization blank and it will perform the old behavior of looking in the repositories for the current user.
Attachments
Plugin JitHub.xml
(1.37 MiB) Downloaded 45 times
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 21 guests

cron