Skip to content

Commit 1ef7dd0

Browse files
Add .github/workflows/check_pr_title.yml
1 parent ad72561 commit 1ef7dd0

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/check_pr_title.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# DON'T MODIFY THIS WORKFLOW FILE DIRECTLY
2+
#
3+
# This workflow
4+
# - checks if the PR title is compliant
5+
# (cf. https://doctolib.atlassian.net/wiki/spaces/EE/pages/1793131314/How+to+have+a+good+PR+title)
6+
# - is force implemented in specific repositories (tier0 repository) of the organization with Terraform
7+
# - is mandatory to merge in main branch of your repo because of
8+
# https://github.com/doctolib/kube/blob/master/envs/tooling/terraform/05_github/main_rulesets.tf#L1
9+
#
10+
# For more details, read https://doctolib.atlassian.net/wiki/spaces/EE/pages/1793590015/Traceability+and+risk+assessment+for+production+changes
11+
12+
name: '[Org workflow] Check PR title'
13+
run-name: '${{ github.event.pull_request.title }}'
14+
15+
on:
16+
pull_request:
17+
branches: [master, main]
18+
types: [opened, edited, reopened, synchronize, ready_for_review]
19+
merge_group:
20+
21+
permissions:
22+
pull-requests: write
23+
statuses: write
24+
repository-projects: read
25+
actions: read
26+
27+
jobs:
28+
check_pr_title:
29+
name: Check PR title
30+
if: '!github.event.pull_request.draft'
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Check PR title
34+
uses: doctolib/actions/check-pr-title@main

0 commit comments

Comments
 (0)