Skip to content

Commit

Permalink
Fix repository display & release job (#493)
Browse files Browse the repository at this point in the history
* Fix release

* Fix repository display & release job

* prepare 1.5.1

* run black

---------

Co-authored-by: Nicolas Vuillamy <[email protected]>
  • Loading branch information
nvuillam and nvuillam authored Dec 31, 2023
1 parent 59da19d commit ca5a109
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
build_push_docker:
name: Build & Push docker image
runs-on: ubuntu-latest
needs: publish
permissions:
packages: write
steps:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

- Add your updates here :)

## [1.5.1] 2023-12-31

- Fix repository display & release job

## [1.5.0] 2023-12-29

- Enhance display of repositories in markdown
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ jobs:

# Collect data & generate markdown
- name: GitHub Dependents Info
uses: nvuillam/[email protected].0 # If you trust me enough you can replace version by "main" :)
uses: nvuillam/[email protected].1 # If you trust me enough you can replace version by "main" :)
# See documentation for variables details: https://github.com/nvuillam/github-dependents-info?tab=readme-ov-file#%EF%B8%8F-usage
with:
repo: ${{ github.repository }}
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ inputs:

runs:
using: "docker"
image: "docker://nvuillam/github-dependents-info:v1.5.0"
image: "docker://nvuillam/github-dependents-info:v1.5.1"
args:
- --repo
- ${{ inputs.repo }}
Expand Down
4 changes: 3 additions & 1 deletion github_dependents_info/gh_dependents_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,9 @@ def build_repo_md_line(self, md_lines, repo1):
image_md = f'<img class="avatar mr-2" src="{img}" width="20" height="20" alt=""> '
if "owner" in repo1 and "repo_name" in repo1:
owner_md = "[" + repo1["owner"] + "](https://github.com/" + repo1["owner"] + ")"
repo_md = "[" + repo1["owner"] + "](https://github.com/" + repo1["owner"] + "/" + repo1["repo_name"] + ")"
repo_md = (
"[" + repo1["repo_name"] + "](https://github.com/" + repo1["owner"] + "/" + repo1["repo_name"] + ")"
)
md_lines += [f"|{image_md} &nbsp; {owner_md} / {repo_md} | {repo_stars} |"]
else:
md_lines += [f"|{image_md} &nbsp; [{repo_label}](https://github.com/{repo_label}) | {repo_stars} |"]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "github-dependents-info"
version = "1.5.0"
version = "1.5.1"
description = "Collect information about dependencies between a github repo and other repositories. Results available in JSON, markdown and badges."
readme = "README.md"
authors = ["nvuillam <[email protected]>"]
Expand Down

0 comments on commit ca5a109

Please sign in to comment.