Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Rabosa616 committed Aug 10, 2023
0 parents commit ba42cce
Show file tree
Hide file tree
Showing 16 changed files with 787 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"files": [
"README.md"
],
"imageSize": 100,
"commit": false,
"contributorsPerLine": 7,
"projectOwner": "ERNI-Academy",
"repoType": "github",
"repoHost": "https://github.com",
"skipCi": true,
"badgeTemplate": "[![All Contributors](https://img.shields.io/badge/all_contributors-<%= contributors.length %>-orange.svg?style=flat-square)](#contributors)",
"contributors": []
}
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*
61 changes: 61 additions & 0 deletions .github/ISSUE_TEMPLATE/10_bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: 🐞 Bug Report
description: Create a report about something that is not working
body:
- type: markdown
attributes:
value: |
Please keep in mind that the GitHub issue tracker is not intended as a general support forum, but for reporting bugs and feature requests.
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please search to see if an issue already exists for the bug you encountered.
options:
- label: I have searched the existing issues
required: true
- type: textarea
attributes:
label: Describe the bug
description: A clear and concise description of what the bug is.
validations:
required: true
- type: textarea
attributes:
label: Expected Behavior
description: A clear and concise description of what you expected to happen.
validations:
required: false
- type: textarea
attributes:
label: Steps To Reproduce
description: |
Steps to reproduce the behavior.
We ❤ code! Point us to a minimalistic repro project hosted in a public GitHub repo.
For a repro project, create a new ASP.NET Core project using the template of your choice, apply the minimum required code to result in the issue you're observing.
We will close this issue if:
- The repro project you share with us is complex. We can't investigate custom projects, so don't point us to such, please.
- If we will not be able to repro the behavior you're reporting.
- If the repro project is attached as a `.zip` file.
- If the GitHub repro project is set to `Private`.
validations:
required: false
- type: textarea
attributes:
label: Exceptions (if any)
description: Include the exception you get when facing this issue.
validations:
required: false
- type: textarea
attributes:
label: Anything else?
description: |
- version:
- The IDE (VS / VS Code/ VS4Mac) you're running on, and its version:
Links? References? Anything that will give us more context about the issue you are encountering!
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
validations:
required: false
35 changes: 35 additions & 0 deletions .github/ISSUE_TEMPLATE/20_feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: 💡 Feature request
description: Suggest an idea for this project
body:
- type: markdown
attributes:
value: |
Please keep in mind that the GitHub issue tracker is not intended as a general support forum, but for reporting bugs and feature requests.
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please search to see if an issue already exists for the feature you are requesting.
options:
- label: I have searched the existing issues
required: true
- type: textarea
attributes:
label: Is your feature request related to a problem? Please describe the problem.
description: A clear and concise description of what the problem is.
placeholder: I am trying to do [...] but [...]
validations:
required: false
- type: textarea
attributes:
label: Describe the solution you'd like
description: |
A clear and concise description of what you want to happen. Include any alternative solutions you've considered.
validations:
required: true
- type: textarea
attributes:
label: Additional context
description: |
Add any other context or screenshots about the feature request here.
validations:
required: false
45 changes: 45 additions & 0 deletions .github/ISSUE_TEMPLATE/30_design_proposal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: 🤔 Design proposal
description: Collaborate on a design for a feature/fix or other change
labels:
- "design-proposal"
body:
- type: markdown
attributes:
value: |
Please keep in mind that the GitHub issue tracker is not intended as a general support forum, but for reporting bugs and feature requests.
- type: textarea
attributes:
label: Explain in 1-2 sentences. Say what this is about.
description: 1-2 sentences. Say what this is about.
validations:
required: true
- type: textarea
attributes:
label: Motivation Goals
description: 1-2 paragraphs, or a bullet-pointed list. What existing pain points does this solve? What evidence shows it's valuable to solve this?
validations:
required: true
- type: textarea
attributes:
label: In scope
description: A list of major scenarios, perhaps in priority order.
validations:
required: true
- type: textarea
attributes:
label: Out of scope
description: Scenarios you explicitly want to exclude.
validations:
required: true
- type: textarea
attributes:
label: Risks / unknowns
description: How might developers misinterpret/misuse this? How might implementing it restrict us from other enhancements in the future? Also list any perf/security/correctness concerns.
validations:
required: true
- type: textarea
attributes:
label: Examples
description: Give brief examples of possible developer experiences (e.g., code they would write). Don't be deeply concerned with how it would be implemented yet. Your examples could even be from other technology stacks.
validations:
required: false
39 changes: 39 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/servicing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# {PR title}

