mirror of
https://github.com/prometheus/prometheus.git
synced 2026-03-18 00:26:04 -04:00
* feat: add a way to add release notes from the PR make the release note block part of .github/PULL_REQUEST_TEMPLATE.md (inspired from k8s') A CI check would check the input. Signed-off-by: machine424 <ayoubmrini424@gmail.com> * imp Signed-off-by: machine424 <ayoubmrini424@gmail.com> * suggestions Signed-off-by: machine424 <ayoubmrini424@gmail.com> --------- Signed-off-by: machine424 <ayoubmrini424@gmail.com>
23 lines
640 B
YAML
23 lines
640 B
YAML
name: 'Check release notes'
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- reopened
|
|
- edited
|
|
- synchronize
|
|
permissions:
|
|
contents: read
|
|
pull-requests: read
|
|
|
|
jobs:
|
|
check_release_notes:
|
|
name: check
|
|
runs-on: ubuntu-latest
|
|
if: github.repository_owner == 'prometheus' || github.repository_owner == 'prometheus-community' # Don't run this workflow on forks.
|
|
steps:
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
- env:
|
|
PR_DESCRIPTION: ${{ github.event.pull_request.body }}
|
|
run: |
|
|
echo "$PR_DESCRIPTION" | ./scripts/check_release_notes.sh
|