Skip to content

Commit

Permalink
moved to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
dwr-psandhu committed Sep 6, 2024
2 parents 2f73928 + c2b5b0e commit 7019dd9
Show file tree
Hide file tree
Showing 36 changed files with 862 additions and 3,296 deletions.
43 changes: 3 additions & 40 deletions .github/ISSUE_TEMPLATE/0_bug.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# edit this in https://github.com/conda/infrastructure

name: Bug Report
description: Create a bug report.
labels:
Expand All @@ -14,7 +15,7 @@ body:
Since there are already a lot of open issues, please also take a moment to search existing ones to see if your bug has already been reported. If you find something related, please upvote that issue and provide additional details as necessary.
💐 Thank you for helping to make Conda better. We would be unable to improve Conda without our community!
💐 Thank you for helping to make `conda/cookiecutter-conda-python` better. We would be unable to improve `conda/cookiecutter-conda-python` without our community!
- type: checkboxes
id: checks
attributes:
Expand All @@ -32,45 +33,7 @@ body:
description: What should have happened instead? Please provide as many details as possible. The more information provided, the more likely we are able to replicate your problem and offer a solution.
validations:
required: true
- type: textarea
id: info
attributes:
label: Conda Info
description: |
Let's collect some basic information about your conda install.
Please run the following command from your command line and paste the output below.
```bash
conda info
```
render: shell
- type: textarea
id: config
attributes:
label: Conda Config
description: |
Let's collect any customizations you may have for your conda install.
Please run the following command from your command line and paste the output below.
```bash
conda config --show-sources
```
render: shell
- type: textarea
id: list
attributes:
label: Conda list
description: |
The packages installed into your environment can offer clues as to the problem you are facing.
Please activate the environment within which you are encountering this bug, run the following command from your command line, and paste the output below.

```bash
conda list --show-channel-urls
```
render: shell
- type: textarea
id: context
attributes:
Expand Down
5 changes: 3 additions & 2 deletions .github/ISSUE_TEMPLATE/1_feature.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# edit this in https://github.com/conda/infrastructure

name: Feature Request
description: Create a feature request.
labels:
Expand All @@ -14,7 +15,7 @@ body:
Since there are already a lot of open issues, please also take a moment to search existing ones to see if your feature request has already been submitted. If you find something related, please upvote that issue and provide additional details as necessary.
💐 Thank you for helping to make Conda better. We would be unable to improve Conda without our community!
💐 Thank you for helping to make `conda/cookiecutter-conda-python` better. We would be unable to improve `conda/cookiecutter-conda-python` without our community!
- type: checkboxes
id: checks
attributes:
Expand Down
3 changes: 2 additions & 1 deletion .github/ISSUE_TEMPLATE/2_documentation.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# edit this in https://github.com/conda/infrastructure

name: Documentation
description: Create a documentation related issue.
labels:
Expand Down
83 changes: 72 additions & 11 deletions .github/ISSUE_TEMPLATE/epic.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# edit this in https://github.com/conda/infrastructure

name: Epic
description: A collection of related tickets.
labels:
Expand All @@ -16,7 +17,8 @@ body:
Since there are already a lot of open issues, please also take a moment to search existing ones to see if a similar epic has already been opened. If you find something related, please upvote that issue and provide additional details as necessary.
💐 Thank you for helping to make Conda better. We would be unable to improve Conda without our community!
💐 Thank you for helping to make `conda/cookiecutter-conda-python` better. We would be unable to improve `conda/cookiecutter-conda-python` without our community!
- type: checkboxes
id: checks
attributes:
Expand All @@ -25,23 +27,82 @@ body:
options:
- label: I added a descriptive title
required: true
- label: I searched open reports and couldn't find a duplicate
- label: I searched open issues and couldn't find a duplicate
required: true

- type: textarea
id: what
attributes:
label: What?
description: >-
What feature or problem will be addressed in this epic?
placeholder: Please describe here.
validations:
required: true

