Skip to content

Commit

Permalink
chore(docs): update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxingloh committed Mar 7, 2023
1 parent f904e5d commit f7af522
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ status check based on the labels.

```yml
on:
pull_request_target: # for OSS with public contributions (forked PR)
pull_request_target:
# for OSS with public contributions (forked PR)

pull_request:
# Useful for triaging code review, and generate compliance status check.
# Semantic release? Done.
Expand All @@ -55,19 +57,19 @@ on:

permissions:
# Setting up permissions in the workflow to limit the scope of what it can do. Optional!
contents: read
issues: write
pull-requests: write
statuses: write
checks: write
contents: read # the config file
issues: write # for labeling issues (on: issues)
pull-requests: write # for labeling pull requests (on: pull_request_target or on: pull_request)
statuses: write # to generate status
checks: write # to generate status

jobs:
labeler:
name: Labeler
runs-on: ubuntu-latest
steps:
# follows semantic versioning. Lock to different version: v1, v1.5, v1.5.0 or use a commit hash.
- uses: fuxingloh/multi-labeler@v1
- uses: fuxingloh/multi-labeler@v2 # v2
with:
github-token: ${{secrets.GITHUB_TOKEN}} # optional, default to '${{ github.token }}'
config-path: .github/labeler.yml # optional, default to '.github/labeler.yml'
Expand Down

0 comments on commit f7af522

Please sign in to comment.