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
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Things you may want to add to your profile README include:

To create your profile README, see [AUTOTITLE](/account-and-profile/setting-up-and-managing-your-github-profile/customizing-your-profile/managing-your-profile-readme#adding-a-profile-readme).

> [!NOTE] Updating and customizing your profile README also helps demonstrate fluency using Markdown and HTML, which are useful skills for technical jobs. To show off your skills for potential employers, look for ways to use more advanced Markdown or HTML elements in your profile README.
> [!TIP] Look for ways to show off your coding skills within your profile README. For example, [@new2code](https://github.com/new2code) demonstrates knowledge of {% data variables.product.prodname_actions %} and Python scripts by automating daily updates to the [Countdown to GitHub Universe](https://github.com/new2code#countdown-to-github-universe) section.

## Step 3: Showcase your best projects

Expand Down Expand Up @@ -66,6 +66,8 @@ Then, copy the response into a `README.md` file in the root of the repository, e
* An example or demo of the project
* Instructions on testing your code

For example, {% data variables.product.prodname_copilot_short %} wrote the README for [@new2code](https://github.com/new2code)'s [hiking pace calculator](https://github.com/new2code/hiking-pace-calculator?tab=readme-ov-file#hiking-pace-calculator).

### Update the repository details

On the main page of the repository, to the right of "About," click {% octicon "gear" aria-label="Edit repository metadata" %}. Here, you can provide information that helps hiring managers quickly understand the project:
Expand All @@ -86,6 +88,10 @@ To give the best impression, you'll want to make sure that hiring managers can u

The easiest way to follow these practices is to use {% data variables.product.prodname_copilot_short %} with {% data variables.product.prodname_vscode_shortname %}. See [Set up Visual Studio Code with Copilot](https://code.visualstudio.com/docs/copilot/setup-simplified) in the {% data variables.product.prodname_vscode_shortname %} documentation.

For example, {% data variables.product.prodname_copilot_short %} wrote the comments in [`update_readme.py`](https://github.com/new2code/new2code/blob/main/update_readme.py), when [@new2code](https://github.com/new2code) used the following prompt:

> Help me write some helpful comments on this file so that it's easy to understand.

### Update your project's dependencies

If your project has any dependencies, you can showcase your understanding of security best practices by ensuring you're using the **latest versions**.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Similarly, you should not try to manually construct pagination queries. Instead,

## Use conditional requests if appropriate

Most endpoints return an `etag` header, and many endpoints return a `last-modified` header. You can use the values of these headers to make conditional requests. If the response has not changed, you will receive a `304 Not Modified` response. Making a conditional request does not count against your primary rate limit if a `304` response is returned.
Most endpoints return an `etag` header, and many endpoints return a `last-modified` header. You can use the values of these headers to make conditional `GET` requests. If the response has not changed, you will receive a `304 Not Modified` response. Making a conditional request does not count against your primary rate limit if a `304` response is returned.

For example, if a previous request returned an `etag` header value of `644b5b0155e6404a9cc4bd9d8b1ae730`, you can use the `if-none-match` header in a future request:

Expand All @@ -83,6 +83,8 @@ For example, if a previous request returned a `last-modified` header value of `W
curl {% data variables.product.rest_url %}/repos/github/docs --include --header 'if-modified-since: Wed, 25 Oct 2023 19:17:59 GMT'
```

Conditional requests for unsafe methods, such as `POST`, `PUT`, `PATCH`, and `DELETE` are not supported unless otherwise noted in the documentation for a specific endpoint.

## Do not ignore errors

You should not ignore repeated `4xx` and `5xx` error codes. Instead, you should ensure that you are correctly interacting with the API. For example, if an endpoint requests a string and you are passing it a numeric value, you will receive a validation error. Similarly, attempting to access an unauthorized or nonexistent endpoint will result in a `4xx` error.
Expand Down
10 changes: 10 additions & 0 deletions src/audit-logs/data/fpt/organization.json
Original file line number Diff line number Diff line change
Expand Up @@ -2834,6 +2834,16 @@
"description": "An invitation to join a repository was declined.",
"docs_reference_links": "N/A"
},
{
"action": "repository_limit.reached",
"description": "An organization has reached their repository limit.",
"docs_reference_links": "repositories/creating-and-managing-repositories/repository-limits"
},
{
"action": "repository_limit.warning",
"description": "An organization is approaching their repository limit.",
"docs_reference_links": "repositories/creating-and-managing-repositories/repository-limits"
},
{
"action": "repository_projects_change.clear",
"description": "The repository projects policy was removed for an organization, or all organizations in the enterprise Organization owners can now control their repository projects settings.",
Expand Down
10 changes: 10 additions & 0 deletions src/audit-logs/data/ghec/organization.json
Original file line number Diff line number Diff line change
Expand Up @@ -2834,6 +2834,16 @@
"description": "An invitation to join a repository was declined.",
"docs_reference_links": "N/A"
},
{
"action": "repository_limit.reached",
"description": "An organization has reached their repository limit.",
"docs_reference_links": "repositories/creating-and-managing-repositories/repository-limits"
},
{
"action": "repository_limit.warning",
"description": "An organization is approaching their repository limit.",
"docs_reference_links": "repositories/creating-and-managing-repositories/repository-limits"
},
{
"action": "repository_projects_change.clear",
"description": "The repository projects policy was removed for an organization, or all organizations in the enterprise Organization owners can now control their repository projects settings.",
Expand Down
2 changes: 1 addition & 1 deletion src/audit-logs/lib/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"apiOnlyEvents": "This event is not available in the web interface, only via the REST API, audit log streaming, or JSON/CSV exports.",
"apiRequestEvent": "This event is only available via audit log streaming."
},
"sha": "b170d9ae0c6b6318ea724612fb95e12d7c154cf9"
"sha": "e49cd93fda003f6fa50b7e3611dc97dfb5444391"
}
2 changes: 1 addition & 1 deletion src/github-apps/lib/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@
"2022-11-28"
]
},
"sha": "8474aa52ebc657dd2ac31b5ac18283a5708c5a68"
"sha": "e40e7bf1e6c9db6c52a35b4675f1c8248c35643a"
}
Loading