- type: textarea
id: summary
id: why
attributes:
label: Summary
label: Why?
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.
Why is the reported issue(s) a problem, or why is the proposed feature needed?
(Research and spike issues can be linked here.)
value: |
- [ ] <supporting issue from user, research, or spike>
placeholder: Please describe here and/or link to relevant supporting issues.
validations:
required: true

- type: textarea
id: user_impact
attributes:
label: Linked Issues & PRs
description: List all issues related to this epic.
label: User impact
description: >-
In what specific way(s) will users benefit from this change? (e.g. use cases or performance improvements)
placeholder: Please describe here.
validations:
required: true

- type: textarea
id: goals
attributes:
label: Goals
description: >-
What goal(s) should this epic accomplish?
value: |
- [ ] #
- [ ] <goal>
validations:
required: true

- type: textarea
id: tasks
attributes:
label: Tasks
description: >-
What needs to be done to implement this change?
value: |
- [ ] <task or PR>
validations:
required: false

- type: textarea
id: blocked_by
attributes:
label: 'This epic is blocked by:'
description: >-
Epics and issues that block this epic.
value: |
- [ ] <dependency epic or issue>
validations:
required: false

- type: textarea
id: blocks
attributes:
label: 'This epic blocks:'
description: >-
Epics and issues that are blocked by this epic.
value: |
- [ ] <dependency epic or issue>
validations:
required: false
17 changes: 2 additions & 15 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,7 @@
- any noteworthy (or hacky) choices to be aware of,
- or what the problem resolved here looked like. -->

### Checklist - did you ...

<!-- If any of the following items aren't relevant to your contribution,
please still tick them so we know you've gone through the checklist. -->

- [ ] Add a file to the `news` directory ([using the template](../blob/main/news/TEMPLATE)) for the next release's release notes?
<!-- All "significant" changes should get an entry:
- user-facing changes or enhancements
- bug fixes
- deprecations
- documentation updates
- other changes -->
- [ ] Add / update necessary tests?
- [ ] Add / update outdated documentation?

<!-- Just as a reminder, everyone in all conda org spaces (including PRs)
must follow the Conda Org Code of Conduct (link below).
Expand All @@ -31,5 +18,5 @@
let us know!
Helpful links:
- Conda Org COC: https://github.com/conda-incubator/governance/blob/main/CODE_OF_CONDUCT.md
- Contributing docs: ../blob/main/CONTRIBUTING.md -->
- Conda Org COC: https://github.com/conda/cookiecutter-conda-python/blob/main/CODE_OF_CONDUCT.md
- Contributing docs: https://github.com/conda/cookiecutter-conda-python/blob/main/CONTRIBUTING.md -->
50 changes: 50 additions & 0 deletions .github/template-files/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
conda/governance:
# [required] community files
- CODE_OF_CONDUCT.md

conda/infrastructure:
# [required] general workflows
- .github/workflows/cla.yml
- .github/workflows/update.yml

# [optional] to include repo in https://github.com/orgs/conda/projects/2
- .github/workflows/issues.yml
- .github/workflows/labels.yml
- .github/workflows/project.yml

# [optional] stale bot workflows
- .github/workflows/stale.yml
- .github/workflows/lock.yml

# [optional] general processes for the conda org
- src: templates/HOW_WE_USE_GITHUB.md
dst: HOW_WE_USE_GITHUB.md

# [optional] standard issue templates
- src: templates/issues/bug.yml
dst: .github/ISSUE_TEMPLATE/0_bug.yml

- src: templates/issues/feature.yml
dst: .github/ISSUE_TEMPLATE/1_feature.yml

- src: templates/issues/documentation.yml
dst: .github/ISSUE_TEMPLATE/2_documentation.yml

- src: templates/issues/epic.yml
dst: .github/ISSUE_TEMPLATE/epic.yml

