Skip to content

Commit 74b9ed4

Browse files
[tool] chore(tooling): improve and sync gh actions
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent f345863 commit 74b9ed4

8 files changed

Lines changed: 66 additions & 177 deletions

.github/codeql-config.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,5 @@ paths:
44
- openaev-front/src
55
- openaev-framework/src
66
- openaev-model/src
7-
- openaev-injectors/openaev-http/src
8-
- openaev-injectors/openaev-lade/src
9-
- openaev-injectors/openaev-mastodon/src
10-
- openaev-injectors/openaev-ovh/src
11-
- openaev-injectors/openaev-ssh/src
127
paths-ignore:
138
- openaev-front/src/static

.github/workflows/auto-close-add-solved.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Auto Close and Solve Issues
22
on:
33
pull_request:
44
branches:
5-
- release/*
5+
- release/current
66
- master
77
types:
88
- closed
@@ -28,20 +28,20 @@ jobs:
2828
script: |
2929
const prTitle = context.payload.pull_request.title;
3030
core.info(`PR Title: ${prTitle}`);
31-
31+
3232
// Match only issue-containing groups at the end
3333
const endPattern = /(?:\((?:[^)]*#\d+[^)]*)\)|#\d+)(?:\s+(?:\((?:[^)]*#\d+[^)]*)\)|#\d+))*\s*$/;
3434
const endMatch = prTitle.match(endPattern);
35-
35+
3636
let issueNumbers = [];
37-
37+
3838
if (endMatch) {
3939
// Extract all #number patterns from the matched section
4040
const allMatches = endMatch[0].matchAll(/#(\d+)/g);
4141
issueNumbers = [...allMatches]
4242
.map(match => match[1])
4343
.filter((value, index, self) => self.indexOf(value) === index); // Remove duplicates
44-
44+
4545
if (issueNumbers.length > 0) {
4646
core.info(`Found ${issueNumbers.length} issue number(s): ${issueNumbers.join(', ')}`);
4747
core.setOutput('issue_numbers', issueNumbers.join(' '));
@@ -70,17 +70,17 @@ jobs:
7070
const issueNumbers = "${{ needs.extract_issue_number.outputs.issue_numbers }}"
7171
.split(' ')
7272
.filter(num => num.trim() !== '');
73-
73+
7474
core.info(`Processing ${issueNumbers.length} issue(s): ${issueNumbers.join(', ')}`);
7575
core.startGroup('Processing Issues');
76-
76+
7777
let successCount = 0;
7878
let failureCount = 0;
79-
79+
8080
for (const issueNumber of issueNumbers) {
8181
try {
8282
core.startGroup(`Issue #${issueNumber}`);
83-
83+
8484
// Add "solved" label
8585
await github.rest.issues.addLabels({
8686
owner: context.repo.owner,
@@ -89,7 +89,7 @@ jobs:
8989
labels: ["solved"]
9090
});
9191
core.info(`✓ Added "solved" label`);
92-
92+
9393
// Close the issue
9494
await github.rest.issues.update({
9595
owner: context.repo.owner,
@@ -98,21 +98,21 @@ jobs:
9898
state: "closed"
9999
});
100100
core.info(`✓ Closed issue`);
101-
101+
102102
successCount++;
103103
core.endGroup();
104-
104+
105105
} catch (error) {
106106
core.error(`✗ Failed to process issue #${issueNumber}: ${error.message}`);
107107
failureCount++;
108108
core.endGroup();
109109
}
110110
}
111-
111+
112112
core.endGroup();
113-
113+
114114
// Summary
115115
core.notice(`Successfully processed ${successCount} issue(s)`);
116116
if (failureCount > 0) {
117117
core.warning(`Failed to process ${failureCount} issue(s)`);
118-
}
118+
}

.github/workflows/auto-set-label.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/check-verified-commit.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: "[OpenAEV] Auto Label"
2+
on:
3+
pull_request_target:
4+
branches: [master, release/current]
5+
types: [opened, reopened]
6+
permissions:
7+
contents: read
8+
pull-requests: write
9+
jobs:
10+
auto-label:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: "Auto Label"
14+
uses: FiligranHQ/filigran-ci-tools/actions/auto-label@main
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: "[OpenAEV] Check Signed Commits in PR"
2+
on:
3+
pull_request_target:
4+
branches: [master, release/current]
5+
permissions:
6+
contents: read
7+
pull-requests: write
8+
jobs:
9+
check-signed-commits:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check signed commits in PR
13+
uses: FiligranHQ/filigran-ci-tools/actions/check-signed-commit@main
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: "[OpenAEV] Validate PR title Worker"
2+
on:
3+
pull_request:
4+
branches: [master, release/current]
5+
types: [opened, edited, reopened, ready_for_review, synchronize]
6+
permissions:
7+
contents: read
8+
jobs:
9+
validate-pr-title:
10+
permissions:
11+
contents: read
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: "Generate a token"
15+
id: generate-token
16+
if: github.event.pull_request.head.repo.full_name == github.repository
17+
uses: actions/create-github-app-token@v2
18+
with:
19+
app-id: ${{ secrets.OPENAEV_PR_CHECKS_APP_ID }}
20+
private-key: ${{ secrets.OPENAEV_PR_CHECKS_PRIVATE_KEY }}
21+
- name: "Validate PR title and create check"
22+
uses: FiligranHQ/filigran-ci-tools/actions/pr-title-check@main
23+
with:
24+
token: ${{ steps.generate-token.outputs.token }}

.github/workflows/pr-title-check-worker.yml

Lines changed: 0 additions & 118 deletions
This file was deleted.

0 commit comments

Comments
 (0)