Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ebronson68 committed Aug 14, 2023
0 parents commit a61d53c
Show file tree
Hide file tree
Showing 17 changed files with 1,333 additions and 0 deletions.
64 changes: 64 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto

###############################################################################
# Set default behavior for command prompt diff.
#
# This is need for earlier builds of msysgit that does not have it on by
# default for csharp files.
# Note: This is only used by command line
###############################################################################
#*.cs diff=csharp

###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just uncomment the entries below
###############################################################################
#*.sln merge=binary
#*.csproj merge=binary
#*.vbproj merge=binary
#*.vcxproj merge=binary
#*.vcproj merge=binary
#*.dbproj merge=binary
#*.fsproj merge=binary
#*.lsproj merge=binary
#*.wixproj merge=binary
#*.modelproj merge=binary
#*.sqlproj merge=binary
#*.wwaproj merge=binary

###############################################################################
# behavior for image files
#
# image files are treated as binary by default.
###############################################################################
#*.jpg binary
#*.png binary
#*.gif binary
*.gpg -diff

###############################################################################
# diff behavior for common document formats
#
# Convert binary document formats to text before diffing them. This feature
# is only available from the command line. Turn it on by uncommenting the
# entries below.
###############################################################################
#*.doc diff=astextplain
#*.DOC diff=astextplain
#*.docx diff=astextplain
#*.DOCX diff=astextplain
#*.dot diff=astextplain
#*.DOT diff=astextplain
#*.pdf diff=astextplain
#*.PDF diff=astextplain
#*.rtf diff=astextplain
#*.RTF diff=astextplain
4 changes: 4 additions & 0 deletions .github/.templatesyncignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.github/CODEOWNERS
*.ps1
README.md
Secrets-example.json
53 changes: 53 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# General
* @Andrews-McMeel-Universal/devops-engineers

# Front-end Engineering
# *.html @Andrews-McMeel-Universal/front-end-engineers
# *.lock @Andrews-McMeel-Universal/front-end-engineers
# *.js @Andrews-McMeel-Universal/front-end-engineers
# *.jsx @Andrews-McMeel-Universal/front-end-engineers
# *.ts @Andrews-McMeel-Universal/front-end-engineers
# *.tsx @Andrews-McMeel-Universal/front-end-engineers
# *.css @Andrews-McMeel-Universal/front-end-engineers
# *.less @Andrews-McMeel-Universal/front-end-engineers
# *.scss @Andrews-McMeel-Universal/front-end-engineers
# *.sass @Andrews-McMeel-Universal/front-end-engineers
# *.otf @Andrews-McMeel-Universal/front-end-engineers
# *.eot @Andrews-McMeel-Universal/front-end-engineers
# *.ttf @Andrews-McMeel-Universal/front-end-engineers
# *.woff* @Andrews-McMeel-Universal/front-end-engineers
# *.svg @Andrews-McMeel-Universal/front-end-engineers
# *.jpg @Andrews-McMeel-Universal/front-end-engineers
# *.jpeg @Andrews-McMeel-Universal/front-end-engineers
# *.gif @Andrews-McMeel-Universal/front-end-engineers
# *.png @Andrews-McMeel-Universal/front-end-engineers
# *.ico @Andrews-McMeel-Universal/front-end-engineers
# public/** @Andrews-McMeel-Universal/front-end-engineers
# src/** @Andrews-McMeel-Universal/front-end-engineers
# .storybook/** @Andrews-McMeel-Universal/front-end-engineers
# .browserslistrc @Andrews-McMeel-Universal/front-end-engineers
# **eslint** @Andrews-McMeel-Universal/front-end-engineers
# **jest** @Andrews-McMeel-Universal/front-end-engineers
# **prettier** @Andrews-McMeel-Universal/front-end-engineers
# **stylelint** @Andrews-McMeel-Universal/front-end-engineers
# **/src/assets/** @Andrews-McMeel-Universal/front-end-engineers
# **/src/src/** @Andrews-McMeel-Universal/front-end-engineers
# **/src/amu/** @Andrews-McMeel-Universal/front-end-engineers

# Back-end Engineering
# **.cs @Andrews-McMeel-Universal/back-end-engineers
# **.csproj @Andrews-McMeel-Universal/back-end-engineers
# **.sln @Andrews-McMeel-Universal/back-end-engineers
# data/** @Andrews-McMeel-Universal/back-end-engineers
# *.Library/ @Andrews-McMeel-Universal/back-end-engineers
# *.Tests/ @Andrews-McMeel-Universal/back-end-engineers
# *.WebAPI/ @Andrews-McMeel-Universal/back-end-engineers
# *.UnitTests/ @Andrews-McMeel-Universal/back-end-engineers

# DevOps
.github/ @Andrews-McMeel-Universal/devops-engineers
deployments/ @Andrews-McMeel-Universal/devops-engineers
*-Secrets.ps1 @Andrews-McMeel-Universal/devops-engineers
Dockerfile @Andrews-McMeel-Universal/devops-engineers
docker-compose.yml @Andrews-McMeel-Universal/devops-engineers
.nvmrc* @Andrews-McMeel-Universal/devops-engineers
21 changes: 21 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Contributing

New branches should always be associated with a Jira ticket. The branch should be prefixed with the issue key and a short description, like so: `jiraIssueType/AMUPRODUCT-1234/hyphenated-issue-summary`.

## Jira Smart Commits

In scenarios where creating a separate branch for each Jira ticket is not exactly feasible, you can still trigger our automation by using what are called [smart commits](https://confluence.atlassian.com/fisheye/using-smart-commits-960155400.html).

To use Jira smart commits, you would include the Jira issue key for each commit like so: `[AMUPRODUCT-1234], [AMUPRODUCT-1235] Knocked out the 4 copy edits needed`

## Creating Pull Requests

Once you have committed your effort in a separate branch, you will need to raise a pull request in Github. While filling out the Pull Request, **Please** follow the pull request template format and write a brief description of any technical details and Jira tickets that are related to the PR.

The recommended title for the pull request is typically just the branch name. Again, if a single issue per branch is not feasible, including a brief title of the effort is acceptable.

You do not need to fill in the reviewers or assignees. Our CODEOWNERS automation takes care of who will need to review it. As long as a AMU software engineer reviews it and the other checks pass, they will take care of merging the pull request into staging and production.

> NOTE: On every PR, we do run tests and automatically format the code with Prettier.
> NOTE: A PR will not be able to be merged until at least 1 reviewer with write access has approved it and all tests are passing. If a PR is updated with a new commit, stale reviews will be dismissed.
17 changes: 17 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!--
We appreciate the effort for this pull request but before that please make sure you read the contribution guidelines, then fill out the blanks below.
Please format the PR title appropriately based on the type of change:
[<issue>]: <description>
Where <issue> is the related Jira Issue Key.
-->

## Description

<!-- Provide a description here -->

## Related Issues

<!-- List any related Jira issues here -->

- Jira Issue: PROJECT-<num>
84 changes: 84 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "github-actions"
directory: ".github/"
schedule:
interval: "monthly"
day: "monday"
labels:
- "devops"
- "dependencies"
open-pull-requests-limit: 10
commit-message:
# Prefix all commit messages with 'github-actions'
prefix: "github-actions"

- package-ecosystem: "docker"
directory: "/"
ignore:
- dependency-name: node
- dependency-name: ruby
- dependency-name: dotnet/sdk
- dependency-name: "*"
update-types: ["version-update:semver-major"]
schedule:
interval: "monthly"
day: "monday"
labels:
- "dependencies"
- "devops"
open-pull-requests-limit: 10
commit-message:
# Prefix all commit messages with 'docker'
prefix: "docker"

- package-ecosystem: "npm" # for yarn
directory: "/" # Look for `package.json` and `lock` files in the `root` directory
schedule:
interval: "monthly"
day: "monday"
labels:
- "front-end"
- "dependencies"
versioning-strategy: increase
open-pull-requests-limit: 10
commit-message:
# Prefix all commit messages with 'npm'
prefix: "npm"

- package-ecosystem: bundler
directory: "/"
schedule:
interval: "monthly"
day: "monday"
ignore:
- dependency-name: nokogiri
versions:
- "> 1.12.0"
- dependency-name: "*"
update-types: ["version-update:semver-major","version-update:semver-minor"]
labels:
- "dependencies"
open-pull-requests-limit: 10
commit-message:
# Prefix all commit messages with 'bundler'
prefix: "bundler"

- package-ecosystem: "nuget"
directory: "/"
schedule:
interval: "monthly"
day: "monday"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]
labels:
- "back-end"
- "dependencies"
open-pull-requests-limit: 10
commit-message:
# Prefix all commit messages with 'nuget'
prefix: "nuget"
78 changes: 78 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
dependencies:
- yarn.lock
- package.json
- "**/package-lock.json"
- Gemfile.lock
- Gemfile
- ".ruby-version"
- "**/*.csproj"
- "**/pnpm-lock.yaml"

