✅ Ready to clone and code.
This commit is contained in:
		
				
					committed by
					
						
						github-actions[bot]
					
				
			
			
				
	
			
			
			
						parent
						
							d0bb5584bb
						
					
				
				
					commit
					1c56195d78
				
			@@ -16,10 +16,10 @@ echo "Description: $description";
 | 
			
		||||
 | 
			
		||||
echo "Renaming project..."
 | 
			
		||||
 | 
			
		||||
original_author="author_name"
 | 
			
		||||
original_name="project_name"
 | 
			
		||||
original_urlname="project_urlname"
 | 
			
		||||
original_description="project_description"
 | 
			
		||||
original_author="Projects"
 | 
			
		||||
original_name="DotnetTestExe"
 | 
			
		||||
original_urlname="DotnetTestExe"
 | 
			
		||||
original_description="Awesome DotnetTestExe created by Projects"
 | 
			
		||||
# for filename in $(find . -name "*.*") 
 | 
			
		||||
for filename in $(git ls-files) 
 | 
			
		||||
do
 | 
			
		||||
@@ -30,11 +30,11 @@ do
 | 
			
		||||
    echo "Renamed $filename"
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
mv project_name $name
 | 
			
		||||
mv project_name.Tests $name.Tests
 | 
			
		||||
mv project_name.sln $name.sln
 | 
			
		||||
mv $name/project_name.csproj $name/$name.csproj
 | 
			
		||||
mv $name.Tests/project_name.Tests.csproj $name.Tests/$name.Tests.csproj
 | 
			
		||||
mv DotnetTestExe $name
 | 
			
		||||
mv DotnetTestExe.Tests $name.Tests
 | 
			
		||||
mv DotnetTestExe.sln $name.sln
 | 
			
		||||
mv $name/DotnetTestExe.csproj $name/$name.csproj
 | 
			
		||||
mv $name.Tests/DotnetTestExe.Tests.csproj $name.Tests/$name.Tests.csproj
 | 
			
		||||
 | 
			
		||||
# This command runs only once on GHA!
 | 
			
		||||
rm -rf .gitea/template.yml
 | 
			
		||||
 
 | 
			
		||||
@@ -1 +0,0 @@
 | 
			
		||||
author: rochacbruno
 | 
			
		||||
@@ -10,7 +10,7 @@ jobs:
 | 
			
		||||
  sonarqube:
 | 
			
		||||
    name: SonarQube Trigger
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    if: ${{ !contains ('project_name', format('{0}_{1}', 'project', 'name')) }}
 | 
			
		||||
    if: ${{ !contains ('DotnetTestExe', format('{0}_{1}', 'project', 'name')) }}
 | 
			
		||||
    steps:
 | 
			
		||||
    - name: Checking out
 | 
			
		||||
      uses: actions/checkout@v4
 | 
			
		||||
@@ -24,4 +24,4 @@ jobs:
 | 
			
		||||
        SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }}
 | 
			
		||||
      with:
 | 
			
		||||
        args: >
 | 
			
		||||
          -Dsonar.projectKey=project_name
 | 
			
		||||
          -Dsonar.projectKey=DotnetTestExe
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
# How to develop on this project
 | 
			
		||||
 | 
			
		||||
project_name welcomes contributions from the community.
 | 
			
		||||
DotnetTestExe welcomes contributions from the community.
 | 
			
		||||
 | 
			
		||||
**You need Dotnet 9!**
 | 
			
		||||
 | 
			
		||||
@@ -8,9 +8,9 @@ This instructions are for linux base systems. (Linux, MacOS, BSD, etc.)
 | 
			
		||||
## Setting up your own fork of this repo.
 | 
			
		||||
 | 
			
		||||
- On gitea interface click on `Fork` button.
 | 
			
		||||
- Clone your fork of this repo. `git clone git@git.disi.dev:YOUR_GIT_USERNAME/project_urlname.git`
 | 
			
		||||
- Enter the directory `cd project_urlname`
 | 
			
		||||
- Add upstream repo `git remote add upstream https://git.disi.dev/author_name/project_urlname`
 | 
			
		||||
- Clone your fork of this repo. `git clone git@git.disi.dev:YOUR_GIT_USERNAME/DotnetTestExe.git`
 | 
			
		||||
- Enter the directory `cd DotnetTestExe`
 | 
			
		||||
- Add upstream repo `git remote add upstream https://git.disi.dev/Projects/DotnetTestExe`
 | 
			
		||||
 | 
			
		||||
## Run the tests to ensure everything is working
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
FROM mcr.microsoft.com/dotnet/runtime:9.0
 | 
			
		||||
COPY . /app
 | 
			
		||||
