Skip to content

Commit

Permalink
pr check
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
  • Loading branch information
Dominik Rosiek committed Jan 3, 2024
1 parent 72c3490 commit f4f7310
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 11 deletions.
17 changes: 17 additions & 0 deletions .github/pr-title-checker-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"LABEL": {
"name": "title needs formatting",
"color": "EEEEEE"
},
"CHECKS": {
"prefixes": ["fix: ", "feat: "],
"regexp": "docs\\(v[0-9]\\): ",
"regexpFlags": "i",
"ignoreLabels" : ["dont-check-PRs-with-this-label", "meta"]
},
"MESSAGES": {
"success": "All OK",
"failure": "Failing CI test",
"notice": ""
}
}
10 changes: 9 additions & 1 deletion .github/workflows/check_pr_labels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: PRs labels check

on:
pull_request_target:
types: [opened, reopened, ready_for_review, labeled, unlabeled, synchronize]
types: [opened, edited, reopened, ready_for_review, labeled, unlabeled, synchronize]

jobs:
label:
Expand All @@ -13,3 +13,11 @@ jobs:
github-token: "${{ secrets.GITHUB_TOKEN }}"
invalid-labels: "do-not-merge/hold"
pull-request-number: "${{ github.event.pull_request.number }}"

pr-name:
runs-on: ubuntu-latest
steps:
- uses: thehanimo/pr-title-checker@v1.4.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
pass_on_octokit_error: false
10 changes: 0 additions & 10 deletions .github/workflows/pull_requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,6 @@ jobs:
.*
tests/integration/kind_images.json
pr-name:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: dylanvann/check-pull-request-title@v1
with:
# Match pull request titles in the form of conventional commit.
# rel: https://gist.github.com/marcojahn/482410b728c31b221b70ea6d2c433f0c
pattern: '^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\([\w\-\.]+\))?(!)?: ([\w ])+([\s\S]*)'

markdownlint:
runs-on: ubuntu-22.04
needs: [docs-changed]
Expand Down

0 comments on commit f4f7310

Please sign in to comment.