documentation:
- "**/*.md"

front-end:
- "**/*.js"
- "**/*.js.html"
- "**/*.json"
- "**/*.jsx"
- "**/*.ts"
- "**/*.tsx"
- "**/*.html"
- "**/*.css"
- "**/*.less"
- "**/*.scss"
- "**/*.sass"
- "**/*.otf"
- "**/*.eot"
- "**/*.ttf"
- "**/*.woff*"
- "**/*.svg"
- "**/*.jpg"
- "**/*.jpeg"
- "**/*.gif"
- "**/*.png"
- "**/*.ico"
- "public/**"
- "src/**"
- .storybook/**
- package.json
- wp-content/
- "!**/Secrets.json*"
- "!/.vscode"
- "!**/*.test.js"
- "!.github/**"

back-end:
- "**/*.cs"
- "**/*.csproj"
- "**/*.sln"
- "**/**.json"
- "bin/"
- "**/*.rb"
- "Rakefile"
- "**/*.yml"
- "**/*.ru"
- "!**/Secrets.json*"
- "!.github/**"

tools:
- "/.vscode"
- "/.devcontainer"

tests:
- "playwright/**"
- "cypress/**"
- "**/.spec.*"
- "**/*.test.js"
- ".github/workflows/workflow-linter.yaml"
- ".github/actionlint.yaml"

devops:
- ".github/**"
- "deployments/**"
- "*.ps1"
- "Secrets.json*"
- "docker-compose.yml"
- "Dockerfile"
- ".*ignore"
17 changes: 17 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
changelog:
categories:
- title: General Changes
labels:
- "*"
exclude:
authors:
- dependabot
- title: DevOps Changes
labels:
- devops
exclude:
labels:
- dependencies
- title: Dependencies
labels:
- dependencies
32 changes: 32 additions & 0 deletions .github/workflows/dependabot-automations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Dependabot Automations

on:
pull_request_target:
types: [opened, synchronize, reopened]
branches: [main, development]

permissions:
pull-requests: write
contents: write
repository-projects: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
dependabot-automations:
if: ${{ github.actor == 'dependabot[bot]' }}
name: Dependabot PR Automations
uses: Andrews-McMeel-Universal/reusable_workflows/.github/workflows/dependabot-automations.yaml@2
with:
autoApprove: true
autoMerge: false

required-checks:
name: Required Checks
runs-on: ubuntu-latest
needs: [dependabot-automations]
steps:
- name: Checkout code
uses: actions/checkout@v3
Loading

0 comments on commit a61d53c

Please sign in to comment.