Skip to content

Commit 5a1a3e2

Browse files
authored
Merge pull request #40938 from github/repo-sync
Repo sync
2 parents aa7ebfa + 156000f commit 5a1a3e2

File tree

4 files changed

+27
-4
lines changed

4 files changed

+27
-4
lines changed

content/billing/get-started/how-billing-works.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@ For credit card and PayPal payments, the billing date is the day you started a p
6565

6666
Most users pay for {% data variables.product.github %} using metered billing. The billing cycle for all metered products is a fixed period from the first day to the last day of the month.
6767

68+
### Authorization holds
69+
70+
You may see an authorization hold on your provided payment method upon initiating a subscription or trial. Depending on your bank or card issuer, this may result in the appearance of a transaction or charge.
71+
72+
Authorization holds are temporary and released as quickly as possible. If the authorization hold persists for longer than 10 business days, we suggest reaching out to your bank or card issuer.
73+
74+
If the authorization is unsuccessful, the chosen service will not be activated and the account may be locked. For more more information, see [AUTOTITLE](/billing/how-tos/troubleshooting/locked-account#unlocking-an-accounts-features-due-to-a-failed-authorization-hold).
75+
6876
## How do I see what I'm billed for?
6977

7078
You can see the billing and usage information for your account at anytime in the "Billing and licensing" pages of your account or using the REST API. For more information, see [AUTOTITLE](/billing/how-tos/products/view-product-use).

content/billing/how-tos/troubleshooting/locked-account.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,20 @@ You can unlock and access your account by updating your account's payment method
3232

3333
You can downgrade your user account or organization to {% data variables.product.prodname_free_team %} to continue with the same advanced features in public repositories. For more information, see [AUTOTITLE](/billing/managing-the-plan-for-your-github-account/downgrading-your-accounts-plan).
3434

35-
## Unlocking an organization's features due to a declined payment
35+
## Unlocking an account's features due to a declined payment
3636

3737
If your account's advanced features are locked due to a declined payment, you'll need to update your billing information to trigger a newly authorized charge.
3838

3939
{% data reusables.billing.manage-payment-info %}
4040

4141
If the new billing information is approved, we will immediately charge you for the paid product you chose. The account will automatically unlock when a payment has been successfully processed. Payments may take up to 24 hours to process.
42+
43+
## Unlocking an account's features due to a failed authorization hold
44+
45+
When initiating a subscription or trial, we verify the entered payment method using an authorization hold. If the hold is unsuccessful, the chosen subscription or trial will not activate.
46+
47+
If your account's advanced features are locked due to a failed authorization hold, you'll need to update your billing information to trigger a new authorization.
48+
49+
{% data reusables.billing.manage-payment-info %}
50+
51+
If the new authorization is successful, the account will automatically unlock and you will be able to proceed with the chosen subscription.

src/journeys/components/JourneyTrackCard.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,19 @@ import { useRouter } from 'next/router'
33
import { Link } from '@/frame/components/Link'
44
import type { JourneyContext } from '@/journeys/lib/journey-path-resolver'
55
import { useTranslation } from '@/languages/components/useTranslation'
6+
import { useVersion } from '@/versions/components/useVersion'
67

78
type Props = {
89
journey: JourneyContext
910
}
1011

1112
export function JourneyTrackCard({ journey }: Props) {
1213
const { locale } = useRouter()
14+
const { currentVersion } = useVersion()
1315
const { t } = useTranslation('journey_track_nav')
1416
const { trackTitle, journeyTitle, journeyPath, nextGuide, numberOfGuides, currentGuideIndex } =
1517
journey
18+
const fullPath = `/${locale}/${currentVersion}${journeyPath}?feature=journey-landing`
1619

1720
return (
1821
<div
@@ -21,7 +24,7 @@ export function JourneyTrackCard({ journey }: Props) {
2124
>
2225
<div className="d-flex flex-column width-full">
2326
<h2 className="h4">
24-
<Link href={`/${locale}${journeyPath}`} className="mb-1 text-underline">
27+
<Link href={fullPath} className="mb-1 text-underline">
2528
{journeyTitle}
2629
</Link>
2730
</h2>
@@ -41,7 +44,7 @@ export function JourneyTrackCard({ journey }: Props) {
4144
</Link>
4245
</>
4346
) : (
44-
<Link href={`/${locale}${journeyPath}`} className="h5 text-bold color-fg f5 ml-1">
47+
<Link href={fullPath} className="h5 text-bold color-fg f5 ml-1">
4548
{t('more_articles')}
4649
</Link>
4750
)}

src/journeys/lib/journey-path-resolver.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { getPathWithoutLanguage, getPathWithoutVersion } from '@/frame/lib/path-
22
import { renderContent } from '@/content-render/index'
33
import { executeWithFallback } from '@/languages/lib/render-with-fallback'
44
import getApplicableVersions from '@/versions/lib/get-applicable-versions'
5+
import Permalink from '@/frame/lib/permalink'
56
import getLinkData from './get-link-data'
67

78
export interface JourneyContext {
@@ -170,7 +171,8 @@ export async function resolveJourneyContext(
170171
trackName: track.id,
171172
trackTitle: track.title,
172173
journeyTitle: journeyPage.title || '',
173-
journeyPath: journeyPage.permalink || `/${journeyPage.relativePath || ''}`,
174+
journeyPath:
175+
journeyPage.permalink || Permalink.relativePathToSuffix(journeyPage.relativePath || ''),
174176
currentGuideIndex: guideIndex,
175177
numberOfGuides: track.guides.length,
176178
}

0 commit comments

Comments
 (0)