diff --git a/.github/ISSUE_TEMPLATE/bug.md b/.github/ISSUE_TEMPLATE/bug.md index af70fd5ec..463b5d2f6 100644 --- a/.github/ISSUE_TEMPLATE/bug.md +++ b/.github/ISSUE_TEMPLATE/bug.md @@ -1,11 +1,11 @@ --- -name: '🐞 Bug Report' +name: ':bug: Bug Report' about: 'Report an issue.' title: '' -labels: 'Type: bug' +labels: 'bug' --- -# 🐞 Bug Report +# :bug: Bug Report +# :nut_and_bolt: Something else diff --git a/.github/labeler.yml b/.github/labeler.yml index fbb5f84ed..51ac736cd 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -4,14 +4,17 @@ test: - client/src/**/*.spec.tsx - server/apps/trak/tests/**/* -django: +server: - server/**/* -reactjs: +client: - client/**/* +infrastructure: + - any: ['docker-compose.yaml', 'infra/**/*.tf'] + CI/CD: - - any: ['.github/workflows/**.yaml', '**/*Dockerfile', '**/*.dockerignore'] + - any: ['.github/**/*', '**/*Dockerfile', '**/*.dockerignore'] documentation: - any: ['docs/**/*', 'docs/haztrak_book/**/*', '**/README.md'] diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 63045503b..4a3ce740b 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,6 +1,34 @@ name-template: 'v$RESOLVED_VERSION' tag-template: 'v$RESOLVED_VERSION' change-template: '- $TITLE @$AUTHOR (#$NUMBER)' +categories: + - title: '🚀 Features' + labels: + - 'feature' + - 'enhancement' + - title: '🐛 Bug Fixes' + labels: + - 'bug' + - title: ':nut_and_bolt: Maintenance' + labels: + - 'chore' + - 'infrastructure' + - 'documentation' +exclude-labels: + - 'skip-changelog' +version-resolver: + major: + labels: + - 'major' + minor: + labels: + - 'enhancement' + patch: + labels: + - 'bug' + - 'chore' + - 'infrastructure' + default: patch template: | ## Changes diff --git a/.github/workflows/release-drafter.yaml b/.github/workflows/release-drafter.yaml index b3e48d552..9c2e2d272 100644 --- a/.github/workflows/release-drafter.yaml +++ b/.github/workflows/release-drafter.yaml @@ -8,6 +8,9 @@ on: pull_request: # Only following types are handled by the action, but one can default to all as well types: [opened, reopened, synchronize] + # pull_request_target event is required for autolabeler to support PRs from forks + pull_request_target: + types: [opened, reopened, synchronize] permissions: contents: read diff --git a/.postman/api b/.postman/api deleted file mode 100644 index b79f0e4dc..000000000 --- a/.postman/api +++ /dev/null @@ -1,4 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY -apis[] = {"apiId":"ef9401d4-9ba5-4d17-9d1e-fa19efcc52d3"} -configVersion = 1.0.0 -type = api diff --git a/.postman/api_ef9401d4-9ba5-4d17-9d1e-fa19efcc52d3 b/.postman/api_ef9401d4-9ba5-4d17-9d1e-fa19efcc52d3 deleted file mode 100644 index 42b2c74b7..000000000 --- a/.postman/api_ef9401d4-9ba5-4d17-9d1e-fa19efcc52d3 +++ /dev/null @@ -1,22 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY -configVersion = 1.0.0 -type = apiEntityData - -[config] -id = ef9401d4-9ba5-4d17-9d1e-fa19efcc52d3 - -[config.relations] - -[config.relations.collections] -rootDirectory = docs/api/postman/collections -files[] = {"id":"15928187-d4087567-913b-42d2-a616-551e001f1dff","path":"Haztrak API.json","metaData":{}} - -[config.relations.collections.metaData] - -[config.relations.apiDefinition] -rootDirectory = docs/api/postman/schemas -files[] = {"path":"openapi-schema.yaml","metaData":{}} - -[config.relations.apiDefinition.metaData] -type = openapi:3 -rootFiles[] = openapi-schema.yaml