forked from conda/cookiecutter-conda-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
862 additions
and
3,296 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
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
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
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
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
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 |
---|---|---|
@@ -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 |
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
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
--- | ||
name: Automate Issues | ||
|
||
on: | ||
|
@@ -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 }} | ||
|
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 |
---|---|---|
@@ -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: | ||
|
@@ -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 }} |
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
Oops, something went wrong.