Skip to content

Commit

Permalink
Get it to a better state
Browse files Browse the repository at this point in the history
  • Loading branch information
dormant-user committed Aug 10, 2023
1 parent a36c4a6 commit 2a70af7
Show file tree
Hide file tree
Showing 11 changed files with 85 additions and 21 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
[![GitHub last commit](https://img.shields.io/github/last-commit/thevickypedia/gitverse)](https://api.github.com/repos/thevickypedia/gitverse)

# GitVerse
Get release notes or commit history from `GitHub` and format it into `reStructuredText`/`Markdown` files.

### Installation
```shell
Expand All @@ -25,6 +26,9 @@ Generate release notes from releases tagged in GitHub
```shell
gitverse-release
```
> :bulb: Tries to get release notes, via GitHub API call.
> If failed, uses the commit message as notes for the associated release.
> This feature optionally takes `GIT_TOKEN` as an environment variable if it is generated for a personal repo.
Generate commit history from git log
#### Commit History
Expand Down
4 changes: 4 additions & 0 deletions changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Commit History
==============

0.3.8 (08/10/2023)
------------------
- Get it to a better state

0.3.7 (08/10/2023)
------------------
- Generate release notes based on version tags
Expand Down
6 changes: 6 additions & 0 deletions docs/README.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ <h3>Navigation</h3>
<a class="reference external" href="https://api.github.com/repos/thevickypedia/gitverse"><img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/thevickypedia/gitverse" /></a></p>
<section id="gitverse">
<h1>GitVerse<a class="headerlink" href="#gitverse" title="Permalink to this heading"></a></h1>
<p>Get release notes or commit history from <code class="docutils literal notranslate"><span class="pre">GitHub</span></code> and format it into <code class="docutils literal notranslate"><span class="pre">reStructuredText</span></code>/<code class="docutils literal notranslate"><span class="pre">Markdown</span></code> files.</p>
<section id="installation">
<h2>Installation<a class="headerlink" href="#installation" title="Permalink to this heading"></a></h2>
<div class="highlight-shell notranslate"><div class="highlight"><pre><span></span>pip<span class="w"> </span>install<span class="w"> </span>gitverse
Expand All @@ -68,6 +69,11 @@ <h3>Release Notes (Tags)<a class="headerlink" href="#release-notes-tags" title="
<div class="highlight-shell notranslate"><div class="highlight"><pre><span></span>gitverse-release
</pre></div>
</div>
<blockquote>
<div><p>:bulb: Tries to get release notes, via GitHub API call.
If failed, uses the commit message as notes for the associated release.
This feature optionally takes <code class="docutils literal notranslate"><span class="pre">GIT_TOKEN</span></code> as an environment variable if it is generated for a personal repo.</p>
</div></blockquote>
<p>Generate commit history from git log</p>
</section>
<section id="commit-history">
Expand Down
4 changes: 4 additions & 0 deletions docs/_sources/README.md.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
[![GitHub last commit](https://img.shields.io/github/last-commit/thevickypedia/gitverse)](https://api.github.com/repos/thevickypedia/gitverse)

# GitVerse
Get release notes or commit history from `GitHub` and format it into `reStructuredText`/`Markdown` files.

### Installation
```shell
Expand All @@ -25,6 +26,9 @@ Generate release notes from releases tagged in GitHub
```shell
gitverse-release
```
> :bulb: Tries to get release notes, via GitHub API call.
> If failed, uses the commit message as notes for the associated release.
> This feature optionally takes `GIT_TOKEN` as an environment variable if it is generated for a personal repo.

Generate commit history from git log
#### Commit History
Expand Down
6 changes: 4 additions & 2 deletions docs/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,14 @@ <h2 id="G">G</h2>
</li>
<li><a href="index.html#commits.generator">generator() (in module commits)</a>
</li>
<li><a href="index.html#commits.get_branches">get_branches() (in module commits)</a>
<li><a href="index.html#releases.get_api_releases">get_api_releases() (in module releases)</a>
</li>
<li><a href="index.html#commits.get_commits">get_commits() (in module commits)</a>
<li><a href="index.html#commits.get_branches">get_branches() (in module commits)</a>
</li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="index.html#commits.get_commits">get_commits() (in module commits)</a>
</li>
<li><a href="index.html#releases.get_dates">get_dates() (in module releases)</a>
</li>
<li><a href="index.html#commits.get_gitlog">get_gitlog() (in module commits)</a>
Expand Down
16 changes: 15 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,20 @@ <h1>Welcome to GitVerse’s documentation!<a class="headerlink" href="#welcome-t
</dl>
</dd></dl>

<dl class="py function">
<dt class="sig sig-object py" id="releases.get_api_releases">
<span class="sig-prename descclassname"><span class="pre">releases.</span></span><span class="sig-name descname"><span class="pre">get_api_releases</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">Dict</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">List</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#releases.get_api_releases" title="Permalink to this definition"></a></dt>
<dd><p>Get release notes via git api.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>Returns release notes in the form of release version and description as key-value pairs gathered via GitHub API.</p>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p>Dict[str, List[str]]</p>
</dd>
</dl>
</dd></dl>

<dl class="py function">
<dt class="sig sig-object py" id="releases.get_dates">
<span class="sig-prename descclassname"><span class="pre">releases.</span></span><span class="sig-name descname"><span class="pre">get_dates</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">Dict</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">int</span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#releases.get_dates" title="Permalink to this definition"></a></dt>
Expand Down Expand Up @@ -118,7 +132,7 @@ <h1>Welcome to GitVerse’s documentation!<a class="headerlink" href="#welcome-t

<dl class="py function">
<dt class="sig sig-object py" id="releases.run_git_cmd">
<span class="sig-prename descclassname"><span class="pre">releases.</span></span><span class="sig-name descname"><span class="pre">run_git_cmd</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">cmd</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">List</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#releases.run_git_cmd" title="Permalink to this definition"></a></dt>
<span class="sig-prename descclassname"><span class="pre">releases.</span></span><span class="sig-name descname"><span class="pre">run_git_cmd</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">cmd</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">raw</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">False</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">Union</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">List</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#releases.run_git_cmd" title="Permalink to this definition"></a></dt>
<dd><p>Run the git command.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
Expand Down
Binary file modified docs/objects.inv
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/searchindex.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gitverse/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "1.0b"
version = "2.0a"
Loading

0 comments on commit 2a70af7

Please sign in to comment.