diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml index e57cc19..3b7bd65 100644 --- a/.github/dependabot.yaml +++ b/.github/dependabot.yaml @@ -1,4 +1,5 @@ -# https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates +# https://docs.github.com/en/github/administering-a-repository +# /configuration-options-for-dependency-updates --- version: 2 updates: @@ -8,6 +9,6 @@ updates: schedule: interval: "daily" labels: - - "CI/CD" + - "📦 dependencies" assignees: - "kdeldycke" diff --git a/.github/labels-extra.json b/.github/labels-extra.json new file mode 100644 index 0000000..97b9d95 --- /dev/null +++ b/.github/labels-extra.json @@ -0,0 +1,22 @@ +[ + { + "name": "curation", + "color": "#d73a4a", + "description": "Links or structure needs to be refined" + }, + { + "name": "new link", + "color": "#fbca04", + "description": "A link worth adding to the list" + }, + { + "name": "fix link", + "color": "#d4c5f9", + "description": "Existing link need to be updated" + }, + { + "name": "typo", + "color": "#fef2c0", + "description": "Tiny, obvious fix" + } +] \ No newline at end of file diff --git a/.github/labels.json b/.github/labels.json deleted file mode 100644 index a90e247..0000000 --- a/.github/labels.json +++ /dev/null @@ -1,57 +0,0 @@ -[ - { - "name": "CI/CD", - "color": "#dbca13", - "description": "Automation and management of the project itself" - }, - { - "name": "curation", - "color": "#d73a4a", - "description": "Links or structure needs to be refined" - }, - { - "name": "duplicate", - "color": "#cfd3d7", - "description": "This issue or pull request already exists" - }, - { - "name": "enhancement", - "color": "#84b6eb", - "description": "New feature or request" - }, - { - "name": "good first issue", - "color": "#7057ff", - "description": "Good for newcomers" - }, - { - "name": "help wanted", - "color": "#008672", - "description": "Extra attention is needed" - }, - { - "name": "new link", - "color": "#fbca04", - "description": "A link worth adding to the list" - }, - { - "name": "fix link", - "color": "#d4c5f9", - "description": "Existing link need to be updated" - }, - { - "name": "question", - "color": "#d876e3", - "description": "Further information is requested" - }, - { - "name": "typo", - "color": "#fef2c0", - "description": "Tiny, obvious fix" - }, - { - "name": "wont do/fix", - "color": "#eeeeee", - "description": "This will not be worked on" - } -] \ No newline at end of file diff --git a/.github/workflows/autolock.yaml b/.github/workflows/autolock.yaml index 5a5cc15..e04d8f6 100644 --- a/.github/workflows/autolock.yaml +++ b/.github/workflows/autolock.yaml @@ -1,5 +1,3 @@ -# Locks closed issues and pull requests after a period of inactivity, to -# prevent spam and noise. --- name: Autolock "on": @@ -8,19 +6,6 @@ name: Autolock - cron: "43 8 * * 1" jobs: - lock: - runs-on: ubuntu-20.04 - steps: - - uses: dessant/lock-threads@v3.0.0 - with: - # Lock down after 3 months. - issue-inactive-days: '90' - issue-comment: > - This issue has been automatically locked since there - has not been any recent activity after it was closed. - Please open a new issue for related bugs. - pr-inactive-days: '90' - pr-comment: > - This pull request has been automatically locked since there - has not been any recent activity after it was closed. - Please open a new issue for related bugs. + + autolock: + uses: kdeldycke/workflows/.github/workflows/autolock.yaml@v0.9.1 diff --git a/.github/workflows/label-sponsors.yaml b/.github/workflows/label-sponsors.yaml new file mode 100644 index 0000000..a85ce05 --- /dev/null +++ b/.github/workflows/label-sponsors.yaml @@ -0,0 +1,14 @@ +--- +name: Label sponsors +"on": + pull_request: + types: + - opened + issues: + types: + - opened + +jobs: + + label-sponsors: + uses: kdeldycke/workflows/.github/workflows/label-sponsors.yaml@v0.9.1 \ No newline at end of file diff --git a/.github/workflows/labels.yaml b/.github/workflows/labels.yaml new file mode 100644 index 0000000..5a4b23b --- /dev/null +++ b/.github/workflows/labels.yaml @@ -0,0 +1,15 @@ +--- +name: Labels +"on": + push: + branches: + - main + +jobs: + + labels: + uses: kdeldycke/workflows/.github/workflows/labels.yaml@v0.9.1 + needs: generate-labels + with: + extra-label-files: | + .github/labels-extra.json \ No newline at end of file diff --git a/.github/workflows/labels_sync.yaml b/.github/workflows/labels_sync.yaml deleted file mode 100644 index 3946764..0000000 --- a/.github/workflows/labels_sync.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -name: Sync labels -"on": issues - -jobs: - - sync_labels: - name: Sync labels - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v2.4.0 - - uses: lannonbr/issue-label-manager-action@3.0.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 0c3d841..0b0d0e9 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -2,10 +2,12 @@ name: Lint "on": push: - pull_request: - schedule: - # Run linter every week to catch regressions from external dependencies. - - cron: 17 9 * * 1 + +jobs: + + lint: + uses: kdeldycke/workflows/.github/workflows/lint.yaml@v0.9.1 + jobs: @@ -30,17 +32,3 @@ jobs: - run: | npx awesome-lint --version npx awesome-lint - - lint-yaml: - name: Lint YAML files - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v2.4.0 - - uses: actions/setup-python@v2.3.1 - - name: Install linter - run: | - python -m pip install --upgrade pip - python -m pip install yamllint - - name: Lint - run: | - yamllint .