diff --git a/.github/workflows/pr-compliance.yml b/.github/workflows/pr-compliance.yml new file mode 100644 index 00000000..b30fe4e2 --- /dev/null +++ b/.github/workflows/pr-compliance.yml @@ -0,0 +1,27 @@ +name: PR Compliance + +on: + pull_request_target: + branches: ['main'] + types: [opened, reopened, ready_for_review, synchronize] + +jobs: + remind: + name: Changelog + runs-on: ubuntu-latest + if: ${{ github.actor != 'dependabot' && github.actor != 'dependabot[bot]' && github.actor != 'github-actions' && github.actor != 'github-actions[bot]' && github.event.pull_request.draft == false }} + steps: + - uses: actions/checkout@v4 + - name: Changelog Reminder + uses: peterjgrainger/action-changelog-reminder@v1.3.0 + with: + changelog_regex: 'CHANGELOG.md' + customPrMessage: | + 👋 Hey there! It looks like the changelog might need an update. + + Please take a moment to edit the [`CHANGELOG.md`](/qBraid/pyqasm/blob/main/CHANGELOG.md) with: + - A brief, one-to-two sentence summary of your changes. + - A link back to this PR for reference. + - (Optional) A small working example if you've added new features. + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index bb0c54c4..e00232ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ Types of changes: ### Added - A new discussion template for issues in pyqasm ([#213](https://github.com/qBraid/pyqasm/pull/213)) +- A github workflow for validating `CHANGELOG` updates in a PR ([#214](https://github.com/qBraid/pyqasm/pull/214)) ### Improved / Modified