FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add workflow to redirect issues to Processing 4 by SableRaf · Pull Request #6305 · processing/processing · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .yml  (1) All 1 file type selected
Only manifest files
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
37 changes: 37 additions & 0 deletions .github/workflows/redirect.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Redirect issues to Processing 4

on:
issues:
types: [opened]

permissions:
issues: write

jobs:
redirect:
runs-on: ubuntu-latest

steps:
- uses: actions/github-script@v9
with:
script: |
const body = `> Thanks for your report. Please note that this repository is inactive and only kept for legacy purposes.
>
> If you're reporting a bug or requesting a feature for Processing 4, please open an issue in **https://github.com/processing/processing4/issues/new/choose** instead.
>
> This issue will be closed automatically.`;

await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body
});

await github.rest.issues.update({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
state: "closed",
state_reason: "not_planned"
});

Back | FazBrowse Home | New Git URL