From bfae4191dccdb7d07ab4bb6a91a0af0a53f74ae3 Mon Sep 17 00:00:00 2001 From: github-actions Date: Fri, 12 Jun 2026 14:53:26 +0000 Subject: [PATCH] Initialize repository with repo name NewsPond and username SegoCode --- .github/FUNDING.yml | 2 +- .github/ISSUE_TEMPLATE/bug_report.yml | 2 +- .github/ISSUE_TEMPLATE/config.yml | 2 +- .github/ISSUE_TEMPLATE/feature_request.yml | 2 +- .github/SECURITY.md | 2 +- .github/workflows/initializer.yml | 95 ---------------------- LICENSE | 2 +- README.md | 6 +- docs/README.md | 2 +- 9 files changed, 10 insertions(+), 105 deletions(-) delete mode 100644 .github/workflows/initializer.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 5c41eff..df40ac8 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,4 +1,4 @@ -github: [{username}] +github: [SegoCode] community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry issuehunt: # Replace with a single IssueHunt username ko_fi: # Replace with a single ko_fi username diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index e6219c9..3b5aaa1 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -57,7 +57,7 @@ body: attributes: label: Confirmation options: - - label: I performed a [search of the issue tracker](https://github.com/{username}/{reponame}/issues) to avoid opening a duplicate issue + - label: I performed a [search of the issue tracker](https://github.com/SegoCode/NewsPond/issues) to avoid opening a duplicate issue required: true - label: I understand that not filling out this template correctly may lead to the issue being closed required: true diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 7f83253..b242a1b 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,5 +1,5 @@ blank_issues_enabled: false contact_links: - name: Contact the developer - url: https://{username}.github.io/{username}/ + url: https://SegoCode.github.io/SegoCode/ about: To discuss any type of related topic diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index 23c5ebc..573fce4 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -34,7 +34,7 @@ body: attributes: label: Confirmation options: - - label: I performed a [search of the feature requests](https://github.com/{username}/{reponame}/issues) to avoid suggesting a duplicate feature + - label: I performed a [search of the feature requests](https://github.com/SegoCode/NewsPond/issues) to avoid suggesting a duplicate feature required: true - label: I understand that not filling out this template correctly may lead to the request being closed required: true diff --git a/.github/SECURITY.md b/.github/SECURITY.md index df34996..0d89241 100644 --- a/.github/SECURITY.md +++ b/.github/SECURITY.md @@ -1 +1 @@ -If you discover a vulnerability in this application, that poses a significant threat to the security of the users, we recommend that you do not open a public issue. Instead, please send your report via [email](https://{username}.github.io/{username}/). Include as much detailed information as possible to help understand the nature of the vulnerability. +If you discover a vulnerability in this application, that poses a significant threat to the security of the users, we recommend that you do not open a public issue. Instead, please send your report via [email](https://SegoCode.github.io/SegoCode/). Include as much detailed information as possible to help understand the nature of the vulnerability. diff --git a/.github/workflows/initializer.yml b/.github/workflows/initializer.yml deleted file mode 100644 index 74891eb..0000000 --- a/.github/workflows/initializer.yml +++ /dev/null @@ -1,95 +0,0 @@ -name: Initialize repository - -on: - workflow_dispatch: - -jobs: - initialize_repo: - runs-on: ubuntu-latest - permissions: - contents: write - pull-requests: write - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - ref: main - fetch-depth: 0 - - - name: Setup git - run: | - git config --global user.name "github-actions" - git config --global user.email "github-actions@github.com" - - - name: Install GitHub CLI - run: | - sudo apt-get update - sudo apt-get install gh -y - - - name: Extract repository and username - id: extract - run: | - REPO_NAME="${{ github.repository }}" - USERNAME=$(echo $REPO_NAME | cut -d'/' -f1) - REPO_NAME_ONLY=$(echo $REPO_NAME | cut -d'/' -f2) - echo "username=$USERNAME" >> $GITHUB_OUTPUT - echo "reponame=$REPO_NAME_ONLY" >> $GITHUB_OUTPUT - - - name: Set branch name - id: vars - run: echo "branch=initialize-repo-$(date +%Y%m%d%H%M%S)" >> $GITHUB_OUTPUT - - - name: Create develop branch if it doesn't exist - run: | - # Check if develop branch exists - if ! git ls-remote --heads origin develop | grep develop; then - echo "Creating develop branch from main..." - git checkout -b develop - git push -u origin develop - git checkout main # Return to main branch for the rest of the workflow - else - echo "Develop branch already exists." - fi - - - name: Replace {reponame} and {username} with actual values in non-workflow files - run: | - REPO_NAME_ONLY="${{ steps.extract.outputs.reponame }}" - USERNAME="${{ steps.extract.outputs.username }}" - REPO_NAME_ESCAPED=$(echo $REPO_NAME_ONLY | sed 's/\//\\\//g') - USERNAME_ESCAPED=$(echo $USERNAME | sed 's/\//\\\//g') - - # Modify all files except workflow files - find . -type f -not -path "./.git/*" -not -path "./.github/workflows/*" -exec sed -i "s/{reponame}/$REPO_NAME_ESCAPED/g" {} \; - find . -type f -not -path "./.git/*" -not -path "./.github/workflows/*" -exec sed -i "s/{username}/$USERNAME_ESCAPED/g" {} \; - - - name: Remove initializer workflow - run: | - rm -f .github/workflows/initializer.yml - - - name: Commit changes - run: | - BRANCH_NAME="${{ steps.vars.outputs.branch }}" - git checkout -b $BRANCH_NAME - - # Exclude workflow files to avoid permission errors - git add --all -- ':!.github/workflows' - - # Explicitly add the deletion of the initializer workflow - git add .github/workflows/initializer.yml - - git commit -m "Initialize repository with repo name ${{ steps.extract.outputs.reponame }} and username ${{ steps.extract.outputs.username }}" - git push origin HEAD:$BRANCH_NAME - - - name: Create pull request - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - BRANCH_NAME="${{ steps.vars.outputs.branch }}" - PR_URL=$(gh pr create --base main --head $BRANCH_NAME --title "Initialize repository" --body "This PR initializes the repository with the actual repository name, with the actual username and removing the initializer workflow.") - - # Extract PR number from URL - PR_NUMBER=$(basename $PR_URL) - - # Add any desired labels to the pull request - # gh pr edit $PR_NUMBER --add-label "initialization" diff --git a/LICENSE b/LICENSE index c55d8b7..b04596f 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) {username} +Copyright (c) SegoCode All rights reserved. Section 1 - Definitions diff --git a/README.md b/README.md index 0108ac0..4eba8d8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# {reponame} +# NewsPond

@@ -61,6 +61,6 @@ example.exe -done Provide a direct link to where users can download the application --- -

- +

+

diff --git a/docs/README.md b/docs/README.md index e122676..b2ee135 100644 --- a/docs/README.md +++ b/docs/README.md @@ -47,7 +47,7 @@ We use a branching model inspired by Gitflow to manage our development process: Fork the repository to your own GitHub account and clone it to your local machine: ``` -git clone https://github.com/{username}/{reponame}.git +git clone https://github.com/SegoCode/NewsPond.git ``` ### 2. Create a Feature Branch