Skip to content

Commit

Permalink
Merge pull request github#35898 from github/repo-sync
Browse files Browse the repository at this point in the history
Repo sync
  • Loading branch information
docs-bot authored Jan 10, 2025
2 parents 0193532 + 4affc52 commit 1aa50eb
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 18 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/sync-codeql-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,9 @@ jobs:
If CI does not pass or other problems arise, contact #docs-engineering on slack.' \
--repo github/docs-internal \
--label "codeql-cli-pipeline,skip FR board,ready-for-doc-review"
- uses: ./.github/actions/slack-alert
if: ${{ failure() && github.event_name != 'workflow_dispatch' }}
with:
slack_channel_id: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }}
slack_token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/sync-graphql.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Update GraphQL files
name: Sync GraphQL schema

# **What it does**: This updates our GraphQL schemas.
# **Why we have it**: We want our GraphQL docs up to date.
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/sync-openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ jobs:
If CI does not pass or other problems arise, contact #docs-engineering on slack.' \
--repo github/docs-internal \
--label github-openapi-bot
--label github-openapi-bot \
--head=$branchname \
- uses: ./.github/actions/slack-alert
if: ${{ failure() && github.event_name != 'workflow_dispatch' }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ There are a few key differences between metered and volume billing for {% data v

* **Volume billing:**

* Purchase a defined number of licenses (e.g. 100 licenses).
* Purchase a defined number of licenses (for example, 100 licenses).
* If usage exceeds purchased licenses, you will need to purchase additional licenses to cover this overage usage.

### Managing committers and repositories

{% data variables.product.prodname_GH_advanced_security %} is billed per committer and enabled by repository. If a committer is removed from an organization or enterprise, they are no longer billable as of the removal day. However, if you disable {% data variables.product.prodname_GH_advanced_security %} on a repository, the committers tied to that repository will remain billable until the end of the current monthly billing cycle. Prorated billing applies if a committer starts partway through the month. For an example of how this works, see [Understanding usage](/billing/managing-billing-for-github-advanced-security/about-billing-for-github-advanced-security#understanding-usage).
{% data variables.product.prodname_GH_advanced_security %} is billed per committer and enabled by repository. If you remove a committer from an organization or enterprise, or if you disable {% data variables.product.prodname_GH_advanced_security %} on a repository, the committers will remain billable until the end of the current monthly billing cycle. Prorated billing applies only when a committer starts partway through the month. For examples of how committers are tracked and billed, see [Understanding usage](/billing/managing-billing-for-github-advanced-security/about-billing-for-github-advanced-security#understanding-usage).

If you have further questions about using {% data variables.product.prodname_GH_advanced_security %}, you can contact your account manager in {% data variables.contact.contact_enterprise_sales %}.

Expand Down
2 changes: 1 addition & 1 deletion src/secret-scanning/data/public-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1878,7 +1878,7 @@
hasValidityCheck: false
isduplicate: false
- provider: Hubspot
supportedSecret: 'Hubspot Private Apps User Token '
supportedSecret: Hubspot Private Apps User Token
secretType: hubspot_private_apps_user_token
versions:
fpt: '*'
Expand Down
4 changes: 2 additions & 2 deletions src/secret-scanning/lib/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"sha": "bfdf16111828f166642727f533b60d4d0e054d90",
"blob-sha": "633381a5c2da040948606c15f58ec7c977047c5b",
"sha": "cbe3e18d7f44192a2834d7fa44ff85bd1427050d",
"blob-sha": "8dd5008bd4587fef156083689b4063392949d52c",
"targetFilename": "code-security/secret-scanning/introduction/supported-secret-scanning-patterns"
}
15 changes: 4 additions & 11 deletions src/workflows/close-dangling-prs.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { program, Option } from 'commander'

import github from './github.js'
import { getActionContext } from './action-context.js'
import { octoSecondaryRatelimitRetry } from './secondary-ratelimit-retry'

const DRY_RUN = process.env.DRY_RUN || 'false'
Expand Down Expand Up @@ -32,19 +31,13 @@ const CONFIGS: Config[] = [
},
]

let owner = 'github'
let repo = 'docs-internal'

if (process.env.GITHUB_EVENT_PATH) {
const actionContext = getActionContext()
owner = actionContext.owner
repo = actionContext.repo
}
const owner = process.env.GITHUB_REPOSITORY_OWNER || 'github'
const repo = process.env.GITHUB_REPOSITORY?.split('/')[1] || 'docs-internal'

program
.description('Finds PRs with "FOR PREVIEW ONLY" in the title that are too old and closes them.')
.option('owner', 'Owner of the repository', owner)
.option('repo', 'Name of the repository', repo)
.option('--owner', 'Owner of the repository', owner)
.option('--repo', 'Name of the repository', repo)
.addOption(
new Option(
'--dry-run',
Expand Down

0 comments on commit 1aa50eb

Please sign in to comment.