-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add actions to replace mlpack-bot functionality.
- Loading branch information
Showing
3 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,22 @@ | ||
# Once a PR has been approved by one member of the mlpack organization, a second | ||
# approving review will automatically be added 24 hours later. This allows time | ||
# for other maintainers to take a look. | ||
name: Auto-approve pull requests | ||
on: | ||
schedule: | ||
# Run roughly every four hours. | ||
- cron: "15 0,4,8,12,16,20 * * *" | ||
|
||
jobs: | ||
auto-approve: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
|
||
steps: | ||
- name: Auto-approve pull requests | ||
uses: rcurtin/actions/auto-approve@v1 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
approval-message: | ||
'Second approval provided automatically after 24 hours. :+1:' |
This file contains 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,24 @@ | ||
name: Close inactive issues | ||
on: | ||
schedule: | ||
- cron: "30 1 * * *" | ||
|
||
jobs: | ||
close-issues: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/stale@v9 | ||
with: | ||
days-before-issues-stale: 30 | ||
days-before-issue-close: 7 | ||
stale-issue-label: "s: stale" | ||
stale-pr-label: "s: stale" | ||
stale-issue-message: "This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions! :+1:" | ||
days-before-pr-stale: 30, | ||
days-before-pr-close: 14 | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
exempt-issue-labels: "s: keep open" | ||
exempt-pr-labels: "s: keep open" |
This file contains 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,17 @@ | ||
# Post a message to new contributors that they can get some stickers mailed to | ||
# them. | ||
name: 'Stickers for new contributors' | ||
on: | ||
pull_request: | ||
types: [closed] | ||
|
||
jobs: | ||
sticker_comment: | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.merged == true | ||
steps: | ||
# Forked version of first-interaction that runs only on first merged PR. | ||
- uses: rcurtin/actions/stickers@v1 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
pr-message: "Hello there! Thanks for your contribution. Congratulations on your first contribution to mlpack! If you'd like to add your name to the list of contributors in `COPYRIGHT.txt` and you haven't already, please feel free to push a change to this PR---or, if it gets merged before you can, feel free to open another PR.\n\nIn addition, if you'd like some stickers to put on your laptop, we can get them in the mail for you. Just send an email with your physical mailing address to [email protected], and then one of the mlpack maintainers will put some stickers in an envelope for you. It may take a few weeks to get them, depending on your location. :+1:" |