Skip to content

Commit

Permalink
Support Customer Label (#136)
Browse files Browse the repository at this point in the history
## Description

It is useful to include "customer" as label to identify features or
configurations specific to a customer.

## Changes Made

* Allow PRs with label `customer`
* Manage issue with label `customer`
* Manage release notes for PRs with label `customer`

## Related Issues

N/A

## Checklist

- [x] I have used a PR title that is descriptive enough for a release
note.
- [x] I have tested these changes locally.
- [ ] I have added appropriate tests or updated existing tests.
- [ ] I have tested these changes on a dedicated VM or a customer VM
[name of the VM]
- [ ] I have added appropriate documentation or updated existing
documentation.

---------

Co-authored-by: cosimomeli <[email protected]>
  • Loading branch information
chicco785 and cosimomeli authored Sep 20, 2024
1 parent b23e697 commit 8ccb4b7
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
16 changes: 16 additions & 0 deletions .github/config/release-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,22 @@
],
"exhaustive": true,
"exhaustive_rules": false
},
{
"title": "## Customer",
"labels": ["customer"],
"rules": [
{
"pattern": "myPR",
"on_property": "number"
},
{
"pattern": "merged",
"on_property": "status"
}
],
"exhaustive": true,
"exhaustive_rules": false
}
],
"pr_template": "- ${{TITLE}} (PR #${{NUMBER}} by @${{AUTHOR}})",
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ on:
inputs:
labels:
description: 'Labels to be checked'
default: 'feature,bug,ci,refactor,security,documentation,dependencies,skip-changelog'
default: 'feature,bug,ci,refactor,security,documentation,dependencies,customer,skip-changelog'
required: false
type: string
jobs:
Expand All @@ -52,5 +52,5 @@ jobs:
- uses: docker://agilepathway/pull-request-label-checker:latest
with:
github_enterprise_graphql_url: https://api.github.com/graphql
one_of: ${{ inputs.labels !='' && inputs.labels || 'feature,bug,ci,refactor,security,documentation,dependencies,skip-changelog' }}
one_of: ${{ inputs.labels !='' && inputs.labels || 'feature,bug,ci,refactor,security,documentation,dependencies,customer,skip-changelog' }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
6 changes: 5 additions & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# GitHub Workflows Release Notes

## 0.0.3-dev - 2024-07-30
## 0.0.3-dev - 2024-09-20

### Features

- Support Customer Label (PR #136 by @chicco785)
- docker wf: support concurrent image builds (PR #121 by @chicco785)
- license, docker, golang, release notes workflows: support SBOM generation,
license compatibility check and vulnerability check (PR #116 by @chicco785)
Expand All @@ -22,6 +23,7 @@

### Bug Fixes

- Fix vulnerability-scan typo (PR #133 by @cosimomeli)
- golang workflow: fix changes check (PR #130 by @chicco785)
- Fix deployment workflow on PRs (PR #120 by @cosimomeli)

Expand All @@ -32,6 +34,8 @@

### Dependencies

- Bump DavidAnson/markdownlint-cli2-action from 16 to 17 (PR #134 by
@dependabot[bot])
- Bump mikepenz/release-changelog-builder-action from 4 to 5 (PR #132 by
@dependabot[bot])
- Bump reproducible-containers/buildkit-cache-dance from 3.1.1 to 3.1.2 (PR #129
Expand Down

0 comments on commit 8ccb4b7

Please sign in to comment.