Skip to content

Commit

Permalink
Streamline gh project (#513)
Browse files Browse the repository at this point in the history
* fix labels in issue templates

* conform PR labeler to current issue labels in GH

* update the release drafter to use new labels
  • Loading branch information
dpgraham4401 authored Jun 12, 2023
1 parent 33b39b3 commit 00af8d6
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 38 deletions.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -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

<!--
Please provide a clear and concise description, steps to reproduce, and any other information you believe may be useful.
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/feature.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
name: '🚀 Feature Request'
about: 'Suggest an idea or possible new feature.'
title: ''
labels: 'Type: feature'
labels: 'enhancement'
---

# 🚀 Feature Request
# :rocket: Feature Request

<!--
Please provide a clear and concise description of what you'd like to see. Things like...
Expand Down
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/other.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
name: 'Something else'
about: 'Questions, discussion, or other'
name: ':nut_and_bolt: Something else'
about: 'Questions, discussions, chores, or other'
title: ''
labels: ''
labels: 'chore'
---

<!-- The floor is yours... -->
# :nut_and_bolt: Something else
9 changes: 6 additions & 3 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down
28 changes: 28 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release-drafter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions .postman/api

This file was deleted.

22 changes: 0 additions & 22 deletions .postman/api_ef9401d4-9ba5-4d17-9d1e-fa19efcc52d3

This file was deleted.

0 comments on commit 00af8d6

Please sign in to comment.