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

Implementing a Thor task which audits GitHub repositories for stale issues #167

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
README.md
README.md
tmp/
6 changes: 5 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
source 'https://rubygems.org'

gem "faraday", "~> 1.10"
gem 'github_api'
gem 'huborg'
gem 'rake'
gem "octokit", "~> 4.25"
gem 'rake'
gem "thor", "~> 1.3"
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,14 @@ One may also explicitly request that all existing ownership permissions be revok
$ WITH_REVOKE=true bundle exec ruby ./ruby/script/grant_revoke_gem_authority.rb
```

### Auditing GitHub Repositories for stale issues

One may search for all issues last updated before a given date, apply the label `stale` and appending a comment calling attention to the issue creator with the following:

```bash
$ export GH_TOKEN="secret" bundle exec thor samvera:audit_issues --repo="samvera/active_fedora" --updated="2021-01-01"
```

## Contributing

If you're working on PR for this project, create a feature branch off of `main`.
Expand Down
Loading