WORKDIR /app
 | 
			
		||||
CMD ["project_name"]
 | 
			
		||||
CMD ["DotnetTestExe"]
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
namespace project_name.Tests;
 | 
			
		||||
namespace DotnetTestExe.Tests;
 | 
			
		||||
 | 
			
		||||
public class UnitTest1
 | 
			
		||||
{
 | 
			
		||||
@@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
 | 
			
		||||
# Visual Studio Version 17
 | 
			
		||||
VisualStudioVersion = 17.0.31903.59
 | 
			
		||||
MinimumVisualStudioVersion = 10.0.40219.1
 | 
			
		||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "project_name", "project_name\project_name.csproj", "{B25F5E39-D0A6-4548-A3B6-428275AB154D}"
 | 
			
		||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotnetTestExe", "DotnetTestExe\DotnetTestExe.csproj", "{B25F5E39-D0A6-4548-A3B6-428275AB154D}"
 | 
			
		||||
EndProject
 | 
			
		||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "project_name.Tests", "project_name.Tests\project_name.Tests.csproj", "{FD1B8A2E-3BA7-4FDD-96FB-18551A15A5F3}"
 | 
			
		||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotnetTestExe.Tests", "DotnetTestExe.Tests\DotnetTestExe.Tests.csproj", "{FD1B8A2E-3BA7-4FDD-96FB-18551A15A5F3}"
 | 
			
		||||
EndProject
 | 
			
		||||
Global
 | 
			
		||||
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 | 
			
		||||
@@ -2,4 +2,4 @@ include LICENSE
 | 
			
		||||
include HISTORY.md
 | 
			
		||||
include Containerfile
 | 
			
		||||
graft tests
 | 
			
		||||
graft project_name
 | 
			
		||||
graft DotnetTestExe
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										12
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								Makefile
									
									
									
									
									
								
							@@ -7,27 +7,27 @@ help:             ## Show the help.
 | 
			
		||||
 | 
			
		||||
.PHONY: fmt
 | 
			
		||||
fmt:              ## Format code.
 | 
			
		||||
	dotnet format project_name.sln
 | 
			
		||||
	dotnet format DotnetTestExe.sln
 | 
			
		||||
 | 
			
		||||
.PHONY: lint
 | 
			
		||||
lint:             ## Lint code.
 | 
			
		||||
	dotnet format --verify-no-changes --verbosity diagnostic project_name.sln
 | 
			
		||||
	dotnet format --verify-no-changes --verbosity diagnostic DotnetTestExe.sln
 | 
			
		||||
 | 
			
		||||
.PHONY: test
 | 
			
		||||
test:             ## Run tests and generate coverage report.
 | 
			
		||||
	dotnet test project_name.sln
 | 
			
		||||
	dotnet test DotnetTestExe.sln
 | 
			
		||||
 | 
			
		||||
.PHONY: clean
 | 
			
		||||
clean:            ## Clean unused files.
 | 
			
		||||
	dotnet clean project_name.sln
 | 
			
		||||
	dotnet clean DotnetTestExe.sln
 | 
			
		||||
 | 
			
		||||
.PHONY: release
 | 
			
		||||
release:          ## Create a new tag for release.
 | 
			
		||||
	@echo "WARNING: This operation will create a version tag and push to gitea"
 | 
			
		||||
	@read -p "Version? (provide the next x.y.z semver) : " TAG
 | 
			
		||||
	@echo "$${TAG}" > project_name/VERSION
 | 
			
		||||
	@echo "$${TAG}" > DotnetTestExe/VERSION
 | 
			
		||||
	@$(ENV_PREFIX)gitchangelog > HISTORY.md
 | 
			
		||||
	@git add project_name/VERSION HISTORY.md
 | 
			
		||||
	@git add DotnetTestExe/VERSION HISTORY.md
 | 
			
		||||
	@git commit -m "release: version $${TAG} 🚀"
 | 
			
		||||
	@echo "creating git tag : $${TAG}"
 | 
			
		||||
	@git tag $${TAG}
 | 
			
		||||
 
 | 
			
		||||
@@ -26,9 +26,9 @@
 | 
			
		||||
<!--  DELETE THE LINES ABOVE THIS AND WRITE YOUR PROJECT README BELOW -->
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
# project_name
 | 
			
		||||
# DotnetTestExe
 | 
			
		||||
 | 
			
		||||
project_description
 | 
			
		||||
Awesome DotnetTestExe created by Projects
 | 
			
		||||
 | 
			
		||||
## Usage
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,2 +1,2 @@
 | 
			
		||||
site_name: project_name
 | 
			
		||||
site_name: DotnetTestExe
 | 
			
		||||
theme: readthedocs
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user