Skip to content

Commit

Permalink
Update yaml files to ahere to latest pre-commit ci hook standards
Browse files Browse the repository at this point in the history
  • Loading branch information
beeankha committed Feb 29, 2024
1 parent 09ebe3c commit 8bc9a0d
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 74 deletions.
4 changes: 1 addition & 3 deletions .github/ISSUE_TEMPLATE/epic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ body:
attributes:
label: Summary
description: >-
Define the highlevel objectives to be accomplished in this epic. Include the
bigger picture of what is changing and/or the user story for why the
changes are desired/necessary.
Define the highlevel objectives to be accomplished in this epic. Include the bigger picture of what is changing and/or the user story for why the changes are desired/necessary.
validations:
required: true
- type: textarea
Expand Down
49 changes: 17 additions & 32 deletions .github/global.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
- name: mitigated
description: a workaround has been identified
color: '#43b049'
# this doesn't follow our labeling style because GitHub only populates the
# https://github.com/conda/conda/contribute page with this exact label
# this doesn't follow our labeling style because GitHub only populates the
# https://github.com/conda/conda/contribute page with this exact label
- name: good first issue
description: great for new contributors, code change is envisioned to be trivial/relatively straight-forward
color: '#43b049'
Expand All @@ -30,8 +30,7 @@
- reso-wontfix
- wontfix
- reso:wontfix

# Bots
# Bots
- name: cla-signed
description: '[bot] added once the contributor has signed the CLA'
color: '#ededed'
Expand All @@ -41,8 +40,7 @@
- name: dependencies
description: '[bot] PRs that update a dependency file'
color: '#0366d6'

# Planning
# Planning
- name: epic
description: a highlevel collection of smaller related issues
color: '#ededed'
Expand All @@ -57,13 +55,11 @@
- name: spike
description: issue is for doing research work or prototyping; outcome is optional and not required
color: '#ededed'

# Sync
# Sync
- name: sync::anaconda
description: sync internally with Anaconda, Inc. ticket tracker
color: '#5B2B76'

# Duplicates
# Duplicates
- name: duplicate
description: indicate issues/PRs that are duplicates of another
color: '#0c2132'
Expand All @@ -74,8 +70,7 @@
description: if an issue/PR has duplicates, this is the consolidated, primary issue/PR
color: '#0c2132'
aliases: [consolidation-main]

# Pending
# Pending
- name: pending::feedback
description: indicates we are waiting on feedback from the user
color: '#d4c5f9'
Expand All @@ -93,8 +88,7 @@
- name: pending::support
description: indicates user is waiting on support from triage engineers
color: '5319E7'

# Modifiers
# Modifiers
- name: ¡blocking!
description: used to indicate a blocker for a pending release
color: '#b60205'
Expand All @@ -110,8 +104,7 @@
description: used to indicate particularly notable information
color: '#b60205'
aliases: [type-advisory]

# Types
# Types
- name: type::bug
description: describes erroneous operation, use severity::* to classify the type
color: '#b60205'
Expand Down Expand Up @@ -162,8 +155,7 @@
- name: type::deprecation
description: requests removal of deprecated feature(s)
color: '#fff2cc'

# Severity
# Severity
- name: severity::1
description: blocker; broken functionality with no workaround
color: '#b60205'
Expand All @@ -179,8 +171,7 @@
- name: severity::4
description: low; functionality is inconvenient
color: '#43b04b'

