forked from mermaid-js/mermaid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
87 additions
and
703 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 |
---|---|---|
@@ -1,22 +1,4 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/release-drafter/release-drafter/master/schema.json | ||
autolabeler: | ||
- label: 'Type: Bug / Error' | ||
branch: | ||
- '/bug\/.+/' | ||
- '/fix\/.+/' | ||
- label: 'Type: Enhancement' | ||
branch: | ||
- '/feature\/.+/' | ||
- '/feat\/.+/' | ||
- label: 'Type: Other' | ||
branch: | ||
- '/other\/.+/' | ||
- '/chore\/.+/' | ||
- '/test\/.+/' | ||
- '/refactor\/.+/' | ||
- label: 'Area: Documentation' | ||
branch: | ||
- '/docs\/.+/' | ||
|
||
template: | | ||
This field is unused, as we only use this config file for labeling PRs. | ||
'Type: Bug / Error': ['bug/*', fix/*] | ||
'Type: Enhancement': ['feature/*', 'feat/*'] | ||
'Type: Other': ['other/*', 'chore/*', 'test/*', 'refactor/*'] | ||
'Area: Documentation': ['docs/*'] |
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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Validate PR Labeler Configuration | ||
on: | ||
push: | ||
paths: | ||
- .github/workflows/pr-labeler-config-validator.yml | ||
- .github/workflows/pr-labeler.yml | ||
- .github/pr-labeler.yml | ||
pull_request: | ||
paths: | ||
- .github/workflows/pr-labeler-config-validator.yml | ||
- .github/workflows/pr-labeler.yml | ||
- .github/pr-labeler.yml | ||
|
||
jobs: | ||
pr-labeler: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
- name: Validate Configuration | ||
uses: Yash-Singh1/pr-labeler-config-validator@releases/v0.0.3 | ||
with: | ||
configuration-path: .github/pr-labeler.yml |
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 |
---|---|---|
@@ -1,31 +1,13 @@ | ||
name: Apply labels to PR | ||
on: | ||
pull_request_target: | ||
# required for pr-labeler to support PRs from forks | ||
# ===================== ⛔ ☢️ 🚫 ⚠️ Warning ⚠️ 🚫 ☢️ ⛔ ======================= | ||
# Be very careful what you put in this GitHub Action workflow file to avoid | ||
# malicious PRs from getting access to the Mermaid-js repo. | ||
# | ||
# Please read the following first before reviewing/merging: | ||
# - https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target | ||
# - https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ | ||
types: [opened, reopened, synchronize] | ||
|
||
permissions: | ||
contents: read | ||
types: [opened] | ||
|
||
jobs: | ||
pr-labeler: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read # read permission is required to read config file | ||
pull-requests: write # write permission is required to label PRs | ||
steps: | ||
- name: Label PR | ||
uses: release-drafter/release-drafter@v5 | ||
with: | ||
config-name: pr-labeler.yml | ||
disable-autolabeler: false | ||
disable-releaser: true | ||
uses: TimonVS/pr-labeler-action@v4 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
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
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
Oops, something went wrong.