Skip to content

Commit

Permalink
Merge pull request #1117 from newrelic/develop
Browse files Browse the repository at this point in the history
merge to main
  • Loading branch information
gmanandhar-nr authored Oct 28, 2024
2 parents b6a8f54 + ac4d33c commit dfdb293
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,25 @@ jobs:
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > .npmrc
- name: Temporarily disable "required_pull_request_reviews" branch protection
id: disable-branch-protection
if: always()
uses: actions/github-script@v6
with:
github-token: ${{ secrets.DOCS_ENG_BOT_TOKEN }}
previews: luke-cage-preview
script: |
const result = await github.rest.repos.updateBranchProtection({
owner: context.repo.owner,
repo: context.repo.repo,
branch: 'main',
required_status_checks: null,
restrictions: null,
enforce_admins: null,
required_pull_request_reviews: null
})
console.log("Result:", result)
- name: Lerna Publish
env:
GIT_AUTHOR_NAME: ${{ env.BOT_NAME }}
Expand All @@ -42,3 +61,24 @@ jobs:
GIT_COMMITTER_EMAIL: ${{ env.BOT_EMAIL }}
GH_TOKEN: ${{ secrets.DOCS_ENG_BOT_TOKEN }}
run: yarn release

- name: Re-enable "required_pull_request_reviews" branch protection
id: enable-branch-protection
if: always()
uses: actions/github-script@v6
with:
github-token: ${{ secrets.DOCS_ENG_BOT_TOKEN }}
previews: luke-cage-preview
script: |
const result = await github.rest.repos.updateBranchProtection({
owner: context.repo.owner,
repo: context.repo.repo,
branch: 'main',
required_status_checks: null,
restrictions: null,
enforce_admins: true,
required_pull_request_reviews: {
required_approving_review_count: 0
}
})
console.log("Result:", result)
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const GlobalHeader = ({ className, activeSite }) => {
`}
>
<ExternalLink
href="https://newrelic.com/"
href={t('header.newRelicLogoLink')}
css={css`
display: flex;
align-items: center;
Expand Down
3 changes: 3 additions & 0 deletions packages/gatsby-theme-newrelic/src/i18n/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
"submitMessage": "Thanks for your detailed feedback",
"reset": "Reset"
},
"header": {
"newRelicLogoLink": "https://newrelic.com/"
},
"footer": {
"copyright": "Copyright {{copyrightSymbol}} {{year}} New Relic Inc.",
"careers": "Careers",
Expand Down
3 changes: 3 additions & 0 deletions packages/gatsby-theme-newrelic/src/i18n/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
"submitMessage" : "Agradecemos tus comentarios detallados",
"reset" : "Restablecer"
},
"header": {
"newRelicLogoLink": "https://newrelic.com/es/"
},
"footer" : {
"copyright" : "Copyright {{copyrightSymbol}} {{year}} New Relic Inc.",
"careers" : "Carreras",
Expand Down
3 changes: 3 additions & 0 deletions packages/gatsby-theme-newrelic/src/i18n/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
"submitMessage": "Thanks for your detailed feedback",
"reset": "Reset"
},
"header": {
"newRelicLogoLink": "https://newrelic.com/fr/"
},
"footer": {
"copyright": "Copyright {{copyrightSymbol}} {{year}} New Relic Inc.",
"careers": "Careers",
Expand Down
3 changes: 3 additions & 0 deletions packages/gatsby-theme-newrelic/src/i18n/translations/jp.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
"submitMessage" : "詳細なフィードバックありがとうございました",
"reset" : "リセット"
},
"header": {
"newRelicLogoLink": "https://newrelic.com/jp/"
},
"footer" : {
"copyright" : "Copyright {{copyrightSymbol}} {{year}} New Relic株式会社。",
"careers" : "採用情報",
Expand Down
3 changes: 3 additions & 0 deletions packages/gatsby-theme-newrelic/src/i18n/translations/kr.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
"submitMessage" : "자세한 피드백을 주셔서 감사합니다.",
"reset" : "재설정"
},
"header": {
"newRelicLogoLink": "https://newrelic.com/kr/"
},
"footer" : {
"copyright" : "Copyright {{copyrightSymbol}} {{year}} New Relic Inc.",
"careers" : "채용정보",
Expand Down
3 changes: 3 additions & 0 deletions packages/gatsby-theme-newrelic/src/i18n/translations/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
"submitMessage" : "Agradecemos seu feedback detalhado",
"reset" : "Redefinir"
},
"header": {
"newRelicLogoLink": "https://newrelic.com/pt/"
},
"footer" : {
"copyright" : "Copyright {{copyrightSymbol}} {{year}} New Relic Inc.",
"careers" : "Carreiras",
Expand Down

0 comments on commit dfdb293

Please sign in to comment.