diff --git a/.github/workflows/reminder-comment.yml b/.github/workflows/reminder-comment.yml new file mode 100644 index 0000000000..30c3c74ce1 --- /dev/null +++ b/.github/workflows/reminder-comment.yml @@ -0,0 +1,22 @@ +name: Reminder Comment on New Issues +on: + issues: + types: + - opened +permissions: + issues: write + +jobs: + label_issue: + runs-on: ubuntu-latest + steps: + - name: Checkout repo (optional but avoids errors) + uses: actions/checkout@v4 + + - name: Comment on the new issue + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ISSUE_URL: ${{ github.event.issue.html_url }} + ISSUE_NUMBER: ${{ github.event.issue.number }} + run: | + gh issue comment "$ISSUE_NUMBER" --body $'**Thanks for opening this issue.**\n\nYou can help us to fix this issue faster by opening a pull request. See our [Contribution Guide](https://github.com/opensearch-project/.github/blob/main/CONTRIBUTING.md) if this is your first time contributing. 🙏' \ No newline at end of file diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000000..b75a86a2dc --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,23 @@ +name: Mark Stale PRs +on: + schedule: + - cron: '30 1 * * *'' +permissions: + pull-requests: write +jobs: + mark-stale-pr: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/stale@v9 + with: + days-before-issue-stale: -1 + days-before-issue-close: -1 + stale-pr-label: 'stale' + stale-pr-message: 'This PR is stalled because it has been open for 30 days with no activity.' + days-before-pr-stale: 30 + days-before-pr-close: -1 + repo-token: ${{ secrets.GITHUB_TOKEN }} +