Skip to content

Commit

Permalink
Merge pull request #8 from nlamirault/feat/cicd-draft-stale-2
Browse files Browse the repository at this point in the history
Manage draft PR and state labels
  • Loading branch information
nlamirault authored May 6, 2021
2 parents c6c6bd1 + f3a9995 commit cae23fc
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ daysUntilStale: 60
daysUntilClose: 7
# Issues with these labels will never be considered stale
exemptLabels:
- pinned
- security
- security fix
- security vulnerability
# Label to use when marking an issue as stale
staleLabel: wontfix
staleLabel: lifecycle/stale
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/draft-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright (C) 2021 Nicolas Lamirault <nicolas.lamirault@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Project / Draft PR Labels

on:
pull_request:
types: [opened, ready_for_review]

jobs:
triage:
runs-on: ubuntu-latest
steps:
- name: label swapping
uses: jinmayamashita/ready-for-review@1.0.0
with:
in-progress-label: 'status/in_progress'
ready-for-review-label: 'status/review_needed'
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit cae23fc

Please sign in to comment.