Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore add dependabot/renovate #23

Merged
merged 11 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
exclude_paths:
- .github/
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ body:
installation.

- See the latest ansible module documentation:
https://infrahub-ansible-collection.readthedocs.io
https://infrahub-ansible.readthedocs.io
- Check the release notes:
https://github.com/opsmill/infrahub-ansible/releases
- Look through the issues already resolved:
Expand Down
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
# yamllint disable rule:truthy
version: 2

updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "monday"
time: "09:00"
labels:
- "type/housekeeping"
4 changes: 2 additions & 2 deletions .github/file-filters.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
ci_config: &ci_config
- ".github/workflows/ci.yml"
- ".github/workflow/*.yml"
- ".github/file-filters.yml"

ansible_plugins: &ansible_plugins
- "plugins/**"

ansible_docs: &ansible_docs
- "ansible_docs/**"
- "docs/**"

python_all: &python_all
- "**/*.py"
Expand Down
3 changes: 0 additions & 3 deletions .github/labeler.yml

This file was deleted.

65 changes: 38 additions & 27 deletions .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,47 +5,51 @@
# The repository labels will be automatically configured using this file and
# the GitHub Action https://github.com/marketplace/actions/github-labeler.

# ----------------------------------
# CHANGES
# ----------------------------------
- name: "changes/major"
description: "Breaking Changes"
color: "bfd4f2"

- name: "changes/minor"
description: "Breaking Changes"
color: "fef2c0"

- name: "changes/patch"
description: "Maintenance tasks"
color: "0366d6"

# ----------------------------------
# TYPE
# ----------------------------------
- name: "type/feature"
description: "New feature or request"
color: "a2eeef"
- name: "type/refactoring"
description: "Refactoring"
color: "ef67c4"

- name: "type/bug"
description: "Something isn't working as expected"
description: "Something isn't working"
color: "d73a4a"

- name: "type/documentation"
description: "Improvements or additions to documentation"
color: "0075ca"

- name: "type/housekeeping"
description: "Maintenance task"
color: "fef2c0"

- name: "type/question"
description: "Question or discussion"
color: "d876e3"

- name: "type/duplicate"
description: "This issue or pull request already exists"
color: "cfd3d7"

# ----------------------------------
# EFFORT
# ----------------------------------
- name: "effort/high"
description: "This issue should be completed in more than a day"
color: "c80464"
- name: "type/feature"
description: "New feature or request"
color: "a2eeef"

- name: "effort/medium"
description: "This issue should be completed in a less than a day"
color: "676a43"
- name: "type/question"
description: "Further information is requested"
color: "d876e3"

- name: "effort/low"
description: "This issue should be completed in a couple of hours"
color: "eafee4"
- name: "type/deprecated"
description: "Removals and deprecations"
color: "d876e3"

# ----------------------------------
# STATUS
Expand All @@ -58,10 +62,17 @@
description: "The redaction of the issue is still a work in progress"
color: "dcb518"

- name: "state/wontfix"
description: "This will not be worked on"
color: "ffffff"

- name: "state/help"
description: "Extra attention is needed"
color: "008672"

# ----------------------------------
# CI
# ----------------------------------

- name: "ci/skip-changelog"
description: "Don't include this PR in the changelog"
color: "c30664"
description: "This will not be added to release notes"
color: "dddddd"
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Thank you for sharing your work and for opening a PR.

(!) IMPORTANT (!):
First make sure that you point your PR to the `devel` branch!
First make sure that you point your PR to the `develop` branch!

Now please read the comments carefully and try to provide information
on all relevant titles.
Expand Down Expand Up @@ -76,6 +76,5 @@ into the release notes.
Please put an x into the brackets (like `[x]`) if you've completed that task.
-->

