Skip to content

Commit 74356dc

Browse files
committed
fix(ci): label pr based on title workflow
1 parent 923becf commit 74356dc

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/scripts/label_pr_based_on_title.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module.exports = async ({github, context, core}) => {
2-
console.dir(process.env,{depth:null});
3-
42
const pr_number = process.env.PR_NUMBER
53
const pr_title = process.env.PR_TITLE
64

5+
console.log(pr_title)
6+
77
const FEAT_REGEX = /feat(\((.+)\))?(\:.+)/
88
const BUG_REGEX = /(fix|bug)(\((.+)\))?(\:.+)/
99
const DOCS_REGEX = /(docs|doc)(\((.+)\))?(\:.+)/

.github/workflows/label_pr_on_title.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ jobs:
2525
- name: "Label PR based on title"
2626
uses: actions/github-script@v6
2727
env:
28-
PR_BODY: ${{ needs.get_pr_details.outputs.prBody }}
2928
PR_NUMBER: ${{ needs.get_pr_details.outputs.prNumber }}
3029
PR_TITLE: ${{ needs.get_pr_details.outputs.prTitle }}
3130
with:

0 commit comments

Comments
 (0)