Skip to content

Commit 623144e

Browse files
authored
[CI] Add label and check-commit automation
1 parent 8f5bc8d commit 623144e

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!--
2+
Thank you very much for your pull request to the OpenCTI project! We as a community
3+
driven project depend on support and contributions like this!
4+
5+
Thus already a BIG THANK YOU upfront to you for choosing to help with your PR.
6+
-->
7+
8+
### Proposed changes
9+
10+
*
11+
12+
### Related issues
13+
14+
*
15+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Assign label Filigran team on PR from an organization
2+
on: pull_request
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
permissions:
7+
contents: read
8+
pull-requests: write
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Setting labels
12+
uses: FiligranHQ/auto-label@1.0.0
13+
with:
14+
labels_by_organization: "{\"FiligranHQ\":[\"filigran team\"]}"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Check signed commits in PR
2+
on: [pull_request,pull_request_target]
3+
jobs:
4+
check-signed-commits:
5+
name: Check signed commits in PR
6+
runs-on: ubuntu-latest
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
steps:
11+
- name: Information about how to sign commits see https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits
12+
# "with comment" below does not work for forks.
13+
run: |
14+
echo "If you need to sign commits, Please see https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits"
15+
- name: Check signed commits in PR on fail see above information.
16+
uses: 1Password/check-signed-commits-action@v1
17+
with:
18+
comment: |
19+
Thank you for your contribution, but we need you to sign your commits. Please see https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits

0 commit comments

Comments
 (0)