Skip to content

Just my playground to experiment with blocks

License

ISC, MIT licenses found

Licenses found

ISC
LICENSE
MIT
LICENSE.txt
Notifications You must be signed in to change notification settings

gr2m/stale-block

Stale Block

A GitHub Block for the Stale Action.

Usage

  1. Create a stale workflow in your repository if you haven't yet. The workflow file name should include the word stale, e.g. .github/workflows.stale.yml.
  2. Open the stale workflow file in your browser, e.g. https://github.com/gr2m/stale-block/blob/main/.github/workflows/stale.yml
  3. Replace github.com with https://blocks.githubnext.com, e.g. https://blocks.githubnext.com/gr2m/stale-block/blob/main/.github/workflows/stale.yml
  4. Click on the Stale block in the block picker

Preview

image

Status

This Block is work in progress. Here is the status of stale option that are implemented

  • schedule
  • repo-token
  • stale-issue-message
  • stale-pr-message
  • close-issue-message
  • close-pr-message
  • days-before-stale
  • days-before-issue-stale
  • days-before-pr-stale
  • days-before-close
  • days-before-issue-close
  • days-before-pr-close
  • stale-issue-label
  • close-issue-label
  • exempt-issue-labels
  • close-issue-reason
  • stale-pr-label
  • close-pr-label
  • exempt-pr-labels
  • exempt-milestones
  • exempt-issue-milestones
  • exempt-pr-milestones
  • exempt-all-milestones
  • exempt-all-issue-milestones
  • exempt-all-pr-milestones
  • only-labels
  • any-of-labels
  • any-of-issue-labels
  • any-of-pr-labels
  • only-issue-labels
  • only-pr-labels
  • operations-per-run
  • remove-stale-when-updated
  • remove-issue-stale-when-updated
  • remove-pr-stale-when-updated
  • debug-only
  • delete-branch
  • start-date
  • exempt-assignees
  • exempt-issue-assignees
  • exempt-pr-assignees
  • exempt-all-assignees
  • exempt-all-issue-assignees
  • exempt-all-pr-assignees
  • exempt-draft-pr
  • enable-statistics
  • labels-to-add-when-unstale
  • labels-to-remove-when-stale
  • labels-to-remove-when-unstale
  • ignore-updates
  • ignore-issue-updates
  • ignore-pr-updates
  • include-only-assigned

Local Development

🛑 Currently, you must be flagged into the GitHub Blocks Technical Preview in order to develop blocks. There is no "offline" development mode at this time.

npm install
npm start # start the dev server

When you visit localhost:4000 in your browser, you'll be redirected to the Blocks app, but your locally-developed blocks will appear in the block picker:

Block picker

(if you're using Safari (or another browser that doesn't permit calling http URLs from an https page), run npm run start-https and visit https://localhost:4000 instead.)

Under the hood

GitHub Blocks are React components. They have a well-defined contract with their surroundings, and receive a fixed set of props when they are instantiated. They are developed in TypeScript, and bundled with Vite.

License

ISC

About

Just my playground to experiment with blocks

Resources

License

ISC, MIT licenses found

Licenses found

ISC
LICENSE
MIT
LICENSE.txt

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published