Git Product home page Git Product logo

python-template's Introduction

python-template's People

Contributors

evmckinney9 avatar

Stargazers

 avatar

python-template's Issues

Format Check Workflow Fails

Bug Report

Current Behavior
Breaks with an error code.

Input Code
On any commit to main.

Additional context/Screenshots
image

Removing rename script flag, but will keep calling rename.sh

Bug Report

Current Behavior
Removing the rename flag file doesn't stop the next commit from calling rename again, because calling exit just steps the current step but continues with the rest of the action.

Possible Solution
It seems that the best approach would be to separate your workflow into two jobs. The first job will check if the repository is called /python-template and if the flag file exists. The second job will depend on the first and will only execute if the checks from the first job are successful.

Additional context/Screenshots
Screenshot 2023-05-11 140227

Rename uses username instead of full name

Bug Report

Current Behavior
There are 2 different ways to get the name of the author. I use github.actor because if inside an organization want the name of the person who created the repo instead of the organization name. However github.actor actually refers to username not first last name, which is how the method repository.owner.name works.

Input Code

 .github/scripts/rename_project.sh -a "${{ github.actor }}" \
                                    -n $REPO_NAME \
                                    -u "$(echo $INFO | jq -r .repository.owner.login)" \
                                    -d "$(echo $INFO | jq -r .repository.description)"
.github/scripts/rename_project.sh -a "$(echo $INFO | jq -r .repository.owner.name)" \
                                    -n $REPO_NAME \
                                    -u "$(echo $INFO | jq -r .repository.owner.login)" \
                                    -d "$(echo $INFO | jq -r .repository.description)"

Inconsistent styling. Not sure what is best fix yet.

Default Issue Assignee

Bug Report

Current Behavior
The default assignee is evmckinney9. I could make this dynamic with the renaming script; except, currently I forbid the script to go inside .github.

Fix the file traversal condition, then change the issue assignee to be the owner.

Rename loses badges in README.me

Feature Request

Currently,

echo "# $project_name

$project_description" > README.md

but this loses

![Tests](https://github.com/{username}/{repo-name}/actions/workflows/tests.yml/badge.svg?branch=main)
![Format Check](https://github.com/{username}/{repo-name}/actions/workflows/format-check.yml/badge.svg?branch=main)

I think this is a very easy fix; except for if it belongs to an organization. I just need to figure out a more direct way to get the full URL of the repo.

Config file for repo settings

Feature Request

When using template, there are now many places that need to be immediately updated to work. For example, package-name, python-version, {username/repo}. Is there a way to write all these only once and propagate the changes?

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.