Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ body:
placeholder: Reproduction
validations:
required: true
- type: textarea
id: context
attributes:
label: Context
description: What were you working on when you run into this issue? A little bit of context helps us understand the impact and prioritize. A link to the project is great if you have one, not required.
placeholder: "Working on X [link], run into this issue when ..."
Comment on lines +41 to +44

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is a very nice addition!

- type: textarea
id: logs
attributes:
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ A clear and concise description of what you want to happen.
A clear and concise description of any alternative solutions or features you've considered.

**Additional context.**
Add any other context or screenshots about the feature request here.
Add any other context or screenshots about the feature request here. For example, if there is a project you are working on that would benefit from this feature, describe it in a sentence or two; a link would be greatly appreciated.
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Fixes # (issue)
[documentation guidelines](https://github.com/huggingface/diffusers/tree/main/docs), and
[here are tips on formatting docstrings](https://github.com/huggingface/diffusers/tree/main/docs#writing-source-documentation).
- [ ] Did you write any new necessary tests?
- [ ] Are you the author (or part of the team) of the model/pipeline (only applicable for model/pipeline related PRs)?
- [ ] Are you the author (or part of the team we work with) of the model/pipeline this PR relates to?


## Who can review?
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/pr_labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:

# fixes-issue
- name: Check for linked closing issues
# An issue the PR author opened after the PR does not count as linked.
if: ${{ !cancelled() }}
run: |
OWNER="${REPO%/*}"
Expand All @@ -62,13 +63,18 @@ jobs:
query($owner: String!, $name: String!, $number: Int!) {
repository(owner: $owner, name: $name) {
pullRequest(number: $number) {
closingIssuesReferences(first: 1) {
totalCount
createdAt
author { login }
closingIssuesReferences(first: 50) {
nodes { createdAt author { login } }
}
}
}
}' \
--jq '.data.repository.pullRequest.closingIssuesReferences.totalCount')
--jq '.data.repository.pullRequest as $pr
| [$pr.closingIssuesReferences.nodes[]
| select(.author.login != $pr.author.login or .createdAt < $pr.createdAt)]
| length')
HAS_LABEL=$(gh api "repos/${REPO}/issues/${PR_NUMBER}/labels" --jq 'any(.[]; .name == "fixes-issue")')
if [ "${COUNT:-0}" -gt 0 ]; then
if [ "$HAS_LABEL" != "true" ]; then
Expand Down
Loading
Loading