Skip to content

Add workflow to automatically close pull requests from organizations forks#2942

Open
john0isaac wants to merge 14 commits intopallets:stablefrom
john0isaac:automate-pr-closing-for-orgs
Open

Add workflow to automatically close pull requests from organizations forks#2942
john0isaac wants to merge 14 commits intopallets:stablefrom
john0isaac:automate-pr-closing-for-orgs

Conversation

@john0isaac
Copy link
Copy Markdown
Contributor

@john0isaac john0isaac commented May 24, 2025

This pull request introduces a new GitHub Actions workflow to automatically close pull requests originating from organizations forks. The workflow ensures that such pull requests, commented on, and closed.

New GitHub Actions Workflow:

  • .github/workflows/close-org-prs.yml: Added a workflow named "Close PRs from Orgs" that triggers on pull_request_target events (opened, or reopened). It checks if the pull request originates from an organization forks and, if so, performs the following actions:
    • Closes the pull request.
    • Leaves a comment explaining the closure.

Comment thread .github/workflows/close-org-prs.yml Outdated
Comment thread .github/workflows/close-org-prs.yml Outdated
Comment thread .github/workflows/close-org-prs.yml Outdated
@john0isaac john0isaac force-pushed the automate-pr-closing-for-orgs branch from e48aa8d to 3b735de Compare May 25, 2025 00:31
@john0isaac john0isaac requested a review from ThiefMaster May 25, 2025 00:34
Comment thread .github/workflows/close-org-prs.yml Outdated
Comment thread .github/workflows/close-org-prs.yml Outdated
Comment thread .github/workflows/close-org-prs.yml
Comment thread .github/workflows/close-org-prs.yml Outdated
Comment thread .github/workflows/close-org-prs.yml
Comment thread .github/workflows/close-org-prs.yml Outdated
@john0isaac john0isaac requested a review from davidism May 25, 2025 14:51
@john0isaac
Copy link
Copy Markdown
Contributor Author

all comments were addressed I just removed synchronize because it was making it comment twice.

Comment thread .github/workflows/close-org-prs.yml Outdated
@Rowlando13 Rowlando13 deleted the branch pallets:stable July 16, 2025 06:23
@Rowlando13 Rowlando13 closed this Jul 16, 2025
@Rowlando13 Rowlando13 reopened this Jul 16, 2025
@Rowlando13 Rowlando13 deleted the branch pallets:stable July 22, 2025 09:42
@Rowlando13 Rowlando13 closed this Jul 22, 2025
@davidism davidism reopened this Jul 22, 2025
@kdeldycke kdeldycke added the github_actions Pull requests that update GitHub Actions code label Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants