Initial commit

This commit is contained in:
Ivan Ovchinnikov 2023-05-25 10:29:45 -07:00 committed by GitHub
commit 9a7680cb96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 595 additions and 0 deletions

3
.github/CODEOWNERS vendored Normal file
View file

@ -0,0 +1,3 @@
# Main global owner #
#####################
*

33
.github/ISSUE_TEMPLATE/bug_report.md vendored Normal file
View file

@ -0,0 +1,33 @@
---
name: Bug report
about: Create a report to help us improve
title: ""
labels: ""
assignees: ""
---
### Describe the bug
A clear and concise description of what the bug is.
### To reproduce
Steps to reproduce the behavior:
1. Deploy this project using ...
2. View output/logs/configuration on ...
3. See error
### Expected behavior
A clear and concise description of what you expected to happen.
### Your environment
- Version/release of this project or specific commit
<!-- - Version/release of any relevant project languages -->
- Target deployment platform
### Additional context
Add any other context about the problem here.

View file

@ -0,0 +1,23 @@
---
name: Feature request
about: Suggest an idea for this project
title: ""
labels: ""
assignees: ""
---
### Is your feature request related to a problem? Please describe
A clear and concise description of what the problem is. Ex. I'm always frustrated when ...
### Describe the solution you'd like
A clear and concise description of what you want to happen.
### Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
### Additional context
Add any other context or screenshots about the feature request here.

9
.github/dependabot.yml vendored Normal file
View file

@ -0,0 +1,9 @@
---
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
day: monday
time: "00:00"

12
.github/pull_request_template.md vendored Normal file
View file

@ -0,0 +1,12 @@
### Proposed changes
Describe the use case and detail of the change. If this PR addresses an issue on GitHub, make sure to include a link to that issue using one of the [supported keywords](https://docs.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue) here in this description (not in the title of the PR).
### Checklist
Before creating a PR, run through this checklist and mark each as complete.
- [ ] I have read the [`CONTRIBUTING`](https://github.com/{{REPOSITORY_OWNER}}/{{REPOSITORY_URL}}/blob/main/CONTRIBUTING.md) document
- [ ] If applicable, I have added tests that prove my fix is effective or that my feature works
- [ ] If applicable, I have checked that any relevant tests pass after adding my changes
- [ ] I have updated any relevant documentation ([`README.md`](https://github.com/{{REPOSITORY_OWNER}}/{{REPOSITORY_URL}}/blob/main/README.md) and [`CHANGELOG.md`](https://github.com/{{REPOSITORY_OWNER}}/{{REPOSITORY_URL}}/blob/main/CHANGELOG.md))

29
.github/workflows/rename_project.sh vendored Executable file
View file

@ -0,0 +1,29 @@
#!/usr/bin/env bash
while getopts a:n:u:d: flag
do
case "${flag}" in
a) owner=${OPTARG};;
n) name=${OPTARG};;
u) url=${OPTARG};;
esac
done
echo "Owner: $owner";
echo "Repository Name: $name";
echo "Repository URL: $url";
echo "Renaming repository..."
original_owner="{{REPOSITORY_OWNER}}"
original_name="{{REPOSITORY_NAME}}"
original_url="{{REPOSITORY_URL}}"
for filename in $(git ls-files)
do
sed -i "s/$original_owner/$owner/g" $filename
sed -i "s/$original_name/$name/g" $filename
sed -i "s/$original_url/$url/g" $filename
echo "Renamed $filename"
done
# This command runs only once on GHA!
rm -rf .github/workflows

37
.github/workflows/rename_template.yml vendored Normal file
View file

@ -0,0 +1,37 @@
---
name: Rename the template
on:
push:
permissions: write-all
jobs:
rename-template:
if: ${{ !contains(github.repository, 'template') }}
runs-on: ubuntu-22.04
steps:
- name: Check out the codebase
uses: actions/checkout@v3
- name: Set $REPOSITORY_NAME
run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}' | tr '-' '_' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
shell: bash
- name: Set $REPOSITORY_URL
run: echo "REPOSITORY_URL=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
shell: bash
- name: Set $REPOSITORY_OWNER
run: echo "REPOSITORY_OWNER=$(echo '${{ github.repository }}' | awk -F '/' '{print $1}')" >> $GITHUB_ENV
shell: bash
- name: Rename the project
run: |
echo "Renaming the project with -a(author) ${{ env.REPOSITORY_OWNER }} -n(name) ${{ env.REPOSITORY_NAME }} -u(urlname) ${{ env.REPOSITORY_URL }}"
.github/workflows/rename_project.sh -a ${{ env.REPOSITORY_OWNER }} -n ${{ env.REPOSITORY_NAME }} -u ${{ env.REPOSITORY_URL }}
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "✅ Ready to clone and code."
push_options: --force