-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔄 synced file(s) with conda/infrastructure (#18)
Co-authored-by: Conda Bot <[email protected]>
- Loading branch information
Showing
3 changed files
with
7 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters