Skip to content

Commit

Permalink
tune mergify's rules
Browse files Browse the repository at this point in the history
resolve the conflict of mergify's bot

Signed-off-by: Sheldon <[email protected]>
  • Loading branch information
locustbaby committed Oct 11, 2023
1 parent 097a219 commit 7648083
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 49 deletions.
33 changes: 4 additions & 29 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,9 @@
pull_request_rules:
- name: add ci-passed when CI 'Broken Links' passed
- name: add ci-passed when CI passed
conditions:
- or:
- check-success=lint-test
- check-success=Broken Links
- files=.github/mergify.yml
- files=.github/workflow/release.yml
- files=.github/workflow/checks.yml
- check-success=lint-test
- check-success=Broken Links
actions:
label:
add:
- ci-passed

- name: remove ci-passed when CI 'lint-test' not success
conditions:
- check-failure=lint-test
- or:
- files~=^charts/(.*\.yaml|.*\.helmignore|.*\.tgz|.*\.tpl)
- files=.github/workflows/lint-test.yml
- files=ct.yaml
actions:
label:
remove:
- ci-passed

- name: remove ci-passed when CI 'Broken Links' not success
conditions:
- check-failure=Broken Links
- files~=.*\.md$
actions:
label:
remove:
toggle:
- ci-passed
6 changes: 1 addition & 5 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@ on:
push:
branches:
- master
paths:
- '**.md'
pull_request:
paths:
- '**.md'
pull_request: {}

jobs:
markdown-link-check:
Expand Down
18 changes: 3 additions & 15 deletions .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,9 @@ name: Helm
# This workflow is triggered on pushes or pull request to the repository.
on:
push:
# file paths to consider in the event. Optional; defaults to all.
paths:
- 'charts/**'
- 'ct.yaml'
- '.github/workflows/lint-test.yml'
- '!**.md'
- '!**.txt'
pull_request:
# file paths to consider in the event. Optional; defaults to all.
paths:
- 'charts/**'
- 'ct.yaml'
- '.github/workflows/lint-test.yml'
- '!**.md'
- '!**.txt'
branches:
- master
pull_request: {}

jobs:
lint-test:
Expand Down

0 comments on commit 7648083

Please sign in to comment.