Skip to content

Decline PR GitHub Action workflow - #18

Open
Isoscelestial wants to merge 2 commits into
developfrom
feat/decline-pr-workflow
Open

Isoscelestial wants to merge 2 commits into
developfrom
feat/decline-pr-workflow

Conversation

@Isoscelestial

Copy link
Copy Markdown
Member

Description

Resolves #15

Creates a GitHub Action workflow where adding the "Status: Declined" label will automatically:

  • Close the PR and delete the branch
  • Edit the PR's comment to remove closing keywords

Testing

Important

PLEASE TEST IN #16, NOT IN THIS PR

The workflow in this PR (17) will automatically delete the branch and thus the PR can't be re-opened. The workflow in #16 is identical except for the fact it doesn't delete the branch (for testing purposes, so you can reopen that PR)

To test, just add the "Status: Declined" label to #16. Wait like 10 seconds, and then GitHub will update with the changes.

AI Disclosure

Used to inform me what GitHub actions I should use and how I should write the script to remove closing keywords

Checklist

  • Create this PR
  • Perform final self-review

@vercel

vercel Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
engineering-sandbox Error Error Sep 25, 2026 10:20pm UTC

Request Review

This branch had an error being deployed

1 failed deployment
Preview — 99ff4d00 Deployed Sep 25, 2026 by vercel[bot]
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.

GitHub Action to automatically remove PRs for violating ai policy

1 participant