-
Notifications
You must be signed in to change notification settings - Fork 307
Hygiene script #3327
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
Merged
Merged
Hygiene script #3327
Changes from 14 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
6cf6455
draft of script
maryliag b32ef56
remove private repos
maryliag e307323
add cutoff to created repos
maryliag 061c67e
update check for maintainer
maryliag d60bfd4
Merge branch 'main' of github.com:open-telemetry/community into clean…
maryliag fd04255
add warning for repos with critical amount of maintainers
maryliag 1c511e9
include comments on issues as being active
maryliag 422420e
add debug options, change to rest api to catch edge case
maryliag c306399
performance improvements
maryliag 7364238
start script
maryliag d4a6d5c
create PR from results
maryliag 5e39f0b
improvements on grouping
maryliag fb92acc
add repos to ignore
maryliag 8ac240f
use display name on readme PR
maryliag 6b9e74d
fix activity per team and not per user
maryliag 3415a1b
add more ignore repos to the list
maryliag a0cfc97
fix role check per repo
maryliag d7e3852
fix
maryliag e534db3
Merge branch 'main' of github.com:open-telemetry/community into clean…
maryliag f3a5700
update usage text
maryliag 1f38a35
only run in a few repos for starters
maryliag File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| name: Move inactive members to Emeritus | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| schedule: | ||
| # At 05:00, on the 1st of every month | ||
| - cron: '0 5 1 * *' | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| move-to-emeritus: | ||
| name: Move inactive members to emeritus | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1 | ||
| id: otelbot-token | ||
| with: | ||
| app-id: ${{ vars.OTELBOT_DOCS_APP_ID }} | ||
| private-key: ${{ secrets.OTELBOT_DOCS_PRIVATE_KEY }} | ||
| owner: open-telemetry | ||
|
|
||
| - name: Checkout repo | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 | ||
| with: | ||
| python-version: '3.12' | ||
|
|
||
| - name: Run move-to-emeritus script | ||
| run: python scripts/move-to-emeritus.py --create-prs | ||
| env: | ||
| GITHUB_TOKEN: ${{ steps.otelbot-token.outputs.token }} | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.