Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build-develop-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
pull_request:
branches:
- develop
- release/**
types: [ opened, synchronize ]

permissions:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pr-author-assigner.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
name: "Auto Author Assign"
on:
pull_request_target:
pull_request:
types: [ opened, reopened ]

permissions:
pull-requests: write

jobs:
assign-author:
# Fork PRs get a read-only token, so the assignment would fail.
if: github.event.pull_request.head.repo.full_name == github.repository
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/semantic-commit-lint.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: "Semantic Commit Linting of PR titles"

on:
pull_request_target:
pull_request:
types: [ opened, edited, synchronize ]

permissions: {}
Expand Down Expand Up @@ -51,15 +51,16 @@ jobs:
# merge commit, and it's easy to commit this by mistake. Enable this option
# to also validate the commit message for one commit PRs.
validateSingleCommit: true
# Fork PRs get a read-only token, so they skip the label steps.
- name: Add Failure Label
if: failure()
if: failure() && github.event.pull_request.head.repo.full_name == github.repository
env:
REPO: ${{ github.repository }}
run: |
gh api repos/{owner}/{repo}/labels -f name="${CUSTOM_PR_LABEL}" -f color="FF0000" || true
gh pr edit "${HEAD}" --repo "${REPO}" --add-label "${CUSTOM_PR_LABEL}"
- name: Remove Failure Label
if: success()
if: success() && github.event.pull_request.head.repo.full_name == github.repository
env:
REPO: ${{ github.repository }}
run: |
Expand Down
Loading