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
// If the PR creator is the expected account, stop now
25
+
if (prCreator === 'Octomerger') {
26
+
return
27
+
}
28
+
29
+
try {
30
+
await github.teams.getMembershipForUserInOrg({
31
+
org: 'github',
32
+
team_slug: 'employees',
33
+
username: prCreator
34
+
})
35
+
36
+
// If the PR creator is a GitHub employee, stop now
37
+
return
38
+
} catch (err) {
39
+
// An error will be thrown if the user is not a GitHub employee.
40
+
// That said, we still want to proceed anyway!
41
+
}
42
+
43
+
const pr = context.payload.pull_request
44
+
const { owner, repo } = context.repo
45
+
46
+
// Close the PR and add the invalid label
47
+
await github.issues.update({
48
+
owner: owner,
49
+
repo: repo,
50
+
issue_number: pr.number,
51
+
labels: ['invalid'],
52
+
state: 'closed'
53
+
})
54
+
55
+
// Comment on the PR
56
+
await github.issues.createComment({
57
+
owner: owner,
58
+
repo: repo,
59
+
issue_number: pr.number,
60
+
body: "Please leave this `repo-sync` branch to the robots!\n\nI'm going to close this pull request now, but feel free to open a new issue or ask any questions in [discussions](https://github.com/github/docs/discussions)!"
stale-pr-message: 'This PR is stale because it has been open 7 days with no activity and will be automatically closed in 3 days. To keep this PR open, update the PR by adding a comment or pushing a commit.'
16
-
days-before-stale: 7
15
+
stale-pr-message: 'This PR is stale because it has been open 21 days with no activity and will be automatically closed in 10 days. To keep this PR open, update the PR by adding a comment or pushing a commit.'
Copy file name to clipboardExpand all lines: content/admin/configuration/configuring-data-encryption-for-your-enterprise.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ For encryption in transit, {% data variables.product.product_name %} uses Transp
20
20
21
21
The key that you provide is stored in a hardware security module (HSM) in a key vault that {% data variables.product.company_short %} manages.
22
22
23
-
To configure your encryption key, use the REST API. There are a number of API endpoints, for example to check the status of encryption, update your encryption key, and delete your encryption key. Note that deleting your key will freeze your enterprise. For more information about the API endpoints, see "[Encryption at rest](/rest/reference/enterprise-admin#encryption-at-rest)" in the REST API documentation.
23
+
To configure your encryption key, use the REST API. There are a number of API endpoints, for example to check the status of encryption, update your encryption key, and disable your encryption key. Note that disabling your key will freeze your enterprise. For more information about the API endpoints, see "[Encryption at rest](/rest/reference/enterprise-admin#encryption-at-rest)" in the REST API documentation.
24
24
25
25
### Adding or updating an encryption key
26
26
@@ -48,24 +48,24 @@ Your 2048 bit RSA private key should be in PEM format, for example in a file cal
48
48
curl -X GET http(s)://<em>hostname</em>/api/v3/enterprise/encryption/status/<em>request_id</em>
49
49
```
50
50
51
-
### Deleting your encryption key
51
+
### Disabling your encryption key
52
52
53
-
To freeze your enterprise, for example in the case of a breach, you can disable encryption at rest by deleting your encryption key.
53
+
To freeze your enterprise, for example in the case of a breach, you can disable encryption at rest by marking your encryption key as disabled.
54
54
55
-
To unfreeze your enterprise after you've deleted your encryption key, contact support. For more information, see "[About {% data variables.contact.enterprise_support %}](/admin/enterprise-support/about-github-enterprise-support)."
56
-
57
-
1. To delete your key and disable encryption at rest, use the `DELETE /enterprise/encryption` endpoint.
55
+
1. To disable your key and encryption at rest, use the `DELETE /enterprise/encryption` endpoint. This operation does not delete the key permanently.
2. Optionally, check the status of the delete operation.
61
+
2. Optionally, check the status of the delete operation. It takes approximately ten minutes to disable encryption at rest.
64
62
65
63
```shell
66
64
curl -X GET http(s)://<em>hostname</em>/api/v3/enterprise/encryption/status/<em>request_id</em>
67
65
```
68
66
67
+
To unfreeze your enterprise after you've disabled your encryption key, contact support. For more information, see "[About {% data variables.contact.enterprise_support %}](/admin/enterprise-support/about-github-enterprise-support)."
68
+
69
69
### Further reading
70
70
71
71
- "[Encryption at rest](/rest/reference/enterprise-admin#encryption-at-rest)" in the REST API documentation
Copy file name to clipboardExpand all lines: content/desktop/contributing-and-collaborating-using-github-desktop/managing-tags.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ versions:
9
9
10
10
### About tags in {% data variables.product.prodname_desktop %}
11
11
12
-
{% data variables.product.prodname_desktop %} allows you to create annotated tags. You can use a tag to mark an individual point in your repository's history, including a version number for a release. For more information about release tags, see "[About releases](/github/administering-a-repository/about-releases)."
12
+
{% data variables.product.prodname_desktop %} allows you to create annotated tags. Tags are associated with commits, so you can use a tag to mark an individual point in your repository's history, including a version number for a release. For more information about release tags, see "[About releases](/github/administering-a-repository/about-releases)."
13
13
14
14
{% data reusables.desktop.tags-push-with-commits %}
15
15
@@ -45,3 +45,7 @@ versions:
45
45
46
46
{% data reusables.desktop.history-tab %}
47
47
{% data reusables.desktop.delete-tag %}
48
+
49
+
### Further reading
50
+
51
+
- "[Git Basics - Tagging](https://git-scm.com/book/en/v2/Git-Basics-Tagging)" in the Git documentation
0 commit comments