Skip to content
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
34 changes: 34 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Mark stale PRs

on:
schedule:
# hourly at minute 23
- cron: "23 * * * *"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this run daily instead of hourly?
"23 0 * * *"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

workflow_dispatch:

permissions:
contents: read

jobs:
stale:
permissions:
contents: read
issues: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f # v10.2.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-pr-stale: 14
days-before-pr-close: 14
days-before-issue-stale: -1
days-before-issue-close: -1
stale-pr-message: >
This PR has been automatically marked as stale because it has not had
any activity for 14 days. It will be closed if no further activity
occurs within 14 days of this comment.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add a recommendation here? e.g.

If you're still working on this, please add a comment or push new commits.

close-pr-message: >
This PR has been closed due to inactivity. Please reopen if you would
like to continue working on it.
exempt-pr-labels: "hold,WIP,blocked by spec,do not merge"
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

- Add stale PR GitHub Action
([#4926](https://github.com/open-telemetry/opentelemetry-python/pull/4926))
- `opentelemetry-sdk`: Clarify timeout units in environment variable documentation
([#4906](https://github.com/open-telemetry/opentelemetry-python/pull/4906))
- `opentelemetry-exporter-otlp-proto-grpc`: Fix re-initialization of gRPC channel on UNAVAILABLE error
Expand Down
6 changes: 6 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,12 @@ Please fork this repo in a personal Github account instead.

One of the maintainers will merge the PR once it is **ready to merge**.

### Stale PRs

PRs with no activity for 14 days will be automatically marked as stale and closed after a further 14 days of inactivity. To prevent a PR from being marked stale, ensure there is regular activity (commits, comments, reviews, etc).

Project managers can also exempt a PR from this by applying one of the following labels: `hold`, `WIP`, `blocked by spec`, `do not merge`.

## Design Choices

As with other OpenTelemetry clients, opentelemetry-python follows the
Expand Down
Loading