Skip to content

Commit 9f0caaa

Browse files
committed
CI: Add checkout options for Gerrit changes
* Uses the correct checkout options for Gerrit changes in the GitHub Actions workflow. * Updates some yamllint issues * Disables requirement for issues to be in the commit message Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org> Change-Id: I7de53a0cdeffe1e5437cacf4a366abc91de5ae3d
1 parent fd899b3 commit 9f0caaa

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

.github/workflows/gerrit-verify.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,19 @@ jobs:
9898
GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
9999
steps:
100100
# Harden the runner used by this workflow
101-
- uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
101+
# yamllint disable-line rule:line-length
102+
- uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
102103
with:
103104
egress-policy: 'audit'
104105

106+
# yamllint disable-line rule:line-length
105107
- uses: lfit/checkout-gerrit-change-action@54d751e8bd167bc91f7d665dabe33fae87aaaa63 # v0.9
108+
with:
109+
gerrit-refspec: ${{ inputs.GERRIT_REFSPEC }}
110+
gerrit-project: ${{ inputs.GERRIT_PROJECT }}
111+
gerrit-url: ${{ vars.GERRIT_URL }}
112+
delay: "0s"
113+
fetch-depth: 0
106114

107115
- name: 'Build Python project'
108116
id: python-build
@@ -124,11 +132,19 @@ jobs:
124132
timeout-minutes: 12
125133
steps:
126134
# Harden the runner used by this workflow
127-
- uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
135+
# yamllint disable-line rule:line-length
136+
- uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
128137
with:
129138
egress-policy: audit
130139

140+
# yamllint disable-line rule:line-length
131141
- uses: lfit/checkout-gerrit-change-action@54d751e8bd167bc91f7d665dabe33fae87aaaa63 # v0.9
142+
with:
143+
gerrit-refspec: ${{ inputs.GERRIT_REFSPEC }}
144+
gerrit-project: ${{ inputs.GERRIT_PROJECT }}
145+
gerrit-url: ${{ vars.GERRIT_URL }}
146+
delay: "0s"
147+
fetch-depth: 0
132148

133149
- name: "Python tests [pytest] ${{ matrix.python-version }}"
134150
# yamllint disable-line rule:line-length

.gitlint

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,5 +96,5 @@ contrib=contrib-title-conventional-commits,contrib-body-requires-signed-off-by
9696
types=Fix,Feat,Chore,Docs,Style,Refactor,Perf,Test,Revert,CI,Build
9797

9898
# Require RELENG issues in commit messages
99-
[body-match-regex]
100-
regex=(.*)Issue:\s+([Ff][Ii][Xx][Ee][Ss]\s+)?[a-zA-Z0-9-]+\/[a-zA-Z0-9_-]+#\d+(.*)
99+
#[body-match-regex]
100+
#regex=(.*)Issue:\s+([Ff][Ii][Xx][Ee][Ss]\s+)?[a-zA-Z0-9-]+\/[a-zA-Z0-9_-]+#\d+(.*)

0 commit comments

Comments
 (0)