Summary of the changes (Less than 80 chars)

## Description

{Detail}

Fixes #{bug number} (in this specific format)

## Customer Impact

{Justification}

## Regression?

- [ ] Yes
- [ ] No

[If yes, specify the version the behavior has regressed from]

## Risk

- [ ] High
- [ ] Medium
- [ ] Low

[Justify the selection above]

## Verification

- [ ] Manual (required)
- [ ] Automated

## Packaging changes reviewed?

- [ ] Yes
- [ ] No
- [ ] N/A
21 changes: 21 additions & 0 deletions .github/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
blank_issues_enabled: true

# Configuration for welcome - https://github.com/behaviorbot/welcome

# Configuration for new-issue-welcome - https://github.com/behaviorbot/new-issue-welcome

# Comment to be posted to on first time issues
newIssueWelcomeComment: >
Thanks for opening your first issue here! Be sure to follow the issue template!
# Configuration for new-pr-welcome - https://github.com/behaviorbot/new-pr-welcome

# Comment to be posted to on PRs from first time contributors in your repository
newPRWelcomeComment: >
Thanks for opening this pull request! If you haven't already, please be sure to check out [the contributing guidelines](https://github.com/ERNI-Academy/erni-academy-template/blob/main/CONTRIBUTING.md).
# Configuration for first-pr-merge - https://github.com/behaviorbot/first-pr-merge

# Comment to be posted to on pull requests merged by a first time user
firstPRMergeComment: >
Congrats on merging your first pull request! <br /> <br />We here at Erni-Academy are proud of you! :tada:<br /><br />If you're interested in tackling another bug or feature, take a look at the open issues, especially those labeled `help wanted`."
# It is recommend to include as many gifs and emojis as possible
21 changes: 21 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# {PR title}

<!-- Thank you for submitting a pull request to our repo. -->

<!-- If this is your first PR in the ASP.NET Core repo, please run through the checklist
below to ensure a smooth review and merge process for your PR. -->

- [ ] You've read the [Contributor Guide](./../CONTRIBUTING.md) and [Code of Conduct](./../CODE-OF-CONDUCT.md).
- [ ] You've included unit or integration tests for your change, where applicable.
- [ ] You've included inline docs for your change, where applicable.
- [ ] There's an open issue for the PR that you are making. If you'd like to propose a new feature or change, please open an issue to discuss the change or find an existing issue.

<!-- Once all that is done, you're ready to go. Open the PR with the content below. -->

Summary of the changes (Less than 80 chars)

## Description

{Detail}

Fixes #{bug number} (in this specific format)
108 changes: 108 additions & 0 deletions .github/workflows/SyncTemplateWithRepos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
name: Sync Template files to repositories
on: # rebuild any PRs and main branch changes
push:
branches:
- main
workflow_call:
secrets:
REPOS_ACCESS_TOKEN:
required: true
jobs:
# Run cleaning process only if workflow is triggered by the non-ERNI-Academy/erni-academy-template repository.
template-cleanup:
name: Template Cleanup
runs-on: ubuntu-latest
if: github.event.repository.name != 'erni-academy-template'
steps:
# Check out current repository
- name: Checkout
uses: actions/checkout@v3

