-
Notifications
You must be signed in to change notification settings - Fork 3
feat: Add YScope PR template and PR title check workflow. #6
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| <!-- markdownlint-disable MD012 --> | ||
|
|
||
| <!-- | ||
| Set the PR title to a meaningful commit message that: | ||
|
|
||
| * is in imperative form. | ||
| * follows the Conventional Commits specification (https://www.conventionalcommits.org). | ||
| * See https://github.com/commitizen/conventional-commit-types/blob/master/index.json for possible | ||
| types. | ||
|
|
||
| Example: | ||
|
|
||
| fix: Don't add implicit wildcards ('*') at the beginning and the end of a query (fixes #390). | ||
| --> | ||
|
|
||
| # Description | ||
|
|
||
| <!-- Describe what this request will change/fix and provide any details necessary for reviewers. --> | ||
|
|
||
|
|
||
|
|
||
| # Checklist | ||
|
|
||
| <!-- Ensure each item below is satisfied and indicate so by inserting an `x` within each `[ ]`. --> | ||
|
|
||
| * [ ] The PR satisfies the [contribution guidelines][yscope-contrib-guidelines]. | ||
| * [ ] This is a breaking change and that has been indicated in the PR title, OR this isn't a | ||
| breaking change. | ||
| * [ ] Necessary docs have been updated, OR no docs need to be updated. | ||
|
|
||
|
Comment on lines
+22
to
+30
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Enhance the checklist 🤖 Prompt for AI Agents |
||
| # Validation performed | ||
|
|
||
| <!-- Describe what tests and validation you performed on the change. --> | ||
|
|
||
|
|
||
|
|
||
| [yscope-contrib-guidelines]: https://docs.yscope.com/dev-guide/contrib-guides-overview.html | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| name: "pr-title-checks" | ||
|
|
||
| on: | ||
| pull_request_target: | ||
| # NOTE: Workflows triggered by this event give the workflow access to secrets and grant the | ||
| # `GITHUB_TOKEN` read/write repository access by default. So we need to ensure: | ||
| # - This workflow doesn't inadvertently check out, build, or execute untrusted code from the | ||
| # pull request triggered by this event. | ||
| # - Each job has `permissions` set to only those necessary. | ||
| types: ["edited", "opened", "reopened"] | ||
| branches: ["presto-0.293-clp-connector"] | ||
|
|
||
| permissions: {} | ||
|
|
||
| concurrency: | ||
| group: "${{github.workflow}}-${{github.ref}}" | ||
|
|
||
| # Cancel in-progress jobs for efficiency | ||
| cancel-in-progress: true | ||
|
|
||
|
Comment on lines
+15
to
+20
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Review concurrency grouping 🤖 Prompt for AI Agents |
||
| jobs: | ||
| conventional-commits: | ||
| permissions: | ||
| # For amannn/action-semantic-pull-request | ||
| pull-requests: "read" | ||
| runs-on: "ubuntu-latest" | ||
| steps: | ||
| - uses: "amannn/action-semantic-pull-request@v5" | ||
| env: | ||
| GITHUB_TOKEN: "${{secrets.GITHUB_TOKEN}}" | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹 Nitpick (assertive)
Disable MD041 for markdownlint
Since the file begins with an HTML comment before the H1 heading, you may want to disable MD041 (
first-line-heading) to prevent lint errors.🤖 Prompt for AI Agents