Skip to content

Solves Issue 7975 #8025

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: dev-2.0
Choose a base branch
from
Open

Solves Issue 7975 #8025

wants to merge 11 commits into from

Conversation

NalinDalal
Copy link

Resolves #7989

Changes:
Added a yaml file which listens for maintainers comments to close and merge pul request.

Screenshots of the change:
471219101-c65956ce-6281-4e45-9730-a11b24e1bd3b
471219111-f51df78a-ad11-44a1-909a-431ee173d2b7

reference
reference-website-repo

I was cleaning up my local git branch and accidentally deleted the branch I was using for testing, so the original pull request also got deleted.
Hence again opening the pull request.

PR Checklist

with:
script: |
const prBody = context.payload.pull_request.body;
const issueRegex = /(Fixes|Resolves|Closes)\s+#(\d+)/gi;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: consider making more flexible? Eg /(close[sd]?|fix(e[sd])?|resolve[sd]?)[:\s]*#(\d+)/gi or something like that to more match the level of flexibility that happens on the main branch. While this is a bit more complex, I think matching behavior between these branches might be worth doing, what do you thi nk @perminder-17 ?


jobs:
close_issues:
if: github.event.pull_request.merged == true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants