Skip to content

Commit

Permalink
🔄 synced file(s) with conda/infrastructure (#18)
Browse files Browse the repository at this point in the history
Co-authored-by: Conda Bot <[email protected]>
  • Loading branch information
conda-bot and conda-bot authored Mar 6, 2023
1 parent 50dddb9 commit 352127f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,23 @@ env:
SUPPORT_LBL: pending::support

jobs:
# NOTE: doesn't catch cases where multiple users act as the author/reporter,
# this is just an effort to catch the majority of support cases
# NOTE: will update label if anyone responds, not just the author/reporter
# TODO: create conda-issue-sorting team and modify this to toggle label based on
# whether a non-issue-sorting engineer commented
pending_support:
# if [pending::feedback] and the author responds
# if [pending::feedback] and anyone responds
if: >-
!github.event.repository.fork
&& github.event_name == 'issue_comment'
&& github.event.action == 'created'
&& !github.event.issue.pull_request
&& contains(github.event.issue.labels.*.name, 'pending::feedback')
&& github.event.issue.user.login == github.event.comment.user.login
runs-on: ubuntu-latest
steps:
# remove [pending::feedback]
- uses: actions-ecosystem/[email protected]
with:
labels: ${{ env.FEEDBACK_LBL }}
github_token: ${{ secrets.PROJECT_TOKEN }}
# add [pending::feedback], if still open
# add [pending::support], if still open
- uses: actions-ecosystem/[email protected]
if: github.event.issue.state == 'open'
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ jobs:
steps:
- uses: actions/checkout@v3
- id: has_local
uses: andstor/file-existence-action@v1.0.1
uses: andstor/file-existence-action@v2.0.0
with:
files: ${{ env.LOCAL }}
- name: Global Only
uses: EndBug/[email protected].0
uses: EndBug/[email protected].2
if: steps.has_local.outputs.files_exists == 'false'
with:
config-file: ${{ env.GLOBAL }}
delete-other-labels: true
dry-run: ${{ github.event.inputs.dryrun }}
- name: Global & Local
uses: EndBug/[email protected].0
uses: EndBug/[email protected].2
if: steps.has_local.outputs.files_exists == 'true'
with:
config-file: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
if: '!github.event.repository.fork'
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@v0.3.0
- uses: actions/add-to-project@v0.4.1
with:
# issues are added to the Planning project
# PRs are added to the Review project
Expand Down

0 comments on commit 352127f

Please sign in to comment.