From 1c23e8b7adc4fd7a959f297ac3cc76db69aaf515 Mon Sep 17 00:00:00 2001 From: Christian Tran Date: Sat, 24 Aug 2024 20:43:34 -0500 Subject: [PATCH] fix(workflow): update workflow files (#542) * fix(workflow): update workflow files * fix(actions): don't close after issues and PRs --- .github/labeler.yml | 42 +++++++++++++++++++++++++++++++------ .github/workflows/stale.yml | 11 ++++++++-- 2 files changed, 45 insertions(+), 8 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index ec71243c..e4ac1cb8 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -4,22 +4,52 @@ root: - changed-files: - any-glob-to-any-file: '*' -# Add 'AnyChange' label to any changes within the entire repository -AnyChange: -- changed-files: - - any-glob-to-any-file: '**' - # Add 'Documentation' label to any change to .md files within the entire repository Documentation: - changed-files: - any-glob-to-any-file: '**/*.md' -# Add 'source' label to any change to src files within the source dir EXCEPT for the docs sub-folder +# Add 'source' label to any change to src files within the source dir source: - all: - changed-files: - any-glob-to-any-file: 'src/**/*' +# Add 'pages' label to any changes within the entire repository +pages: +- changed-files: + - any-glob-to-any-file: 'pages/**/*' + +# Add 'public' label to any changes within the entire repository +public: +- changed-files: + - any-glob-to-any-file: 'public/**/*' + +# Add 'globals' label to any changes within the entire repository +globals: +- changed-files: + - any-glob-to-any-file: 'globals/**/*' + +# Add 'firebase' label to any changes within the entire repository +firebase: +- changed-files: + - any-glob-to-any-file: 'firebase/**/*' + +# Add 'context' label to any changes within the entire repository +context: +- changed-files: + - any-glob-to-any-file: 'context/**/*' + +# Add 'workflows' label to any changes within the entire repository +workflows: +- changed-files: + - any-glob-to-any-file: '.github/**/*' + +# Add 'devcontainer' label to any changes within the entire repository +devcontainer: +- changed-files: + - any-glob-to-any-file: '.devcontainer/**/*' + # Add 'feature' label to any PR where the head branch name starts with `feature` or has a `feature` section in the name feature: - head-branch: ['^feature', 'feature'] diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 37a7a11d..a86dc954 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -21,7 +21,14 @@ jobs: - uses: actions/stale@v9 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-issue-message: 'Stale issue message' - stale-pr-message: 'Stale pull request message' stale-issue-label: 'no-issue-activity' stale-pr-label: 'no-pr-activity' + exempt-issue-labels: Not Stale + exempt-pr-labels: Not Stale + stale-issue-message: > + This issue is stale because it has been open for 60 days with no + activity. + stale-pr-message: > + This pull request is stale because it has been open for 60 days + with no activity. + days-before-close: -1