From 7ce4d4cbc8a23d2ee366efc240110365fe63d328 Mon Sep 17 00:00:00 2001 From: deacon-mp Date: Mon, 16 Mar 2026 21:38:02 -0400 Subject: [PATCH] Add GitHub Actions workflows to match caldera core --- .github/workflows/greetings.yml | 19 +++++++++++++++++++ .github/workflows/stale.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 .github/workflows/greetings.yml create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml new file mode 100644 index 0000000..68a25b6 --- /dev/null +++ b/.github/workflows/greetings.yml @@ -0,0 +1,19 @@ +name: Greetings + +on: [pull_request, issues] + +permissions: + contents: read + +jobs: + greeting: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/first-interaction@1d8459ca65b335265f1285568221e229d45a995e + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + issue-message: 'Looks like your first issue -- we aim to respond to issues as quickly as possible. In the meantime, check out our documentation here: http://caldera.readthedocs.io/' + pr-message: 'Wohoo! Your first PR -- thanks for contributing!' diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..d2ed99a --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,26 @@ +name: Mark stale issues and pull requests + +on: + schedule: + - cron: "0 0 * * *" + +permissions: + contents: read + +jobs: + stale: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/stale@a20b814fb01b71def3bd6f56e7494d667ddf28da + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-label: 'no-issue-activity' + stale-pr-label: 'no-pr-activity' + stale-pr-message: 'This pull request is stale because it has had no activity for 60 days. Remove the stale label or comment or this will be closed in 60 days' + stale-issue-message: 'This issue is stale because it has had no activity for 60 days. Remove the stale label or comment or this will be closed in 60 days' + exempt-issue-labels: 'feature,keep' + days-before-stale: 60 + days-before-close: 60