diff --git a/.github/workflows/lock-prs.yml b/.github/workflows/lock-prs.yml index 93d35d9..46fef9b 100644 --- a/.github/workflows/lock-prs.yml +++ b/.github/workflows/lock-prs.yml @@ -15,8 +15,10 @@ jobs: for num in $cmd; do if [ "$(gh api repos/$REPO/issues/$num --jq '.active_lock_reason'| wc -c)" -le 1 ]; then - echo "Locking pull request $num" - gh pr lock --repo "$REPO" --reason "resolved" "$num" + if ! gh pr view --repo "$REPO" --json labels -q '.labels[].name' $num|grep -qE "^Stale$" + echo "Locking pull request $num" + gh pr lock --repo "$REPO" --reason "resolved" "$num" + fi fi done env: diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index e12973d..71c934b 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/stale@v9 with: repo-token: ${{ secrets.FLATHUBBOT_TOKEN }} - stale-pr-message: "This PR hasn't received any updates in a year and will be automatically closed in 30 days. If you still plan to work on this please comment saying so." + stale-pr-message: "This PR hasn't received any updates in a year and will be automatically closed in 30 days. If you still plan to work on this please comment or re-open the PR." days-before-stale: -1 days-before-close: -1 days-before-pr-stale: 365