Skip to content

Commit

Permalink
Combine labeler and title check to same workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
errose28 committed Feb 13, 2024
1 parent f7c51f0 commit eff2030
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 43 deletions.
2 changes: 1 addition & 1 deletion .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Configuration for .github/workflows/label-pr.yml
# Configuration for the labeler GitHub Action.
# This workflow and its configuration can be deleted once the website's feature branch is merged.
website-v2:
- base-branch: HDDS-9225-website-v2
29 changes: 0 additions & 29 deletions .github/workflows/label-pr.yml

This file was deleted.

35 changes: 22 additions & 13 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,31 @@
name: pull request

on:
pull_request:
pull_request_target:
types:
- reopened
- opened
- edited
- synchronize
- reopened
- opened
- edited
- synchronize
- pull_request_target

jobs:
title:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Check pull request title
env:
TITLE: ${{ github.event.pull_request.title }}
run:
.github/scripts/pr_title_check.sh "${TITLE}"

- name: Checkout project
uses: actions/checkout@v4
- name: Check pull request title
env:
TITLE: ${{ github.event.pull_request.title }}
run:
.github/scripts/pr_title_check.sh "${TITLE}"
# This job reads its configuration from the .github/labeler.yml file.
# This job and its configuration can be deleted once the website's feature branch is merged.
labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5

0 comments on commit eff2030

Please sign in to comment.