Skip to content

Commit cce932c

Browse files
committed
chore(ci): debug related labelling regex match
1 parent 7b6b6c0 commit cce932c

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/scripts/label_related_issue.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = async ({github, context, core}) => {
33
const prNumber = process.env.PR_NUMBER;
44
const releaseLabel = process.env.RELEASE_LABEL;
55
const maintainersTeam = process.env.MAINTAINERS_TEAM;
6-
6+
core.info(prBody);
77
const RELATED_ISSUE_REGEX = /Issue number:[^\d\r\n]+(?<issue>\d+)/;
88

99
const isMatch = RELATED_ISSUE_REGEX.exec(prBody);
@@ -18,6 +18,8 @@ module.exports = async ({github, context, core}) => {
1818
}
1919

2020
const { groups: {relatedIssueNumber} } = isMatch
21+
core.setInfo(isMatch);
22+
console.dir(isMatch, {depth: null});
2123

2224
core.info(`Auto-labeling related issue ${relatedIssueNumber} for release`)
2325
return await github.rest.issues.addLabels({

.github/workflows/on_merged_pr.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
token: ${{ secrets.GITHUB_TOKEN }}
2121
release_label_on_merge:
2222
needs: get_pr_details
23-
if: >
24-
${{ needs.get_pr_details.outputs.prAuthor != 'dependabot[bot]' &&
25-
needs.get_pr_details.outputs.prIsMerged == true
26-
}}
23+
# Maintenance: Conditional isn't working as expected
24+
# if: |
25+
# needs.get_pr_details.outputs.prAuthor != 'dependabot[bot]'
26+
# && needs.get_pr_details.outputs.prIsMerged == true
2727
runs-on: ubuntu-latest
2828
steps:
2929
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)