Skip to content

Commit 93020f1

Browse files
authored
Merge branch 'main' into patch-1
2 parents 659b2ed + 95753d5 commit 93020f1

140 files changed

Lines changed: 1175 additions & 255 deletions

File tree

Some content is hidden

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

.github/workflows/first-responder-docs-content.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ jobs:
3333
const repoName = context.payload.repository.name
3434
const ownerName = context.payload.repository.owner.login
3535
const issueNumber = (context.eventName === "issues") ? context.payload.issue.number : context.payload.number
36-
const labels = (context.eventName === "issues") ? context.payload.issue.labels : context.payload.pull_request.labels
37-
const isOpenApiBotLabel = labels.filter(label => label.name === 'github-openapi-bot').length
3836
const updatedIssueInformation = await github.issues.get({
3937
owner: ownerName,
4038
repo: repoName,
@@ -43,13 +41,10 @@ jobs:
4341
const teamMembers = await github.request(
4442
`/orgs/github/teams/docs/members?per_page=100`
4543
)
46-
const logins = teamMembers.data.map(member => member.login)
44+
const teamLogins = teamMembers.data.map(member => member.login)
4745
// ignore PRs opened by docs bot accounts
48-
logins.push('Octomerger', 'octoglot')
49-
// For now, we do want the OpenAPI PRs to show up on the FR
50-
// project board because they aren't yet automerged.
51-
if (!isOpenApiBotLabel) logins.push('docubot')
52-
if (logins.some(login => login === updatedIssueInformation.data.user.login)) {
46+
teamLogins.push('Octomerger', 'octoglot')
47+
if (teamLogins.some(login => login === updatedIssueInformation.data.user.login)) {
5348
console.log(`This issue or pull request was authored by a member of the github/docs team.`)
5449
return 'true'
5550
}
Binary file not shown.
-189 Bytes
68.9 KB
44.6 KB
-3.77 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
-26.1 KB
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)