diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000000..e4a5912d64 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,13 @@ +## Pull Request Standards + +- [ ] The title of the PR is accurate +- [ ] The title includes the type of change [`HOTFIX`, `FEATURE`, `etc`] +- [ ] The PR title includes the ticket number in format of `[GWELLS-###]` +- [ ] Documentation is updated to reflect change + +# Description + +This PR includes the following proposed change(s): + +- { List all the changes made } +- { Include any screenshots necessary } diff --git a/.github/labeller.yaml b/.github/labeller.yaml new file mode 100644 index 0000000000..f75dc4e6c6 --- /dev/null +++ b/.github/labeller.yaml @@ -0,0 +1,40 @@ +# Auto Label Git Action Config +# 'label_name' +# - path_of_diff/where/code_lives/to_base_label_upon + +# Any change to any file in .github/workflows +'GitHub Actions': + - '.github/workflows/*' + +# Any change to the docker-compose file or any dockerfile in the repo +'Docker': + - '**/Dockerfile' + - docker-compose.yml + +# Any changes to file or subfolders in /backend +'Backend': + - 'app/backend/**/*' + +# Any changes to file or subfolders in /frontend +'Frontend': + - 'app/frontend/**/*' + +# Any changes to file or subfolders in /database +'Database': + - 'app/database/**/*' + +# Any changes to file or subfolders in /scripts +'Scripts': + - 'app/scripts/**/*' + +# Any changes to file or subfolders in /openshift +'OpenShift': + - 'openshift/**/*' + +# Any changes to file of subfolders in /tests +'Testing': + - 'tests/**/*' + +# Any change to any file in any directory with a .env in name +'Environment Variables': + - '**/*.env*' diff --git a/.github/workflows/pr-labeller.yaml b/.github/workflows/pr-labeller.yaml new file mode 100644 index 0000000000..d98ef38305 --- /dev/null +++ b/.github/workflows/pr-labeller.yaml @@ -0,0 +1,15 @@ +name: "Pull Request Labeler" +on: +- pull_request_target + +jobs: + triage: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v4 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + configuration-path: .github/labeller.yaml