Skip to content

Commit 65e875b

Browse files
committed
chore(ci): try new workflow
1 parent d2b81b8 commit 65e875b

File tree

6 files changed

+11
-13
lines changed

6 files changed

+11
-13
lines changed

.github/scripts/label_related_issue.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
module.exports = async ({github, context, core}) => {
2-
core.info(process.env);
3-
const fs = require('fs');
4-
5-
const pr = JSON.parse(fs.readFileSync('./pr.txt', 'utf-8').trim());
6-
const prBody = pr.body;
7-
const prNumber = pr.number;
2+
const prBody = process.env.PR_BODY;
3+
const prNumber = process.env.PR_NUMBER;
84
const releaseLabel = process.env.RELEASE_LABEL;
95
const maintainersTeam = process.env.MAINTAINERS_TEAM
106

11-
return "Temporarily..."
12-
137
const RELATED_ISSUE_REGEX = /Issue number:[^\d\r\n]+(?<issue>\d+)/;
148

159
const isMatch = RELATED_ISSUE_REGEX.exec(prBody);

.github/workflows/label_pr_on_title.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Label PR based on title
22

33
on:
44
workflow_run:
5-
workflows: ["Record PR number"]
5+
workflows: ["Record PR details"]
66
types:
77
- completed
88

.github/workflows/on_merged_pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Maintenance:
1+
name: On PR merge
22

33
on:
44
workflow_run:
5-
workflows: ["Record PR number"]
5+
workflows: ["Record PR details"]
66
types:
77
- completed
88

.github/workflows/on_opened_pr.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
name: On PR opened
2+
13
on:
24
workflow_run:
3-
workflows: ["Record PR number"]
5+
workflows: ["Record PR details"]
46
types:
57
- completed
68

.github/workflows/record_pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Record PR number
1+
name: Record PR details
22

33
on:
44
pull_request:

.github/workflows/reusable_export_pr_details.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
name: Export previously recorded PR
2+
13
on:
24
workflow_call:
35
inputs:

0 commit comments

Comments
 (0)