Skip to content

Commit cf71db5

Browse files
committed
chore(ci): cleanup conditionals on_pr_open
1 parent 7a1382c commit cf71db5

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

.github/scripts/label_related_issue.js

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ module.exports = async ({github, context, core}) => {
44
const releaseLabel = process.env.RELEASE_LABEL;
55
const maintainersTeam = process.env.MAINTAINERS_TEAM;
66

7-
console.log(prBody);
8-
97
const RELATED_ISSUE_REGEX = /Issue number:[^\d\r\n]+(?<issue>\d+)/;
108

119
const isMatch = RELATED_ISSUE_REGEX.exec(prBody);

.github/workflows/on_merged_pr.yml

+1-11
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,16 @@ jobs:
2222
needs: get_pr_details
2323
if: >
2424
${{ needs.get_pr_details.outputs.prAuthor != 'dependabot[bot]' &&
25-
needs.get_pr_details.outputs.prAction == 'opened'
25+
needs.get_pr_details.outputs.prIsMerged == true
2626
}}
27-
# if: >
28-
# ${{ needs.get_pr_details.outputs.prAuthor != 'dependabot[bot]' &&
29-
# needs.get_pr_details.outputs.prAction == 'opened' &&
30-
# needs.get_pr_details.outputs.prIsMerged == true
31-
# }}
32-
# if: ${{ needs.get_pr_details.outputs.prIsMerged == true }}
3327
runs-on: ubuntu-latest
3428
steps:
3529
- uses: actions/checkout@v3
3630
- name: "Label PR related issue for release"
3731
uses: actions/github-script@v6
3832
env:
3933
PR_NUMBER: ${{ needs.get_pr_details.outputs.prNumber }}
40-
PR_TITLE: ${{ needs.get_pr_details.outputs.prTitle }}
4134
PR_BODY: ${{ needs.get_pr_details.outputs.prBody }}
42-
PR_AUTHOR: ${{ needs.get_pr_details.outputs.prAuthor }}
43-
PR_ACTION: ${{ needs.get_pr_details.outputs.prAction }}
44-
PR_MERGE: ${{ needs.get_pr_details.outputs.prIsMerged }}
4535
with:
4636
github-token: ${{ secrets.GITHUB_TOKEN }}
4737
script: |

0 commit comments

Comments
 (0)