Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(workflow): add workflow to handle stale issues and PR #323

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

CunliangGeng
Copy link
Member

@CunliangGeng CunliangGeng commented Jun 27, 2022

Description

Related to issue #324 .
Add gh action to check and close stale issues and PRs.

With current setting, the action runs at midnight of every Mon., Wed. and Friday.
If an issue has no no activity for 30 days after creating, it'll be labeled as stale; if no activity for 7 days after marking stale, it'll be closed.
For a PR, it's 14 days for labelling stale and 7 days for closing it.

It uses this gh action https://github.com/actions/stale

Instructions to review the pull request

Create a python-template-test repo on GitHub (will be overwritten if existing)

cd $(mktemp -d --tmpdir py-tmpl-XXXXXX)
cookiecutter -c <pr-branch> https://github.com/<pr-user>/python-template
# Fill with python-template-test info
cd python-template-test
git init
git add --all
git commit -m "First commit"
git remote add origin https://github.com/<you>/python-template-test
git push -u origin main -f
python -m venv env
source env/bin/activate
python -m pip install --upgrade pip setuptools
python -m pip install '.[dev,publishing]'

@fdiblen
Copy link
Member

fdiblen commented Jun 28, 2022

Hi @CunliangGeng,

Thank you for the suggestion. I cannot find a related issue which this PR solves. Would you please have a look at https://github.com/NLeSC/python-template/blob/main/CONTRIBUTING.md before creating a PR?

@CunliangGeng
Copy link
Member Author

Thanks for the reminder. I created issue #324 for this PR :-) Have a look please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants