GitXplorerGitXplorer
0

label-stale-pull-requests

public
0 stars
3 forks
0 issues

Commits

List of commits on branch main.
Unverified
d774f80d9a3e77bee890ce10fe4ae71d9ce9f8b5

Fix bot

00xCaso committed 2 years ago
Unverified
28585deb0692b46503aae93e3147205ad26e01de

Add inline comments

00xCaso committed 2 years ago
Verified
6dbd58a8f4f77e93de50974e5d74206ea1b52240

Merge pull request #1 from w3f/main

00xCaso committed 2 years ago
Unverified
7def255d0f00b6c94342446fd30a2264438bd023

Improvements

00xCaso committed 2 years ago
Unverified
2d665ac8f54995e7a29477aaa254c4dbe1e87ead

remove console log

00xCaso committed 2 years ago
Unverified
2092c6bd464d86edba6872f91f241c95b06be747

Improvement

00xCaso committed 2 years ago

README

The README file for this repository.

Label Stale Pull Requests

This GitHub action puts the "stale" label to PRs that has been inactive for at least n days. If the PR already has that label, it gets replaced with the "to close" label.

Inputs

  • context: the workflow context, just put ${{ toJSON(github) }} (required);
  • token: the GitHub token, just put ${{ secrets.GITHUB_TOKEN }} (required);
  • stale-timeout: the number of days that a PR can be inactive before it gets the "stale" label (default: 14);

Outputs

  • message: the message that will be displayed in the action log.

Local development

To test the action locally, create a .env file with

cp .env.example .env

and fill the GITHUB_TOKEN variable with a valid GitHub token (create one here).

Then run

node src/action.test.js

and you'll see the logs in the console. To see if the action is right, you should double check the PRs in the repo.