From a4ea4529b0d2a6fd7ba14b87c9ec0ccd863faf39 Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Mon, 18 Dec 2023 16:37:53 -0800 Subject: [PATCH] blast_repo fixes (dart-lang/csslib#193) auto-publish, no-response --- pkgs/csslib/.github/workflows/no-response.yml | 37 +++++++++++++++++++ pkgs/csslib/.github/workflows/publish.yaml | 17 +++++++++ 2 files changed, 54 insertions(+) create mode 100644 pkgs/csslib/.github/workflows/no-response.yml create mode 100644 pkgs/csslib/.github/workflows/publish.yaml diff --git a/pkgs/csslib/.github/workflows/no-response.yml b/pkgs/csslib/.github/workflows/no-response.yml new file mode 100644 index 000000000..8e5ed57cd --- /dev/null +++ b/pkgs/csslib/.github/workflows/no-response.yml @@ -0,0 +1,37 @@ +# A workflow to close issues where the author hasn't responded to a request for +# more information; see https://github.com/actions/stale. + +name: No Response + +# Run as a daily cron. +on: + schedule: + # Every day at 8am + - cron: '0 8 * * *' + +# All permissions not specified are set to 'none'. +permissions: + issues: write + pull-requests: write + +jobs: + no-response: + runs-on: ubuntu-latest + if: ${{ github.repository_owner == 'dart-lang' }} + steps: + - uses: actions/stale@1160a2240286f5da8ec72b1c0816ce2481aabf84 + with: + # Don't automatically mark inactive issues+PRs as stale. + days-before-stale: -1 + # Close needs-info issues and PRs after 14 days of inactivity. + days-before-close: 14 + stale-issue-label: "needs-info" + close-issue-message: > + Without additional information we're not able to resolve this issue. + Feel free to add more info or respond to any questions above and we + can reopen the case. Thanks for your contribution! + stale-pr-label: "needs-info" + close-pr-message: > + Without additional information we're not able to resolve this PR. + Feel free to add more info or respond to any questions above. + Thanks for your contribution! diff --git a/pkgs/csslib/.github/workflows/publish.yaml b/pkgs/csslib/.github/workflows/publish.yaml new file mode 100644 index 000000000..1cb7e9cfb --- /dev/null +++ b/pkgs/csslib/.github/workflows/publish.yaml @@ -0,0 +1,17 @@ +# A CI configuration to auto-publish pub packages. + +name: Publish + +on: + pull_request: + branches: [ main ] + push: + tags: [ 'v[0-9]+.[0-9]+.[0-9]+' ] + +jobs: + publish: + if: ${{ github.repository_owner == 'dart-lang' }} + uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main + permissions: + id-token: write # Required for authentication using OIDC + pull-requests: write # Required for writing the pull request note