# Cleanup project
- name: Cleanup
run: |
# Cleanup
rm -rf \
sync.yml \
.github/workflows/SyncTemplateWithRepos.yml \
# Commit modified files
- name: Commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git commit -m "🗑️ Template cleanup"
# Push changes
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: main
github_token: ${{ secrets.GITHUB_TOKEN }}

generate_list_of_repos:
if: github.event.repository.name == 'erni-academy-template'
runs-on: ubuntu-latest
outputs:
repos: ${{ steps.generate-matrix.outputs.repos}}
matrix: ${{ steps.generate-matrix.outputs.matrix}}
steps:
- name: Generate Matrix
id: generate-matrix
run: |
REPOSITORIES=`curl https://api.github.com/orgs/ERNI-Academy/repos?per_page=200 -H "Accept: application/json" -H "Bearer ${{ secrets.REPOS_ACCESS_TOKEN }}" | jq '.[].name'`
echo $REPOSITORIES
REPOSITORIES_FOR_JSON=`echo $REPOSITORIES | sed 's/ /},{\"repo\":/g'`
echo $REPOSITORIES_FOR_JSON
REPOSITORIES_FOR_JSON="{\"include\":[{\"repo\":$REPOSITORIES_FOR_JSON}]}"
echo $REPOSITORIES_FOR_JSON
REPOSITORIES_FOR_JSON="{\"include\":[{\"repo\":\"Test_Sync_Repo\"}]}"
echo ::set-output name=matrix::$JSON_REPOS
REPOSITORIES=`echo $REPOSITORIES | sed 's/\".github\" //g'`
REPOSITORIES_FOR_LIST=`echo $REPOSITORIES | sed 's/\" \"/\n ERNI-Academy\//g'`
REPOSITORIES_FOR_LIST=`echo $REPOSITORIES_FOR_LIST | sed 's/\"//g'`
REPOSITORIES_FOR_LIST="ERNI-Academy/$REPOSITORIES_FOR_LIST"
REPOSITORIES_FOR_LIST="\"$REPOSITORIES_FOR_LIST\""
echo $REPOSITORIES_FOR_LIST
echo ::set-output name=repos::$REPOSITORIES_FOR_LIST
shell: bash

propagate_changes_to_repos:
if: github.event.repository.name == 'erni-academy-template'
needs: generate_list_of_repos
runs-on: ubuntu-latest
steps:
- run: echo ${{ matrix.repo }}
- name: Checkout
uses: actions/checkout@v3
- name: Create Configuration File
id: create_configuration_file
shell: bash
run: |
echo ${{ needs.generate_list_of_repos.outputs.repos }}
value=$(<sync.yml)
echo "START newstr and oldstr value"
oldstr="Repositories"
newstr="\n ERNI-Academy\/Test_Sync_Repo"
newstr=$(echo ${{ needs.generate_list_of_repos.outputs.repos }})
echo "END newstr and oldstr value"
echo "START newString value"
echo "${newstr}"
echo "END newString value"
for i in ${newstr}; do echo " $i" >> sync.yml; done
# sed -i "s/Repositories/${newstr}/g" sync.yml
value_new=$(<sync.yml)
echo "$value_new"
- uses: BetaHuhn/repo-file-sync-action@latest
with:
GH_PAT: ${{ secrets.REPOS_ACCESS_TOKEN}}
CONFIG_PATH: sync.yml
PR_LABELS: |
file-sync
automerge
template-sync
11 changes: 11 additions & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Authors

This is the list of significant contributors. This does not necessarily list everyone who has contributed code, especially since many employees of one corporation may be contributing.

To see the full list of contributors, see the revision history in
source control.

Names should be added to this file as:
Organization, Name and ```<GitHub link>```

- *ERNI*. your_name [@your_github](https://github.com/your_github)
Loading

0 comments on commit ba42cce

Please sign in to comment.