You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2853a7b
Browse filesBrowse the repository at this point in the historyBrowse files
// Skip GitHub employees so legitimate internal reports stay open.
41
61
return
42
62
} catch (err) {
43
-
// The membership lookup throws for non-employees, so fall through to title checks.
44
-
if (titleWordCount >= titleWordCountMin && !titleHasUrl && !titleHasDollarSign) {
45
-
return
63
+
// Only a missing membership means non-employee; other failures must stop moderation.
64
+
if (err.status !== 404) {
65
+
throw err
46
66
}
47
67
}
48
68
49
-
await github.rest.issues.update({
50
-
owner: owner,
51
-
repo: repo,
52
-
issue_number: issue.number,
69
+
await github.rest.issues.addLabels({
70
+
...params,
53
71
labels: ['invalid'],
54
-
state: 'closed'
55
-
});
72
+
})
73
+
74
+
await github.rest.issues.update({
75
+
...params,
76
+
state: 'closed',
77
+
})
56
78
57
79
await github.rest.issues.createComment({
58
-
owner: owner,
59
-
repo: repo,
60
-
issue_number: issue.number,
61
-
body: `This issue may have been opened accidentally. I'm going to close it now, but feel free to open a new issue with a more descriptive title! Make sure not to include full URLs in your issue titles, and use paths instead.`
62
-
});
80
+
...params,
81
+
body: titleHasEmoji
82
+
? 'Closing because the title contains emoji. Please remove the emoji and open a new issue.'
83
+
: `This issue may have been opened accidentally. I'm going to close it now, but feel free to open a new issue with a more descriptive title! Make sure not to include full URLs in your issue titles, and use paths instead.`,
Copy file name to clipboardExpand all lines: content/account-and-profile/how-tos/contribution-settings/troubleshooting-missing-contributions.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,21 @@ category:
23
23
24
24
After making a commit that meets the requirements to count as a contribution, you may need to wait for up to 24 hours to see the contribution appear on your contributions graph. For more information, see [AUTOTITLE](/account-and-profile/how-tos/contribution-settings/viewing-commit-details-from-your-timeline).
25
25
26
+
## Contribution counts are stale after rewriting history
27
+
28
+
If you own an account and squash commits or force-push rewritten history, your profile may continue to count commits that are no longer in the repository's visible history. This can include contributions to private repositories. This is a stale-count issue, not a missing-contribution issue, so the other troubleshooting steps in this article do not apply.
29
+
30
+
{% ifversion ghes %}
31
+
If you use {% data variables.product.prodname_ghe_server %}, ask your site administrator to rebuild your contribution data. For more information, see [AUTOTITLE](/admin/managing-accounts-and-repositories/managing-users-in-your-enterprise/rebuilding-contributions-data).
32
+
{% else %}
33
+
If the counts remain incorrect, {% data variables.contact.github_support %} may be able to rebuild your contribution data, depending on the support options available to your account. For more information, see [AUTOTITLE](/support/learning-about-github-support/about-github-support).
34
+
{% endif %}
35
+
36
+
After a rebuild, allow up to 24 hours for your profile's contributions graph and activity summary to refresh. Then:
37
+
38
+
1. Recheck the affected dates.
39
+
1. If the counts are still incorrect, {% ifversion ghes %}contact your site administrator{% else %}follow up through the support options available to your account{% endif %}.
40
+
26
41
## Your local Git commit email isn't connected to your account
27
42
28
43
Commits must be made with an email address that is connected to your account on {% data variables.product.prodname_dotcom %}{% ifversion fpt or ghec %}, or the {% data variables.product.prodname_dotcom %}-provided `noreply` email address provided to you in your email settings,{% endif %} in order to appear on your contributions graph.{% ifversion fpt or ghec %} For more information about `noreply` email addresses, see [AUTOTITLE](/account-and-profile/reference/email-addresses-reference#your-noreply-email-address).{% endif %}
0 commit comments