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
3 changes: 3 additions & 0 deletions .github/actions/lib/action-context.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import { readFileSync } from 'fs'

// Parses the action event payload sets repo and owner to an object from runner environment
export function getActionContext() {
if (!process.env.GITHUB_EVENT_PATH) {
throw new Error('process.env.GITHUB_EVENT_PATH is not set')
}
const context = JSON.parse(readFileSync(process.env.GITHUB_EVENT_PATH, 'utf8'))
if (context.repository) {
context.owner = context.repository.owner.login
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-broken-links-github-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: Check Broken Docs Links in github/github
on:
workflow_dispatch:
schedule:
- cron: '20 13 * * 1' # run every Monday at 1:20PM UTC
- cron: '20 16 * * 1' # Run every Monday at 16:20 UTC / 8:20 PST

permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-review-collect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: Add docs-reviewers request to the docs-content review board
on:
workflow_dispatch:
schedule:
- cron: '50 */6 * * *'
- cron: '20 */6 * * *' # Run every 6 hours at 20 minutes after

permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/enterprise-dates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name: Enterprise date updater
on:
workflow_dispatch:
schedule:
- cron: '39 2 * * 2' # At 02:39 on Tuesday
- cron: '20 16 * * 2' # Run every Tuesday at 16:20 UTC / 8:20 PST

permissions:
contents: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/link-check-daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: 'Link Checker: Daily'
on:
workflow_dispatch:
schedule:
- cron: '40 19 * * *' # once a day at 19:40 UTC / 11:40 PST
- cron: '20 16 * * *' # Run every day at 16:20 UTC / 8:20 PST

permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/msft-create-translation-batch-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ name: Create translation Batch Pull Request (Microsoft)
on:
workflow_dispatch:
schedule:
- cron: '02 17 * * *' # Once a day at 17:02 UTC / 9:02 PST
- cron: '20 16 * * *' # Run every day at 16:20 UTC / 8:20 PST

permissions:
contents: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/needs-sme-stale-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Stale check for issues or PRs with "needs SME" label

on:
schedule:
- cron: '40 20 * * *' # Run each day at 20:40 UTC / 12:40 PST
- cron: '20 16 * * *' # Run each day at 16:20 UTC / 8:20 PST

permissions:
issues: write
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/no-response.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ on:
types: [created]

schedule:
# Schedule for five minutes after the hour every hour
- cron: '5 * * * *'
- cron: '20 * * * *' # Run each hour at 20 minutes past

permissions:
issues: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/open-enterprise-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: Open Enterprise release or deprecation issue
on:
workflow_dispatch:
schedule:
- cron: '49 14 * * *' # At 14:49 UTC daily
- cron: '20 16 * * *' # Run every day at 16:20 UTC / 8:20 PST

permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/orphaned-assets-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: 'Orphaned assets check'
on:
workflow_dispatch:
schedule:
- cron: '20 11 * * 1' # run every Monday at 11:20AM UTC
- cron: '20 16 * * 1' # Run every Monday at 16:20 UTC / 8:20 PST

permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/repo-sync-stalls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: Repo Sync Stalls
on:
workflow_dispatch:
schedule:
- cron: '32 */2 * * *' # At minute 32 past every 2nd hour.
- cron: '20 */2 * * *' # Run every 2nd hour at 20 minutes after

permissions:
pull-requests: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/repo-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ name: Repo Sync
on:
workflow_dispatch:
schedule:
- cron: '10,40 * * * *' # every 30 minutes
- cron: '20,50 * * * *' # Run every hour at 20 and 50 minutes after

permissions:
contents: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Stale

on:
schedule:
- cron: '40 16 * * *' # Run each day at 16:40 UTC / 8:40 PST
- cron: '20 16 * * *' # Run every day at 16:20 UTC / 8:20 PST

permissions:
issues: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sync-search-elasticsearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
required: false
default: ''
schedule:
- cron: '23 */4 * * *' # Run every 4 hours at 23 minutes past the hour
- cron: '20 */4 * * *' # Run every 4 hours at 20 minutes after

permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: Translations tests
on:
workflow_dispatch:
schedule:
- cron: '35 16 * * *' # Run once per day at 16:35 UTC / 9:35 PST
- cron: '20 16 * * *' # Run every day at 16:20 UTC / 9:20 PST

permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/triage-stale-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Public Repo Stale Check

on:
schedule:
- cron: '45 16 * * *' # Run each day at 16:45 UTC / 8:45 PST
- cron: '20 16 * * *' # Run every day at 16:20 UTC / 8:20 PST

permissions:
issues: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-graphql-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: Update GraphQL files
on:
workflow_dispatch:
schedule:
- cron: '20 16 * * *' # run every day at 16:20 UTC / 8:20 PST
- cron: '20 16 * * *' # Run every day at 16:20 UTC / 8:20 PST

permissions:
contents: write
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ topics:
| Automatically and securely package code into artifacts and containers | "[About packaging with {% data variables.product.prodname_actions %}](/actions/publishing-packages/about-packaging-with-github-actions)" |
| Automate your project management tasks | "[Using {% data variables.product.prodname_actions %} for project management](/actions/managing-issues-and-pull-requests/using-github-actions-for-project-management)" |

{% data variables.product.prodname_actions %} helps your team work faster at scale. When large repositories start using {% data variables.product.prodname_actions %}, teams merge significantly more pull requests per day, and the pull requests are merged significantly faster. For more information, see "[Writing and shipping code faster](https://octoverse.github.com/writing-code-faster/#scale-through-automation)" in the State of the Octoverse.
{% data variables.product.prodname_actions %} helps your team work faster at scale. When large repositories start using {% data variables.product.prodname_actions %}, teams merge significantly more pull requests per day, and the pull requests are merged significantly faster. For more information, see "[Writing and shipping code faster](https://octoverse.github.com/2021/writing-code-faster/#scale-through-automation)" in the State of the Octoverse.

You can create your own unique automations, or you can use and adapt workflows from our ecosystem of over 10,000 actions built by industry leaders and the open source community. {% ifversion ghec %}For more information, see "[Finding and customizing actions](/actions/learn-github-actions/finding-and-customizing-actions)."{% else %}You can restrict your developers to using actions that exist on {% data variables.location.product_location %}, or you can allow your developers to access actions on {% data variables.product.prodname_dotcom_the_website %}. For more information, see "[About using actions in your enterprise](/admin/github-actions/managing-access-to-actions-from-githubcom/about-using-actions-in-your-enterprise)."{% endif %}

Expand Down
6 changes: 3 additions & 3 deletions data/graphql/ghae/schema.docs-ghae.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -1741,7 +1741,7 @@ type BranchProtectionRule implements Node {
repository: Repository

"""
Whether someone other than the person who last pushed to the branch must approve this pull request
Whether the most recent push must be approved by someone other than the person who pushed it
"""
requireLastPushApproval: Boolean!

Expand Down Expand Up @@ -5644,7 +5644,7 @@ input CreateBranchProtectionRuleInput {
repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])

"""
Whether someone other than the person who last pushed to the branch must approve this pull request
Whether the most recent push must be approved by someone other than the person who pushed it
"""
requireLastPushApproval: Boolean

Expand Down Expand Up @@ -40287,7 +40287,7 @@ input UpdateBranchProtectionRuleInput {
pushActorIds: [ID!]

"""
Whether someone other than the person who last pushed to the branch must approve this pull request
Whether the most recent push must be approved by someone other than the person who pushed it
"""
requireLastPushApproval: Boolean

Expand Down
45 changes: 39 additions & 6 deletions data/graphql/ghec/schema.docs.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -2124,7 +2124,7 @@ type BranchProtectionRule implements Node {
repository: Repository

"""
Whether someone other than the person who last pushed to the branch must approve this pull request
Whether the most recent push must be approved by someone other than the person who pushed it
"""
requireLastPushApproval: Boolean!

Expand Down Expand Up @@ -6153,7 +6153,7 @@ input CreateBranchProtectionRuleInput {
repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])

"""
Whether someone other than the person who last pushed to the branch must approve this pull request
Whether the most recent push must be approved by someone other than the person who pushed it
"""
requireLastPushApproval: Boolean

Expand Down Expand Up @@ -26097,9 +26097,20 @@ type Organization implements Actor & MemberStatusable & Node & PackageOwner & Pr

"""
Filter activities returned to only those that occurred in the most recent
specified time period. Set to ALL to avoid filtering by when the activity occurred.
specified time period. Set to ALL to avoid filtering by when the activity
occurred. Will be ignored if `since` or `until` is given.
"""
period: SponsorsActivityPeriod = MONTH

"""
Filter activities to those that occurred on or after this time.
"""
since: DateTime

"""
Filter activities to those that occurred before this time.
"""
until: DateTime
): SponsorsActivityConnection!

"""
Expand Down Expand Up @@ -44884,9 +44895,20 @@ interface Sponsorable {

"""
Filter activities returned to only those that occurred in the most recent
specified time period. Set to ALL to avoid filtering by when the activity occurred.
specified time period. Set to ALL to avoid filtering by when the activity
occurred. Will be ignored if `since` or `until` is given.
"""
period: SponsorsActivityPeriod = MONTH

"""
Filter activities to those that occurred on or after this time.
"""
since: DateTime

"""
Filter activities to those that occurred before this time.
"""
until: DateTime
): SponsorsActivityConnection!

"""
Expand Down Expand Up @@ -49832,7 +49854,7 @@ input UpdateBranchProtectionRuleInput {
pushActorIds: [ID!]

"""
Whether someone other than the person who last pushed to the branch must approve this pull request
Whether the most recent push must be approved by someone other than the person who pushed it
"""
requireLastPushApproval: Boolean

Expand Down Expand Up @@ -53645,9 +53667,20 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectNextOwn

"""
Filter activities returned to only those that occurred in the most recent
specified time period. Set to ALL to avoid filtering by when the activity occurred.
specified time period. Set to ALL to avoid filtering by when the activity
occurred. Will be ignored if `since` or `until` is given.
"""
period: SponsorsActivityPeriod = MONTH

"""
Filter activities to those that occurred on or after this time.
"""
since: DateTime

"""
Filter activities to those that occurred before this time.
"""
until: DateTime
): SponsorsActivityConnection!

"""
Expand Down
45 changes: 39 additions & 6 deletions data/graphql/schema.docs.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -2124,7 +2124,7 @@ type BranchProtectionRule implements Node {
repository: Repository

"""
Whether someone other than the person who last pushed to the branch must approve this pull request
Whether the most recent push must be approved by someone other than the person who pushed it
"""
requireLastPushApproval: Boolean!

Expand Down Expand Up @@ -6153,7 +6153,7 @@ input CreateBranchProtectionRuleInput {
repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])

"""
Whether someone other than the person who last pushed to the branch must approve this pull request
Whether the most recent push must be approved by someone other than the person who pushed it
"""
requireLastPushApproval: Boolean

Expand Down Expand Up @@ -26097,9 +26097,20 @@ type Organization implements Actor & MemberStatusable & Node & PackageOwner & Pr

"""
Filter activities returned to only those that occurred in the most recent
specified time period. Set to ALL to avoid filtering by when the activity occurred.
specified time period. Set to ALL to avoid filtering by when the activity
occurred. Will be ignored if `since` or `until` is given.
"""
period: SponsorsActivityPeriod = MONTH

"""
Filter activities to those that occurred on or after this time.
"""
since: DateTime

"""
Filter activities to those that occurred before this time.
"""
until: DateTime
): SponsorsActivityConnection!

"""
Expand Down Expand Up @@ -44884,9 +44895,20 @@ interface Sponsorable {

"""
Filter activities returned to only those that occurred in the most recent
specified time period. Set to ALL to avoid filtering by when the activity occurred.
specified time period. Set to ALL to avoid filtering by when the activity
occurred. Will be ignored if `since` or `until` is given.
"""
period: SponsorsActivityPeriod = MONTH

"""
Filter activities to those that occurred on or after this time.
"""
since: DateTime

"""
Filter activities to those that occurred before this time.
"""
until: DateTime
): SponsorsActivityConnection!

"""
Expand Down Expand Up @@ -49832,7 +49854,7 @@ input UpdateBranchProtectionRuleInput {
pushActorIds: [ID!]

"""
Whether someone other than the person who last pushed to the branch must approve this pull request
Whether the most recent push must be approved by someone other than the person who pushed it
"""
requireLastPushApproval: Boolean

Expand Down Expand Up @@ -53645,9 +53667,20 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectNextOwn

"""
Filter activities returned to only those that occurred in the most recent
specified time period. Set to ALL to avoid filtering by when the activity occurred.
specified time period. Set to ALL to avoid filtering by when the activity
occurred. Will be ignored if `since` or `until` is given.
"""
period: SponsorsActivityPeriod = MONTH

"""
Filter activities to those that occurred on or after this time.
"""
since: DateTime

"""
Filter activities to those that occurred before this time.
"""
until: DateTime
): SponsorsActivityConnection!

"""
Expand Down
18 changes: 18 additions & 0 deletions lib/graphql/static/changelog.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
[
{
"schemaChanges": [
{
"title": "The GraphQL schema includes these changes:",
"changes": [
"<p>Argument <code>since: DateTime</code> added to field <code>Organization.sponsorsActivities</code></p>",
"<p>Argument <code>until: DateTime</code> added to field <code>Organization.sponsorsActivities</code></p>",
"<p>Argument <code>since: DateTime</code> added to field <code>Sponsorable.sponsorsActivities</code></p>",
"<p>Argument <code>until: DateTime</code> added to field <code>Sponsorable.sponsorsActivities</code></p>",
"<p>Argument <code>since: DateTime</code> added to field <code>User.sponsorsActivities</code></p>",
"<p>Argument <code>until: DateTime</code> added to field <code>User.sponsorsActivities</code></p>"
]
}
],
"previewChanges": [],
"upcomingChanges": [],
"date": "2022-11-10"
},
{
"schemaChanges": [
{
Expand Down
Loading