A GitHub Block for the Stale Action.
- 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
. - Open the stale workflow file in your browser, e.g.
https://github.com/gr2m/stale-block/blob/main/.github/workflows/stale.yml
- Replace
github.com
withhttps://blocks.githubnext.com
, e.g.https://blocks.githubnext.com/gr2m/stale-block/blob/main/.github/workflows/stale.yml
- Click on the
Stale
block in the block picker
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
🛑 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:
(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.)
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.