From 5a035c8a40fc2ca685e1a2e85a0e0b00f99cc806 Mon Sep 17 00:00:00 2001 From: Deepak Dahiya <59823596+t-dedah@users.noreply.github.com> Date: Fri, 11 Jun 2021 08:11:41 +0000 Subject: [PATCH 1/3] Added add-label workflow --- .github/config/labels.yml | 47 ++++++++++++++++++++++++++++++++ .github/workflows/add-labels.yml | 17 ++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 .github/config/labels.yml create mode 100644 .github/workflows/add-labels.yml diff --git a/.github/config/labels.yml b/.github/config/labels.yml new file mode 100644 index 00000000..35c7410e --- /dev/null +++ b/.github/config/labels.yml @@ -0,0 +1,47 @@ +- name: need-to-triage + color: "#fbca04" + description: "Requires investigation" + +- name: idle + color: "#9A777A" + description: "Inactive for 14 days" + +- name: stale + color: "#A9A9A9" + description: "90 days old" + +- name: question + color: "#d876e3" + description: "Requiring some clarification" + +- name: bug + color: "#d73a4a" + description: "Something is not working" + +- name: P0 + color: "#B60205" + description: "Action not working" + +- name: P1 + color: "#EE3D1D" + description: "Some scenario broken but workaround exists" + +- name: enhancement + color: "#a2eeef" + description: "Feature request/improved experience" + +- name: documentation + color: "#0075ca" + description: "Improvements or additions to documentation" + +- name: backlog + color: "#bd7e4b" + description: "Planned for future" + +- name: performance-issue + color: "#0e8a16" + description: "Performance improvement required" + +- name: waiting-for-customer + color: "#0e8a16" + description: "Waiting for inputs from customer" diff --git a/.github/workflows/add-labels.yml b/.github/workflows/add-labels.yml new file mode 100644 index 00000000..a501fbd0 --- /dev/null +++ b/.github/workflows/add-labels.yml @@ -0,0 +1,17 @@ +name: add-labels +on: + workflow_dispatch: + +jobs: + test_action_job: + runs-on: ubuntu-latest + steps: + - name: Check out source code + uses: actions/checkout@v1 + - name: Synchronize labels + uses: julb/action-manage-label@v1 + with: + from: .github/config/labels.yml + skip_delete: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From d097bad9fbc8706053412092b158d3f966e7d279 Mon Sep 17 00:00:00 2001 From: Deepak Dahiya <59823596+t-dedah@users.noreply.github.com> Date: Sat, 26 Jun 2021 09:04:15 +0000 Subject: [PATCH 2/3] Updated default label worlkflow for health dashboard --- .github/workflows/defaultLabel.yml | 39 +++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 12 deletions(-) diff --git a/.github/workflows/defaultLabel.yml b/.github/workflows/defaultLabel.yml index 8466ee9b..37331b8a 100644 --- a/.github/workflows/defaultLabel.yml +++ b/.github/workflows/defaultLabel.yml @@ -1,21 +1,36 @@ +name: setting-default-labels -name: Mark issues "default" - +# Controls when the action will run. on: schedule: - cron: "0 0/3 * * *" +# A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - stale: - + build: + # The type of runner that the job will run on runs-on: ubuntu-latest + # Steps represent a sequence of tasks that will be executed as part of the job steps: - - uses: actions/stale@v3 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-issue-message: 'This issue is marked default for generating issues report.' - stale-issue-label: 'default' - days-before-stale: 0 - days-before-close: -1 - operations-per-run: 100 + + - uses: actions/stale@v3 + name: Setting issue as idle + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: 'This issue is idle because it has been open for 14 days with no activity.' + stale-issue-label: 'idle' + days-before-stale: 14 + days-before-close: -1 + operations-per-run: 100 + exempt-issue-labels: 'backlog' + + - uses: actions/stale@v3 + name: Setting PR as idle + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-pr-message: 'This PR is idle because it has been open for 14 days with no activity.' + stale-pr-label: 'idle' + days-before-stale: 14 + days-before-close: -1 + operations-per-run: 100 From a931885e50ed60be637a43ecb58e0f8695f27dc6 Mon Sep 17 00:00:00 2001 From: Deepak Dahiya <59823596+t-dedah@users.noreply.github.com> Date: Sun, 27 Jun 2021 19:59:51 +0000 Subject: [PATCH 3/3] Reduced time --- .github/workflows/defaultLabel.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/defaultLabel.yml b/.github/workflows/defaultLabel.yml index 37331b8a..8ed772f8 100644 --- a/.github/workflows/defaultLabel.yml +++ b/.github/workflows/defaultLabel.yml @@ -20,7 +20,7 @@ jobs: repo-token: ${{ secrets.GITHUB_TOKEN }} stale-issue-message: 'This issue is idle because it has been open for 14 days with no activity.' stale-issue-label: 'idle' - days-before-stale: 14 + days-before-stale: 7 days-before-close: -1 operations-per-run: 100 exempt-issue-labels: 'backlog' @@ -31,6 +31,6 @@ jobs: repo-token: ${{ secrets.GITHUB_TOKEN }} stale-pr-message: 'This PR is idle because it has been open for 14 days with no activity.' stale-pr-label: 'idle' - days-before-stale: 14 + days-before-stale: 5 days-before-close: -1 operations-per-run: 100