Coder Social home page Coder Social logo

github_helper's Introduction

Github helper scripts

This is a little collection of useful helper scripts.

credentials.json

All the scripts inside this repo need a credentials.json in their home folder (e.g. brancher/ ). The content should be a JSON object with username (your github account name) and apikey (generate one in Settings > Developer settings > Personal access tokens), e.g.:

{
  "username": "nickvergessen",
  "apikey": "1234567890abcdef1234567890abcdef12345678"
}

Changelog generator

  • provide the credentials by placing a copy of credentials.dist.json as credentials.json in the root of this folder
  • go into changelog/
  • install composer dependencies: composer install

Generate changelog command

Syntax:

php index.php generate:changelog $repoName $base $head --format=$format

The format setting has the following options:

  • Github (default)
  • forum (--format=forum - Markdown with absolute links)
  • changelog page on our website (--format=html - HTML list with absolute links)

E.g. to generate the changelog for the upcoming 13.0.1 server release. This script automatically derives the milestone from the first argument "v13.0.0" will mean that the milestone "13.0.1" will be checked for pending pull requests:

php index.php generate:changelog server v13.0.0 stable13

E.g. generate the changelog for the upcoming 3.3.0 Android release:

php index.php generate:changelog android stable-3.3.0 stable-3.3.x

E.g. to generate the pending PRs for a very first beta of a major release run (mind, the vxx.0.0beta0 tag is expected NOT to exist)):

php index.php generate:changelog server v42.0.0beta0 master

github_helper's People

Contributors

altahrim avatar andyscherzinger avatar blizzz avatar dependabot[bot] avatar gretad avatar jotoeri avatar juliushaertl avatar kesselb avatar lukasreschke avatar morrisjobke avatar nickvergessen avatar pvince81 avatar rullzer avatar skjnldsv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

github_helper's Issues

changelog script throws error: "Could not find base or head reference."

Running this:
$ php index.php generate:changelog server v15.0.5 v15.0.6 --format=html
I get:

repo: server
base: v15.0.5
head: v15.0.6
Checking milestone 15.0.6 for pending PRs ...
 Fetching PR titles for survey_client ...
 45/54 [=======================>----]  83%
 Remaining: 6 secsCould not find base or head reference.

changelog broken for 15.0.14? "Could not find base or head reference."

$ php index.php generate:changelog server v15.0.13 stable15 --format=html
repo: server
base: v15.0.13
head: stable15
Checking milestone 15.0.14 for pending PRs ...
Fetching PR titles for activity ...
9/45 [=====>----------------------] 20%
Remaining: 20 secsCould not find base or head reference.

Ref - #16 - no clue if that is related. @rullzer I know you're busy but this blocks me for updating the site :(

EDIT: same for 16.0.6 and 17.0.1
Does work for 15.0.12 and 17.0.0! So something is broken wrt the latest releases.

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.