# [optional] standard PR template
# - src: templates/pull_requests/news_tests_docs.md
# dst: .github/template-files/templates/pull_request_template_details.md
- src: templates/pull_requests/base.md
dst: .github/PULL_REQUEST_TEMPLATE.md

# [optional] rever release files
# - src: templates/releases/RELEASE.md
# dst: RELEASE.md
# with:
# placeholder: YY.M
# - src: templates/releases/rever.xsh
# dst: rever.xsh
# - src: templates/releases/TEMPLATE
# dst: news/TEMPLATE
3 changes: 1 addition & 2 deletions .github/workflows/cla.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
name: CLA

on:
Expand All @@ -19,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check CLA
uses: conda/actions/check-cla@v23.10.0
uses: conda/actions/check-cla@15f883f14f4232f83658e3609c3316d58905138f # v24.8.0
with:
# [required]
# A token with ability to comment, label, and modify the commit status
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/issues.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
name: Automate Issues

on:
Expand All @@ -24,12 +23,12 @@ jobs:
runs-on: ubuntu-latest
steps:
# remove [pending::feedback]
- uses: actions-ecosystem/[email protected]
- uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # v1.3.0
with:
labels: ${{ env.FEEDBACK_LBL }}
github_token: ${{ secrets.PROJECT_TOKEN }}
# add [pending::support], if still open
- uses: actions-ecosystem/[email protected]
- uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf # v1.1.3
if: github.event.issue.state == 'open'
with:
labels: ${{ env.SUPPORT_LBL }}
Expand Down
32 changes: 19 additions & 13 deletions .github/workflows/labels.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
---
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:
description: 'dryrun: Preview changes to labels without editing them (true|false)'
required: true
delete-unmapped:
description: Delete labels not mapped in either global or local label configurations.
default: false
type: boolean

dry-run:
description: Run label synchronization workflow without making any changes.
default: false
type: boolean
default: true

jobs:
sync:
Expand All @@ -20,24 +23,27 @@ jobs:
GLOBAL: https://raw.githubusercontent.com/conda/infra/main/.github/global.yml
LOCAL: .github/labels.yml
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- id: has_local
uses: andstor/file-existence-action@v2.0.0
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3.0.0
with:
files: ${{ env.LOCAL }}

- name: Global Only
uses: EndBug/[email protected].2
uses: EndBug/label-sync@52074158190acb45f3077f9099fea818aa43f97a # v2.3.3
if: steps.has_local.outputs.files_exists == 'false'
with:
config-file: ${{ env.GLOBAL }}
delete-other-labels: true
dry-run: ${{ github.event.inputs.dryrun }}
delete-other-labels: ${{ inputs.delete-unmapped }}
dry-run: ${{ inputs.dry-run }}

- name: Global & Local
uses: EndBug/[email protected].2
uses: EndBug/label-sync@52074158190acb45f3077f9099fea818aa43f97a # v2.3.3
if: steps.has_local.outputs.files_exists == 'true'
with:
config-file: |
${{ env.GLOBAL }}
${{ env.LOCAL }}
delete-other-labels: true
dry-run: ${{ github.event.inputs.dryrun }}
delete-other-labels: ${{ inputs.delete-unmapped }}
dry-run: ${{ inputs.dry-run }}
6 changes: 2 additions & 4 deletions .github/workflows/lock.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
name: Lock

on:
Expand All @@ -18,10 +17,10 @@ jobs:
if: '!github.event.repository.fork'
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v5
- uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 # v5.0.1
with:
# Number of days of inactivity before a closed issue is locked
issue-inactive-days: 365
issue-inactive-days: 180
# Do not lock issues created before a given timestamp, value must follow ISO 8601
exclude-issue-created-before: ''
# Do not lock issues with these labels, value must be a comma separated list of labels or ''
Expand All @@ -30,7 +29,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 Down
Loading

0 comments on commit 7019dd9

Please sign in to comment.