# Source
# Source
- name: source::governance
description: created by members of the conda governance (https://github.com/conda-incubator/governance)
color: '#c2e0c6'
Expand Down Expand Up @@ -220,8 +211,7 @@
aliases:
- source-community
- source:public

# OS
# OS
- name: os::linux
description: relevant to Linux
color: '#d0e0e3'
Expand All @@ -247,8 +237,7 @@
- name: os::wsl
description: relevant to Windows Subsystem for Linux
color: '#d0e0e3'

# Stale
# Stale
- name: stale
description: '[bot] marked as stale due to inactivity'
color: '#E79676'
Expand All @@ -259,8 +248,7 @@
- name: stale::closed
description: '[bot] closed after being marked as stale'
color: '#86A8D8'

# Hackathons
# Hackathons
- name: hack::HackIllinois2019
description: issues found or suggested changes proposed during HackIllinois2019
color: '#6ce29e'
Expand All @@ -272,8 +260,7 @@
- name: hack::SciPy2022
description: issues found or suggested changes proposed during SciPy2022
color: '#6ce29e'

# Tags
# Tags
- name: tag::performance
description: related to degraded performance
color: '#86C579'
Expand All @@ -290,8 +277,7 @@
- name: tag::ux
description: related to user experience
color: '#86C579'

# Documentation
# Documentation
- name: documentation::tutorials
description: related to tutorials (learning-oriented)
color: '#77b2dc'
Expand All @@ -304,8 +290,7 @@
- name: documentation::explanation
description: related to higher-level clarification (understanding-oriented)
color: '#77b2dc'

# Upstream & Downstream
# Upstream & Downstream
- name: upstream
description: this issue/PR is caused by an upstream dependency
color: '#85a3ad'
Expand Down
1 change: 0 additions & 1 deletion .github/messages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ lock-issue: |
Please open a new issue if needed.
Thanks!
stale-pr: |
Hi there, thank you for your contribution!
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/cla.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
---
name: CLA

on:
issue_comment:
types:
- created
pull_request_target:

jobs:
check:
if: >-
!github.event.repository.fork
&& (
!github.event.repository.fork && (
github.event.issue.pull_request
&& github.event.comment.body == '@conda-bot check'
|| github.event_name == 'pull_request_target'
Expand All @@ -29,7 +27,6 @@ jobs:
# [required]
# Label to apply to contributor's PR once CLA is signed
label: cla-signed

# [required]
# Token for opening signee PR in the provided `cla_repo`
# (`pull_request: write` for fine-grained PAT; `repo` and `workflow` for classic PAT)
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/issues.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,21 @@
---
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:
FEEDBACK_LBL: pending::feedback
SUPPORT_LBL: pending::support

jobs:
# 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 anyone responds
if: >-
!github.event.repository.fork
&& !github.event.issue.pull_request
&& contains(github.event.issue.labels.*.name, 'pending::feedback')
!github.event.repository.fork && !github.event.issue.pull_request && contains(github.event.issue.labels.*.name, 'pending::feedback')
runs-on: ubuntu-latest
steps:
# remove [pending::feedback]
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/labels.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
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
Expand All @@ -11,7 +10,6 @@ on:
required: true
type: boolean
default: true

jobs:
sync:
if: '!github.event.repository.fork'
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/lock.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
---
name: Lock

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:

schedule:
- cron: 0 6 * * *

permissions:
issues: write
pull-requests: write

jobs:
lock:
if: '!github.event.repository.fork'
Expand All @@ -30,7 +26,6 @@ jobs:
add-issue-labels: locked
# Reason for locking an issue, value must be one of resolved, off-topic, too heated, spam or ''
issue-lock-reason: resolved

# Number of days of inactivity before a closed pull request is locked
pr-inactive-days: 365
# Do not lock pull requests created before a given timestamp, value must follow ISO 8601
Expand All @@ -41,6 +36,5 @@ jobs:
add-pr-labels: locked
# Reason for locking a pull request, value must be one of resolved, off-topic, too heated, spam or ''
pr-lock-reason: resolved

# Limit locking to issues, pull requests or discussions, value must be a comma separated list of issues, prs, discussions or ''
process-only: issues, prs
2 changes: 0 additions & 2 deletions .github/workflows/project.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
---
name: Add to Project

on:
issues:
types:
- opened
pull_request_target:
types:
- opened

jobs:
add_to_project:
if: '!github.event.repository.fork'
Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
name: Stale

on:
# NOTE: github.event is workflow_dispatch payload:
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch
Expand All @@ -11,14 +10,11 @@ on:
required: true
type: boolean
default: true

schedule:
- cron: 0 4 * * *

permissions:
issues: write
pull-requests: write

jobs:
stale:
if: '!github.event.repository.fork'
Expand All @@ -38,13 +34,11 @@ jobs:
id: read_yaml
with:
path: https://raw.githubusercontent.com/conda/infra/main/.github/messages.yml

- uses: actions/stale@v9
id: stale
with:
# Only issues with these labels are checked whether they are stale
only-issue-labels: ${{ matrix.only-issue-labels }}

# Idle number of days before marking issues stale
days-before-issue-stale: ${{ matrix.days-before-issue-stale }}
# Idle number of days before closing stale issues/PRs
Expand All @@ -53,7 +47,6 @@ jobs:
days-before-pr-stale: 365
# Idle number of days before closing stale PRs
days-before-pr-close: 30

# Comment on the staled issues
stale-issue-message: ${{ fromJSON(steps.read_yaml.outputs.value)['stale-issue'] }}
# Label to apply on staled issues
Expand All @@ -62,21 +55,18 @@ jobs:
close-issue-label: stale::closed
# Reason to use when closing issues
close-issue-reason: not_planned

# Comment on the staled PRs
stale-pr-message: ${{ fromJSON(steps.read_yaml.outputs.value)['stale-pr'] }}
# Label to apply on staled PRs
stale-pr-label: stale
# Label to apply on closed PRs
close-pr-label: stale::closed

# Remove stale label from issues/PRs on updates/comments
remove-stale-when-updated: true
# Add specified labels to issues/PRs when they become unstale
labels-to-add-when-unstale: stale::recovered
# Remove specified labels to issues/PRs when they become unstale
labels-to-remove-when-unstale: stale,stale::closed

# Max number of operations per run
operations-per-run: ${{ secrets.STALE_OPERATIONS_PER_RUN || 100 }}
# Dry-run
Expand All @@ -85,7 +75,6 @@ jobs:
ascending: true
# Delete branch after closing a stale PR
delete-branch: false

# Issues with these labels will never be considered stale
exempt-issue-labels: stale::recovered,epic
# Issues with these labels will never be considered stale
Expand All @@ -94,6 +83,5 @@ jobs:
exempt-all-milestones: true
# Assignees on issues/PRs exempted from stale
exempt-assignees: mingwandroid

- name: Print outputs
run: echo ${{ join(steps.stale.outputs.*, ',') }}
Loading

0 comments on commit 8bc9a0d

Please sign in to comment.