Skip to content

Commit 2f047b2

Browse files
authored
Merge pull request #36018 from github/repo-sync
Repo sync
2 parents e81bb75 + 62fbf68 commit 2f047b2

File tree

52 files changed

+151
-959
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+151
-959
lines changed

.github/workflows/codeowners-content-systems.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/no-response.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
This PR has been automatically closed because there has been no response to
4747
to our request for more information from the original author. Please reach out
4848
if you have the information we requested, or open a [new issue](https://github.com/github/docs/issues/new/choose)
49-
to describing your changes. Then we can begin the review process.
49+
to describe your changes. Then we can begin the review process.
5050
5151
- name: Check out repo
5252
if: ${{ failure() }}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Reviewers - Content Systems
2+
3+
# **What it does**: Automatically add reviewers based on paths, but only for the docs-internal repo.
4+
# **Why we have it**: So we can have reviewers automatically without getting open source notifications.
5+
# **Who does it impact**: Docs team.
6+
7+
on:
8+
pull_request:
9+
paths:
10+
- 'contributing/content-*.md'
11+
- 'content/contributing/**.md'
12+
- .github/workflows/reviewers-content-systems.yml
13+
14+
permissions:
15+
contents: read
16+
pull-requests: write
17+
repository-projects: read
18+
19+
jobs:
20+
reviewers-content-systems:
21+
if: >-
22+
${{ github.repository == 'github/docs-internal' &&
23+
!github.event.pull_request.draft &&
24+
!contains(github.event.pull_request.labels.*.name, 'reviewers-content-systems') &&
25+
github.event.pull_request.head.ref != 'repo-sync' }}
26+
runs-on: ubuntu-latest
27+
env:
28+
PR: ${{ github.event.pull_request.html_url }}
29+
GH_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
30+
31+
steps:
32+
- name: Check out repo
33+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
34+
35+
- name: Add content systems as a reviewer
36+
run: |
37+
labels=$(gh pr view ${{ github.event.pull_request.number }} --json labels --jq '.labels[].name')
38+
if ! echo "$labels" | grep -q 'reviewers-content-systems'; then
39+
gh pr edit $PR --add-reviewer github/docs-content-systems
40+
gh pr edit $PR --add-label reviewers-content-systems
41+
fi
Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Add Dependabot Core Maintainers as Reviewers
1+
name: Reviewers - Dependabot
22

33
# **What it does**: Automatically add reviewers based on paths, for docs-internal and docs repos.
44
# **Why we have it**: So dependabot maintainers can be notified about relevant pull requests.
@@ -10,25 +10,33 @@ on:
1010
- 'data/reusable/dependabot/**'
1111
- 'content/code-security/dependabot/**'
1212
- 'content/rest/dependabot/**'
13+
- '.github/workflows/reviewers-dependabot.yml'
14+
15+
permissions:
16+
contents: read
17+
pull-requests: write
18+
repository-projects: read
1319

1420
jobs:
1521
add-reviewer:
16-
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
22+
if: >-
23+
${{ github.repository == 'github/docs-internal' &&
24+
!github.event.pull_request.draft &&
25+
!contains(github.event.pull_request.labels.*.name, 'reviewers-dependabot') &&
26+
github.event.pull_request.head.ref != 'repo-sync' }}
1727
runs-on: ubuntu-latest
28+
env:
29+
GH_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
30+
PR: ${{ github.event.pull_request.html_url }}
31+
1832
steps:
1933
- name: Check out repo
2034
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2135

2236
- name: Add Dependabot Core Maintainers as reviewers
23-
env:
24-
GH_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
25-
PR: ${{ github.event.pull_request.html_url }}
2637
run: |
27-
has_reviewer=$(
28-
gh pr view $PR --json reviews |
29-
jq 'any(.reviews[]; select(length > 0))'
30-
)
31-
if ! $has_reviewer
32-
then
38+
labels=$(gh pr view ${{ github.event.pull_request.number }} --json labels --jq '.labels[].name')
39+
if ! echo "$labels" | grep -q 'reviewers-dependabot'; then
3340
gh pr edit $PR --add-reviewer github/dependabot-updates-reviewers
41+
gh pr edit $PR --add-label reviewers-dependabot
3442
fi

.github/workflows/codeowners-docs-engineering.yml renamed to .github/workflows/reviewers-docs-engineering.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Codeowners - Docs Engineering
1+
name: Reviewers - Docs Engineering
22

33
# **What it does**: Automatically add reviewers based on paths, but only for the docs-internal repo.
44
# And sets the 'engineering' label on the PR. It also edits the PR body to add a template
@@ -25,35 +25,33 @@ on:
2525
- '.github/**'
2626
- '**Dockerfile'
2727
- 'package*.json'
28-
- .github/workflows/codeowners-docs-engineering.yml
28+
- .github/workflows/reviewers-docs-engineering.yml
29+
30+
permissions:
31+
contents: read
32+
pull-requests: write
33+
repository-projects: read
2934

3035
jobs:
3136
codeowners-docs-engineering:
3237
if: >-
3338
${{ github.repository == 'github/docs-internal' &&
3439
!github.event.pull_request.draft &&
35-
!contains(github.event.pull_request.labels.*.name, 'engineering') &&
40+
!contains(github.event.pull_request.labels.*.name, 'reviewers-docs-engineering') &&
3641
github.event.pull_request.head.ref != 'repo-sync' }}
3742
runs-on: ubuntu-latest
3843
env:
39-
GH_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
4044
PR: ${{ github.event.pull_request.html_url }}
45+
GH_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
4146

4247
steps:
4348
- name: Check out repo
4449
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
4550

46-
- name: Label as engineering
47-
run: gh pr edit $PR --add-label engineering
48-
49-
- name: Add Docs Engineering as a reviewer
51+
- name: Add docs engineering as a reviewer
5052
run: |
51-
needs_review=$(
52-
gh pr view $PR --json reviews |
53-
jq '.reviews |
54-
length == 0 or all(.author.login == "${{github.event.pull_request.user.login}}")'
55-
)
56-
if $needs_review
57-
then
53+
labels=$(gh pr view ${{ github.event.pull_request.number }} --json labels --jq '.labels[].name')
54+
if ! echo "$labels" | grep -q 'reviewers-docs-engineering'; then
5855
gh pr edit $PR --add-reviewer github/docs-engineering
56+
gh pr edit $PR --add-label reviewers-docs-engineering
5957
fi
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Codeowners - Legal
1+
name: Reviewers - Legal
22

33
# **What it does**: Enforces reviews of Responsible AI (RAI) content by the GitHub legal team. Because RAI content can live anywhere in the content directory, it becomes a maintenance problem to use CODEOWNERS to enforce review on each article.
44
# **Why we have it**: RAI content must be reviewed by the GitHub legal team.
@@ -15,7 +15,7 @@ on:
1515
- synchronize
1616
paths:
1717
- 'content/**'
18-
- .github/workflows/codeowners-legal.yml
18+
- .github/workflows/reviewers-legal.yml
1919

2020
permissions:
2121
contents: read
@@ -27,6 +27,7 @@ jobs:
2727
if: >-
2828
${{ github.repository == 'github/docs-internal' &&
2929
!github.event.pull_request.draft &&
30+
!contains(github.event.pull_request.labels.*.name, 'reviewers-legal') &&
3031
github.event.pull_request.head.ref != 'repo-sync' }}
3132
runs-on: ubuntu-latest
3233
steps:
@@ -62,7 +63,7 @@ jobs:
6263
- name: Check for reviewers-legal label, add if missing and request review
6364
if: steps.checkContentType.outputs.containsContentType == 'true'
6465
env:
65-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+
GH_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
6667
PR: ${{ github.event.pull_request.html_url }}
6768
run: |
6869
labels=$(gh pr view ${{ github.event.pull_request.number }} --json labels --jq '.labels[].name')

content/issues/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ children:
3737
- /organizing-your-work-with-project-boards
3838
- /using-labels-and-milestones-to-track-work
3939
- /guides
40-
product_video: '{% ifversion projects-v2 %}https://www.youtube-nocookie.com/embed/yFQ-p6wMS_Y{% endif %}'
40+
product_video: 'https://www.youtube-nocookie.com/embed/yFQ-p6wMS_Y'
4141
product_video_transcript: /video-transcripts/transcript-using-projects-for-feature-planning
4242
redirect_from:
4343
- /github/managing-your-work-on-github/managing-your-work-with-issues-and-pull-requests

content/issues/organizing-your-work-with-project-boards/managing-project-boards/creating-a-project-board.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ You can also configure workflow automations to keep your {% data variables.proje
3737
{% data reusables.profile.access_profile %}
3838
1. On the top of your profile page, in the main navigation, click **{% octicon "project" aria-hidden="true" %} Projects**.
3939

40-
![Screenshot showing profile tabs. The 'Projects' tab is highlighted with an orange outline.](/assets/images/help/projects-v2/tab-projects.png){% ifversion projects-v2 %}
40+
![Screenshot showing profile tabs. The 'Projects' tab is highlighted with an orange outline.](/assets/images/help/projects-v2/tab-projects.png)
4141

42-
1. Click **Projects (classic)**{% endif %}
42+
1. Click **Projects (classic)**.
4343
{% data reusables.project-management.click-new-project %}
4444
{% data reusables.project-management.create-project-name-description %}
4545
{% data reusables.project-management.choose-template %}
@@ -64,8 +64,8 @@ You can also configure workflow automations to keep your {% data variables.proje
6464
6565
{% data reusables.profile.access_org %}
6666
{% data reusables.user-settings.access_org %}
67-
{% data reusables.organizations.organization-wide-project %}{% ifversion projects-v2 %}
68-
1. Click **Projects (classic)**{% endif %}
67+
{% data reusables.organizations.organization-wide-project %}
68+
1. Click **Projects (classic)**.
6969
{% data reusables.project-management.click-new-project %}
7070
{% data reusables.project-management.create-project-name-description %}
7171
{% data reusables.project-management.choose-template %}
@@ -88,8 +88,8 @@ You can also configure workflow automations to keep your {% data variables.proje
8888
{% data reusables.projects.classic-project-creation %}
8989

9090
{% data reusables.repositories.navigate-to-repo %}
91-
1. Under your repository name, click **{% octicon "project" aria-hidden="true" %} Projects**.{% ifversion projects-v2 %}
92-
1. Click **Projects (classic)**{% endif %}
91+
1. Under your repository name, click **{% octicon "project" aria-hidden="true" %} Projects**.
92+
1. Click **Projects (classic)**.
9393
{% data reusables.project-management.click-new-project %}
9494
{% data reusables.project-management.create-project-name-description %}
9595
{% data reusables.project-management.choose-template %}

content/issues/planning-and-tracking-with-projects/managing-your-project/managing-access-to-your-projects.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,8 @@ You can also configure the default base permission at the organization-level for
4646

4747
You can also add teams, external collaborators, and individual organization members as collaborators for an organization-level project. For more information, see [AUTOTITLE](/organizations/organizing-members-into-teams/about-teams).
4848

49-
{% ifversion projects-v2-add-to-team %}
50-
5149
If you grant a team read permissions or greater for a project, the project is also displayed on the team's projects page. You can also add projects to a team on the team's projects page. For more information, see [AUTOTITLE](/issues/planning-and-tracking-with-projects/managing-your-project/adding-your-project-to-a-team).
5250

53-
{% endif %}
54-
5551
You can only invite an individual user to collaborate on your organization-level project if they are already a member of the organization or an outside collaborator on at least one repository in the organization.
5652

5753
{% data reusables.projects.project-settings %}

content/issues/tracking-your-work-with-issues/configuring-issues/planning-and-tracking-work-for-your-team-or-project.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,7 @@ Below is an example of a `front-end` label that we created and added to the issu
155155

156156
![Screenshot of an issue called "Front-end work for Project Octocat." In the right sidebar, in the "Labels" section, the "front-end" label is applied.](/assets/images/help/issues/quickstart-add-label-to-issue.png)
157157

158-
## Adding issues to a {% data variables.projects.projects_v1_board %}
159-
160-
{% ifversion projects-v2 %}
158+
## Adding issues to a {% data variables.projects.projects_v2 %}
161159

162160
You can use {% data variables.projects.projects_v2 %} on {% data variables.product.prodname_dotcom %} to plan and track the work for your team. A project is a customizable spreadsheet that integrates with your issues and pull requests on {% data variables.product.prodname_dotcom %}, automatically staying up-to-date with the information on {% data variables.product.prodname_dotcom %}. You can customize the layout by filtering, sorting, and grouping your issues and PRs. To get started with projects, see [AUTOTITLE](/issues/planning-and-tracking-with-projects/learning-about-projects/quickstart-for-projects).
163161

@@ -171,10 +169,9 @@ We can also view the same project as a board.
171169

172170
![Screenshot of the board view of a project, with issues organized into columns for "No Status," "Todo," "In Progress," and "Done."](/assets/images/help/issues/quickstart-projects-board-view.png)
173171

174-
{% endif %}
175172
{% ifversion projects-v1 %}
176173

177-
You can {% ifversion projects-v2 %} also use the existing{% else %} use{% endif %} {% data variables.product.prodname_projects_v1 %} on {% data variables.product.prodname_dotcom %} to plan and track your or your team's work. {% data variables.projects.projects_v1_boards_caps %} are made up of issues, pull requests, and notes that are categorized as cards in columns of your choosing. You can create {% data variables.projects.projects_v1_boards %} for feature work, high-level roadmaps, or even release checklists. For more information, see [AUTOTITLE](/issues/organizing-your-work-with-project-boards/managing-project-boards/about-project-boards).
174+
You can also use the existing {% data variables.product.prodname_projects_v1 %} on {% data variables.product.prodname_dotcom %} to plan and track your or your team's work. {% data variables.projects.projects_v1_boards_caps %} are made up of issues, pull requests, and notes that are categorized as cards in columns of your choosing. You can create {% data variables.projects.projects_v1_boards %} for feature work, high-level roadmaps, or even release checklists. For more information, see [AUTOTITLE](/issues/organizing-your-work-with-project-boards/managing-project-boards/about-project-boards).
178175

179176
### {% data variables.projects.projects_v1_board_caps %} example
180177

@@ -193,6 +190,6 @@ You have now learned about the tools {% data variables.product.prodname_dotcom %
193190
* [AUTOTITLE](/communities/using-templates-to-encourage-useful-issues-and-pull-requests/about-issue-and-pull-request-templates) for learning more about issue templates
194191
* [AUTOTITLE](/issues/using-labels-and-milestones-to-track-work/managing-labels) for learning how to create, edit and delete labels
195192
* [AUTOTITLE](/get-started/writing-on-github/working-with-advanced-formatting/about-task-lists) for learning more about task lists
196-
{% ifversion projects-v2 %} - [AUTOTITLE](/issues/planning-and-tracking-with-projects/learning-about-projects/about-projects) for learning more about projects
197-
* [AUTOTITLE](/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/changing-the-layout-of-a-view) for learning how to customize views for projects{% endif %}
193+
* [AUTOTITLE](/issues/planning-and-tracking-with-projects/learning-about-projects/about-projects) for learning more about projects
194+
* [AUTOTITLE](/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/changing-the-layout-of-a-view) for learning how to customize views for projects
198195
{% ifversion projects-v1 %}- [AUTOTITLE](/issues/organizing-your-work-with-project-boards/managing-project-boards/about-project-boards) for learning how to manage {% data variables.projects.projects_v1_boards %}{% endif %}

0 commit comments

Comments
 (0)