Skip to content

Commit

Permalink
ci: remove usage of semantic pr app for action (aws#3515)
Browse files Browse the repository at this point in the history
Removes usage of the [Semantic Pull Requests App](https://github.com/zeke/semantic-pull-requests)
in favor of a [github
action](https://github.com/amannn/action-semantic-pull-request) since
the app hasn't been functioning for some time.
  • Loading branch information
MrArnoldPalmer authored May 4, 2022
1 parent ccd5a5a commit f1a56e3
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 20 deletions.
16 changes: 0 additions & 16 deletions .github/semantic.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/pull-request-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: pull-request-lint
on:
pull_request_target:
types:
- labeled
- opened
- synchronize
- reopened
- ready_for_review
- edited
jobs:
validate:
name: Validate PR Title
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: amannn/action-semantic-pull-request@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |-
feat
fix
chore
docs
style
refactor
perf
test
build
ci
revert
requireScope: false
8 changes: 4 additions & 4 deletions .mergify/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pull_request_rules:
- '#approved-reviews-by>=1'
- '#review-requested=0'
- '#changes-requested-reviews-by=0'
- status-success=Semantic Pull Request
- status-success=Validate PR Title
# Docker image validation
- status-success~=^jsii/superchain
# One test for each OS
Expand Down Expand Up @@ -102,7 +102,7 @@ pull_request_rules:
- '#approved-reviews-by>=1'
- '#review-requested=0'
- '#changes-requested-reviews-by=0'
- status-success=Semantic Pull Request
- status-success=Validate PR Title
# Docker image validation
- status-success~=^jsii/superchain
# One test for each OS
Expand Down Expand Up @@ -153,7 +153,7 @@ pull_request_rules:
- '#approved-reviews-by>=1'
- '#review-requested=0'
- '#changes-requested-reviews-by=0'
- status-success=Semantic Pull Request
- status-success=Validate PR Title
# Docker image validation
- status-success~=^jsii/superchain
# One test for each OS
Expand Down Expand Up @@ -210,4 +210,4 @@ pull_request_rules:
[Conventional Commits]: https://www.conventionalcommits.org
conditions:
- status-failure=Semantic Pull Request
- status-failure=Validate PR Title

0 comments on commit f1a56e3

Please sign in to comment.