diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 042e900..49c4d51 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,3 +1,4 @@ +blank_issues_enabled: false contact_links: - name: Contributing guidelines url: https://github.com/Serpentiel/template/blob/main/CONTRIBUTING.md diff --git a/.github/workflows/auto_approve.yml b/.github/workflows/auto_approve.yml new file mode 100644 index 0000000..d95e002 --- /dev/null +++ b/.github/workflows/auto_approve.yml @@ -0,0 +1,24 @@ +name: Auto Approve + +on: + pull_request: + branches: + - main + - release-* + types: + - opened + - synchronize + - reopened + - labeled + - unlabeled + +permissions: + contents: read + pull-requests: write + +jobs: + auto-approve: + runs-on: ubuntu-latest + if: contains(github.event.pull_request.labels.*.name, 'auto approve') || github.actor == 'dependabot[bot]' + steps: + - uses: hmarr/auto-approve-action@v2 diff --git a/.github/workflows/changelog_enforcer.yml b/.github/workflows/changelog_enforcer.yml index bfab662..7084458 100644 --- a/.github/workflows/changelog_enforcer.yml +++ b/.github/workflows/changelog_enforcer.yml @@ -5,10 +5,12 @@ on: branches: - main - release-* - push: - branches: - - main - - release-* + types: + - opened + - synchronize + - reopened + - labeled + - unlabeled permissions: contents: read @@ -16,5 +18,8 @@ permissions: jobs: changelog-enforcer: runs-on: ubuntu-latest + if: ((github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'skip workflows')) || github.event_name == 'push') && github.actor != 'dependabot[bot]' steps: - uses: dangoslen/changelog-enforcer@v3 + with: + skipLabels: no changelog diff --git a/.github/workflows/dependency_review.yml b/.github/workflows/dependency_review.yml index 840fa82..91dbe2c 100644 --- a/.github/workflows/dependency_review.yml +++ b/.github/workflows/dependency_review.yml @@ -5,12 +5,12 @@ on: branches: - main - release-* - -# TODO: This is currently not supported, see https://github.com/actions/dependency-review-action/issues/30. -# push: -# branches: -# - main -# - release-* + types: + - opened + - synchronize + - reopened + - labeled + - unlabeled permissions: contents: read @@ -18,6 +18,7 @@ permissions: jobs: dependency-review: runs-on: ubuntu-latest + if: (github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'skip workflows')) || github.event_name == 'push' steps: - uses: actions/checkout@v3 - uses: actions/dependency-review-action@v2 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5121c58..d426961 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -5,6 +5,12 @@ on: branches: - main - release-* + types: + - opened + - synchronize + - reopened + - labeled + - unlabeled push: branches: - main @@ -16,6 +22,7 @@ permissions: jobs: markdownlint: runs-on: ubuntu-latest + if: (github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'skip workflows')) || github.event_name == 'push' steps: - uses: actions/checkout@v3 - uses: DavidAnson/markdownlint-cli2-action@v7 diff --git a/CHANGELOG.md b/CHANGELOG.md index 06cdce4..103227e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,18 +9,34 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +### Added + +- Skip labels for Changelog Enforcer +- Skip workflows label for Dependency Review +- Skip workflows label for Lint +- Auto Approve workflow +### Changed + +- Disabled creation of issues without using a template +- Disabled Changelog Enforcer for dependabot +### Removed + +- Dropped comment from Dependency Review workflow +### Fixed + +- Prevent Changelog Enforcer from triggering on `push` events