Skip to content

Residual API 500s after query operand validation: json columns, raw-SQL DAOs, and unchecked handler assertions #662

Residual API 500s after query operand validation: json columns, raw-SQL DAOs, and unchecked handler assertions

Residual API 500s after query operand validation: json columns, raw-SQL DAOs, and unchecked handler assertions #662

Workflow file for this run

name: Welcome
on:
issues:
types: [opened]
pull_request_target:
types: [opened]
permissions:
issues: write
pull-requests: write
jobs:
welcome:
runs-on: ubuntu-26.04
steps:
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
ISSUE_MESSAGE: |
Thanks for opening your first issue!
A maintainer will review this soon. In the meantime:
- Check the [README](https://github.com/${{ github.repository }}/blob/main/README.md) for common solutions
- Search [existing issues](https://github.com/${{ github.repository }}/issues) for similar reports
If this is a question rather than a bug, consider opening a [Discussion](https://github.com/${{ github.repository }}/discussions) instead.
PR_MESSAGE: |
Thanks for your first pull request!
A maintainer will review this soon. Please ensure:
- [ ] Tests pass locally (`task test:quick`)
- [ ] Commits are signed off (`git commit -s`)
- [ ] PR title follows [Conventional Commits](https://www.conventionalcommits.org/)
Check our [Contributing Guide](https://github.com/${{ github.repository }}/blob/main/CONTRIBUTING.md) for details.
with:
script: |
const isPullRequest = context.eventName === "pull_request_target";
const issueNumber = isPullRequest ? context.payload.pull_request.number : context.payload.issue.number;
const author = isPullRequest ? context.payload.pull_request.user.login : context.payload.issue.user.login;
const type = isPullRequest ? "pr" : "issue";
const { data } = await github.rest.search.issuesAndPullRequests({
q: `repo:${context.repo.owner}/${context.repo.repo} author:${author} type:${type}`,
per_page: 2,
});
if (data.total_count !== 1) {
core.info(`${author} is not a first-time ${type} author`);
return;
}
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issueNumber,
body: isPullRequest ? process.env.PR_MESSAGE : process.env.ISSUE_MESSAGE,
});