Skip to content

Pr autolabel pr template#162

Open
ARPANPATRA111 wants to merge 2 commits into
Vaibhav-kesarwani:mainfrom
ARPANPATRA111:PR-autolabel-pr-template
Open

Pr autolabel pr template#162
ARPANPATRA111 wants to merge 2 commits into
Vaibhav-kesarwani:mainfrom
ARPANPATRA111:PR-autolabel-pr-template

Conversation

@ARPANPATRA111

Copy link
Copy Markdown
Contributor
  • added .github/PULL_REQUEST_TEMPLATE.md so contributors must fill a structured PR template with linked issues, summary, testing steps, screenshots, and ai disclosure.
  • added .github/workflows/validate-pr-template.yml which checks if PR is done right or not. (according to the PR template)
  • added sync-pr-issue-labels.yml the label-sync logic so it reads every closing issue reference in the PR and copies the union of all issue labels to the PR
  • added cleanup logic so every label is removed when a PR is closed without being merged

Screenshots or recordings

github com_ARPANPATRA111_GSSOC_100-reactjs-projects_pull_18 (1)

what will this workflow do ?

  1. It checks whether contributors actually followed the PR template.
  2. It copies all labels from every linked closing issue to the PR.
  3. It removes all labels from a PR if that PR is closed without merge.

Known limitations

  • if issue labels change after the PR has already been labelled, the PR will not automatically resync until the PR is edited or another tracked PR event happens
  • if linked issues are changed later, previously synced labels are not automatically removed unless the PR is closed without merge
  • if maintainers use issue labels that they do not want copied to PRs, this workflow will still copy them because it now mirrors every issue label

Closes #76

@vercel

vercel Bot commented May 29, 2026

Copy link
Copy Markdown

@ARPANPATRA111 is attempting to deploy a commit to the vaibhav's projects Team on Vercel.

A member of the Team first needs to authorize it.

@ARPANPATRA111 ARPANPATRA111 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@Vaibhav-kesarwani Done with #76👍

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.

[Feature]: Automate label assigning from issues to PR

1 participant