Skip to content

Commit

Permalink
Update pullReqMerge.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shuvadeepmondal authored Jan 14, 2025
1 parent fbd5a20 commit b5c349a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/pullReqMerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,15 @@ jobs:
if: env.merged == 'true'
uses: actions/github-script@v4
with:
github-token: ${{ secrets.MY_TOKEN }}
github-token: ${{ secrets.MY_TOKEN }} # Ensure correct secret name here
script: |
const { owner, repo } = context.repo;
const prNumber = context.payload.pull_request.number;
const prBody = context.payload.pull_request.body || '';
const linkedIssues = prBody.match(/#\d+/g); // Find issue numbers in the PR body (e.g., "closes #123")
console.log(`Processing PR #${prNumber}`);
console.log(`PR Body: ${prBody}`);
console.log(`Linked Issues Found: ${linkedIssues}`);
if (linkedIssues) {
for (const issueTag of linkedIssues) {
const issueNumber = parseInt(issueTag.replace('#', ''), 10);
Expand Down

0 comments on commit b5c349a

Please sign in to comment.