Fix: Replace defunct Probot with GitHub Action workflow to auto-close PRs #122299
No reviewers
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Asset System
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#122299
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "bartvdbraak/blender:close-github-prs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The Probot configuration we previously used to auto-close PRs (and Issues) on GitHub is no longer functioning. To address this, I've created a GitHub Actions workflow that performs the same task. This workflow is triggered whenever a pull request is created. With the current setup, pull requests are marked as stale immediately (0 days) and are subsequently closed right away (0 days).
Also, I have tested this configuration on a fork I created:
https://github.com/bartvdbraak/blender-122299/pull/3
Please note that if others fork this repository for their own development purposes (and use GitHub), this workflow will also run on their fork. If this is not desirable, I can add a condition to ensure it only runs on our GitHub mirror:
@brecht / @Sergey (not sure on which desk i should put this, so just do ping probably related devs/)
I think it is perfectly fine to replace non-working probot with workflow action. It would be good to limit it to only our own repositories, as others might rely on being able to receive PRs.
blender/blender
mirror on GitHub 28635d1f85@bartvdbraak The PR is marked as WIP/draft. Do you still plan to work on something, or is it ready for final reviews?
I've added a change to limit job execution to our read-only mirror (
blender/blender
on GitHub). Tested on this fork: https://github.com/bartvdbraak/blender-122299/pull/4WIP: Replace Probot with GitHub Action workflow that auto-closes PRsto Replace Probot with GitHub Action workflow that auto-closes PRsReplace Probot with GitHub Action workflow that auto-closes PRsto GitHub: Replace Probot with GitHub Action workflow that auto-closes PRsIt's ready for reviews, I replaced the
WIP
prefix withGitHub
.@ -0,0 +26,4 @@
days-before-pr-close: 0
# Message posted when closing a pull request.
stale-pr-message: |
This pull request has been automatically closed because this repository is read-only. Blender development happens on [projects.blender.org](https://projects.blender.org).
Maybe
This pull request has been automatically closed because this repository is a read-only mirror
?That is worded better, indeed.
GitHub: Replace Probot with GitHub Action workflow that auto-closes PRsto Fix: Replace defunct Probot with GitHub Action workflow to auto-close PRs@ -0,0 +13,4 @@
name: Close Pull Requests
runs-on: ubuntu-latest
# Only run this job in the read-only mirror repository.
if: github.repository == 'blender/blender'
You may want to check
contains(github.server_url, 'github.com')
as well. Otherwise if/when we enable actions on projects.blender.org, this would auto close pull requests here.As far as I could gather from Gitea documentation and some personal experimentation, it doesn't by default run workflow files that are in .github/workflows. However, you're right that it can't hurt to make this more explicit to GitHub indeed. Thanks for pointing that out!