Skip to content

Commit

Permalink
ci(prlabeler): Use GitHub App to add the label to PRs (#76)
Browse files Browse the repository at this point in the history
To support GITHUB_TOKEN used PR.
  • Loading branch information
5ouma authored Apr 7, 2024
1 parent c7d05d4 commit caadc15
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 63 deletions.
27 changes: 0 additions & 27 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ I would recommend reading this guideline for a better development experience.

- [🧪 Testing Advice](#-testing-advice)
- [💬 Commit Message](#-commit-message)
- [🔠 Branch Prefix](#-branch-prefix)
- [❓ Pull Requests Title](#-pull-requests-title)
- [🪵 Commit Log](#-commit-log)

Expand Down Expand Up @@ -40,32 +39,6 @@ Body

<br />

## 🔠 Branch Prefix

You should follow these branch name rules
because [Pull Request Labeler] automatically adds labels to your Pull Requests.
<br />
For the details of each label, please see [Labels](https://github.com/5ouma/mli/labels).

[Pull Request Labeler]: https://github.com/actions/labeler

| Label | Branch Prefix RegEx |
| :-----------------: | :----------------------------------: |
| Type: Feature | `^feat(ure)?-` |
| Type: Bug | `^fix-` |
| Type: Security | `^sec(urity)?-` |
| Type: Documentation | `^doc(ument)?s?-` |
| Type: Refactoring | `^refactor(ing)?-` |
| Type: Testing | `^test(ing\|s)?-` |
| Type: Maintenance | `^maintenance-` , `^maintain(ing)?-` |
| Type: CI | `^ci-` |
| Type: Dependencies | `^dep(endency\|endencies\|s)?-` |
| Type: Meta | `^meta-` |

> Labels were generated with [@azu / github-label-setup](https://github.com/azu/github-label-setup)
<br />

## ❓ Pull Requests Title

You don't need to add any prefixes like `feature` or `bug fix`
Expand Down
13 changes: 13 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@
- [ ] This Pull Request introduces a new feature.
- [ ] This Pull Request fixes a bug.

### Type of the Change

- [ ] Feature
- [ ] Bug
- [ ] Security
- [ ] Documentation
- [ ] Refactoring
- [ ] Testing
- [ ] Maintenance
- [ ] CI
- [ ] Dependencies
- [ ] Meta

### Description

<!--
Expand Down
20 changes: 0 additions & 20 deletions .github/labeler.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
alwaysReplace: true
searchTitle: true
searchBody: true

customLabels:
- text: "- [x] Feature"
label: "Type: Feature"
- text: "- [x] Bug"
label: "Type: Bug"
- text: "- [x] Security"
label: "Type: Security"
- text: "- [x] Documentation"
label: "Type: Documentation"
- text: "- [x] Refactoring*"
label: "Type: Refactoring"
- text: "- [x] Testing"
label: "Type: Testing"
- text: "- [x] Maintenance"
label: "Type: Maintenance"
- text: "- [x] CI"
label: "Type: CI"
- text: "- [x] Dependencies"
label: "Type: Dependencies"
- text: "chore(deps): "
label: "Type: Dependencies"
- text: "- [x] Meta"
label: "Type: Meta"
16 changes: 0 additions & 16 deletions .github/workflows/pr-labeler.yml

This file was deleted.

0 comments on commit caadc15

Please sign in to comment.