* [ ] I have read the comments and followed the [CONTRIBUTING.md](https://github.com/opsmill/infrahub-ansibles/blob/devel/CONTRIBUTING.md).
* [ ] I have explained my PR according to the information in the comments or in a linked issue.
* [ ] My PR targets the `devel` branch.
* [ ] My PR targets the `develop` branch.
75 changes: 51 additions & 24 deletions .github/release-note.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,62 @@
---
# name-template: 'v$RESOLVED_VERSION'
# tag-template: 'v$RESOLVED_VERSION'
# Format and labels used aim to match those used by Ansible project
name-template: "$RESOLVED_VERSION"
tag-template: "$RESOLVED_VERSION"
categories:
- title: '🚀 Features'
- title: "🚀 Breaking Changes"
labels:
- 'type/feature'
- title: '🐛 Bug Fixes'
- "changes/major"

- title: "🔧 Minor Changes"
labels:
- "changes/minor"
- "type/feature"
- "type/refactoring"

- title: "🐛 Bug Fixes"
labels:
- 'type/bug'
- title: '🧰 Maintenance'
- "type/bug"

- title: "Deprecations"
labels:
- 'type/housekeeping'
- title: 📖 Documentation Change
- "type/deprecated"

- title: "📖 Documentation Change"
label:
- 'type/doctumentation'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
- "type/doctumentation"

change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
exclude-labels:
- 'ci/skip-changelog'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
# version-resolver:
# major:
# labels:
# - 'major'
# minor:
# labels:
# - 'minor'
# patch:
# labels:
# - 'patch'
# default: patch
- "ci/skip-changelog"
- "type/duplicate"

version-resolver:
major:
labels:
- "changes/major"
minor:
labels:
- "changes/minor"
- "type/feature"
- "type/refactoring"
patch:
labels:
- "changes/patch"
- "type/bug"
- "type/documentation"
default: patch
autolabeler:
- label: "ci/skip-changelog"
title: "/chore/i"
- label: "type/bug"
title: "/fix/i"
- label: "type/feature"
title: "/(enhance|improve|feature)/i"
- label: "type/deprecated"
title: "/deprecat/i"
template: |
## Changes

$CHANGES

Kudos goes to: $CONTRIBUTORS
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
---
# yamllint disable rule:truthy
name: github
name: "Managing Github Labels"

on:
push:
branches:
- "develop"
- "stable"
paths:
- ".github/labels.yml"
Expand All @@ -15,15 +14,11 @@ jobs:
labeler:
runs-on: ubuntu-latest
steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v4
-
name: Run Labeler

- name: Run Labeler
uses: crazy-max/ghaction-github-labeler@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
yaml-file: .github/labels.yml
# exclude: |
# help*
# *issue
17 changes: 0 additions & 17 deletions .github/workflows/labeler.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/release-note.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/tigger-pr-stable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
# yamllint disable rule:truthy
name: "Push on stable"
concurrency: # Cancel any existing runs of this workflow for this same PR
group: "${{ '{{ github.workflow }}' }}-${{ '{{ github.ref }}' }}"
cancel-in-progress: true

on:
pull_request:
branches:
- stable

jobs:
linter:
uses: ./.github/workflows/workflow-linter.yml

tests:
needs: ["linter"]
uses: ./.github/workflows/workflow-tests.yml

docs:
needs: ["linter", "tests"]
uses: ./.github/workflows/workflow-docs.yml
secrets: inherit

changelog:
needs: ["docs"]
uses: ./.github/workflows/workflow-changelog.yml
secrets: inherit

release:
needs: ["changelog"]
uses: ./.github/workflows/workflow-realease-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
---
name: "Pull Requests (develop)"
# yamllint disable rule:truthy
name: "Push on develop"
concurrency: # Cancel any existing runs of this workflow for this same PR
group: "${{ '{{ github.workflow }}' }}-${{ '{{ github.ref }}' }}"
cancel-in-progress: true
on: # yamllint disable

on:
push:
branches:
- "renovate/**"
pull_request:
branches:
- develop

jobs:
linter:
uses: ./.github/workflows/workflow-linter.yml

tests:
uses: ./.github/workflows/tests.yml
needs: ["linter"]
uses: ./.github/workflows/workflow-tests.yml
Loading