Skip to content

Commit

Permalink
🔄 Synced file(s) with conda/infra (conda#11256)
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 Feb 24, 2022
1 parent cfebc9b commit b6751fe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/boards.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Automate Boards

on:
# NOTE: github.event context is issues payload:
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#issues
issues:
types: [opened, labeled, unlabeled]

Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/issues.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Automate Issues

on:
# NOTE: github.event is issue_comment payload:
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#issue_comment
issue_comment:
types: [created]

env:
# labels
FEEDBACK_LBL: pending::feedback
SUPPORT_LBL: pending::support

Expand All @@ -17,7 +18,8 @@ jobs:
pending_support:
# if [pending::feedback] and the author responds
if: >-
github.event_name == 'issue_comment'
!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')
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/labels.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Sync Labels

on:
# NOTE: github.event is workflow_dispatch payload:
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch
workflow_dispatch:
inputs:
dryrun:
Expand All @@ -10,6 +12,7 @@ on:

jobs:
sync:
if: '!github.event.repository.fork'
runs-on: ubuntu-latest
env:
GLOBAL: https://raw.githubusercontent.com/conda/infra/main/.github/global.yml
Expand Down

0 comments on commit b6751fe

Please sign in to comment.