-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add option to include/exclude body as regex target (#70)
* feat: add option to include/exclude body as regex target * build: create build
- Loading branch information
Showing
4 changed files
with
37 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ on: | |
permissions: | ||
issues: write | ||
contents: read | ||
jobs: | ||
triage: | ||
runs-on: ubuntu-latest | ||
|
@@ -79,7 +79,7 @@ on: | |
permissions: | ||
issues: write | ||
contents: read | ||
jobs: | ||
triage: | ||
runs-on: ubuntu-latest | ||
|
@@ -125,7 +125,7 @@ on: | |
permissions: | ||
issues: write | ||
contents: read | ||
jobs: | ||
triage: | ||
runs-on: ubuntu-latest | ||
|
@@ -138,6 +138,31 @@ jobs: | |
repo-token: ${{ github.token }} | ||
``` | ||
|
||
### Example of *only* including the issue title, but not the body in the regex target | ||
|
||
Set `include-title: 1` and `include-body: 0`. | ||
|
||
```yml | ||
name: "Issue Labeler" | ||
on: | ||
issues: | ||
types: [opened, edited] | ||
permissions: | ||
issues: write | ||
contents: read | ||
jobs: | ||
triage: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: github/[email protected] #May not be the latest version | ||
with: | ||
configuration-path: .github/labeler.yml | ||
include-title: 1 | ||
include-body: 0 | ||
``` | ||
|
||
### Syncing Labels | ||
|
||
By default, labels that no longer match are not removed from the issue. To enable this functionality, explicity | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters