Skip to content

Add issue and PR templates#515

Merged
grohith327 merged 2 commits into
mainfrom
add-guidelines
Jul 4, 2026
Merged

Add issue and PR templates#515
grohith327 merged 2 commits into
mainfrom
add-guidelines

Conversation

@grohith327

Copy link
Copy Markdown
Collaborator

Description

Add issue and PR templates

Type of Change

  • 🐞 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 🧹 Chore
  • 📝 Documentation update

@grohith327

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e55f592c42

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread .github/policy/enforce-pr-policy.mjs Outdated
await addLabels(context, pr.number, labelsToAdd);
await upsertIssueComment(context, pr.number, MARKER, failureBody(result));

const expired = !pr.draft && hoursSince(pr.created_at) >= HOURS_BEFORE_CLOSE;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Base auto-close window on warning time

In the scheduled/manual scan from the new PR policy workflow, any open PR created more than 48 hours ago that does not already match the new template satisfies this condition on the first run and is closed immediately, before the bot has provided the promised correction window. The same applies to older drafts when they are marked ready; use the timestamp of the first warning/label instead of created_at so only PRs that stayed incomplete for 48 hours after notification are closed.

Useful? React with 👍 / 👎.

Comment thread .github/policy/github-policy.mjs Outdated
/issue number if applicable/i,
/what you expected to happen/i,
/what actually happened/i,
/steps to reproduce/i,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Anchor placeholder checks to placeholder-only text

Because hasNonPlaceholderContent rejects a field when any placeholder regex matches anywhere in the section, a valid bug report that starts the field with a normal prefix like Steps to reproduce: followed by real numbered steps is treated as missing reproduction details. That leaves otherwise complete issues labeled needs reproduction and eligible for the 14-day stale close, so these placeholder patterns should only match fields that are still just the placeholder text.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6191834498

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +148 to +149
if (event.action !== "opened" && !warningComment) {
return;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Revalidate PRs after clean opens

In .github/workflows/pr-policy.yml I checked that this job runs on edited and synchronize; when a PR first opens with a valid template, there is no marker comment, so this guard returns success on a later body edit that deletes required sections or a push that adds visual files without screenshots. That lets the required check pass instead of enforcing the current PR state; use the warning only to compute the close window, not to skip validation.

Useful? React with 👍 / 👎.

Comment on lines +111 to +112
const warningComment = await existingBugWarningComment(context, issue.number);
if (event.action !== "opened" && !warningComment) return;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Revalidate bug issues after clean opens

In .github/workflows/issue-intake.yml the job runs on edited and reopened; if a bug report was valid when opened, no warning comment exists, so a later edit removing reproduction fields returns before validation and never applies needs reproduction. This leaves incomplete bug reports outside the stale-close path; revalidate bug issues on every issue event and use the existing comment only for comment updates.

Useful? React with 👍 / 👎.

@grohith327 grohith327 merged commit fe12dee into main Jul 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant