✅ Ready to clone and code.
This commit is contained in:
parent
9a7680cb96
commit
0cce01b3c7
7 changed files with 13 additions and 79 deletions
4
.github/pull_request_template.md
vendored
4
.github/pull_request_template.md
vendored
|
|
@ -6,7 +6,7 @@ Describe the use case and detail of the change. If this PR addresses an issue on
|
|||
|
||||
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
|
||||
- [ ] I have read the [`CONTRIBUTING`](https://github.com/nginxinc/nginx-otel/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))
|
||||
- [ ] I have updated any relevant documentation ([`README.md`](https://github.com/nginxinc/nginx-otel/blob/main/README.md) and [`CHANGELOG.md`](https://github.com/nginxinc/nginx-otel/blob/main/CHANGELOG.md))
|
||||
|
|
|
|||
29
.github/workflows/rename_project.sh
vendored
29
.github/workflows/rename_project.sh
vendored
|
|
@ -1,29 +0,0 @@
|
|||
#!/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
37
.github/workflows/rename_template.yml
vendored
|
|
@ -1,37 +0,0 @@
|
|||
---
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue