From 119b877ae82bd2ca4cf7e5144d3a5ec104055164 Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Fri, 2 Aug 2024 16:02:05 -0700 Subject: [PATCH] blast_repo fixes (#127) auto-publish, dependabot, github-actions, no-response --- .github/dependabot.yaml | 6 +++++ .github/workflows/no-response.yml | 37 +++++++++++++++++++++++++++++++ .github/workflows/publish.yaml | 9 +++----- 3 files changed, 46 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/no-response.yml diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml index 2e9104f..5b8763c 100644 --- a/.github/dependabot.yaml +++ b/.github/dependabot.yaml @@ -7,3 +7,9 @@ updates: directory: / schedule: interval: monthly + labels: + - autosubmit + groups: + github-actions: + patterns: + - "*" diff --git a/.github/workflows/no-response.yml b/.github/workflows/no-response.yml new file mode 100644 index 0000000..9cd84a5 --- /dev/null +++ b/.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 == 'google' }} + steps: + - uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e + 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/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index d5146d7..670f0e3 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -3,18 +3,15 @@ name: Publish on: - # Trigger on pull requests that target the default branch. pull_request: branches: [ main ] - types: [opened, synchronize, reopened, labeled, unlabeled] - # Also, trigger when tags are pushed to the repo. push: tags: [ 'v[0-9]+.[0-9]+.[0-9]+' ] -# The script below will perform publishing checks (version checks, publishing -# dry run, ...) when run on a PR, and perform an actual pub publish when run as -# a result of a git tag event. jobs: publish: if: ${{ github.repository_owner == 'google' }} 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