Skip to content

Commit

Permalink
fix: update default branch to main
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeveland27 committed Sep 3, 2020
1 parent 0f14a94 commit b79177c
Show file tree
Hide file tree
Showing 8 changed files with 90 additions and 196 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Pull Request
on:
pull_request:
branches:
- master
- main

repository_dispatch:
types: [pull-request]
Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:
uses: actions/checkout@v2

- name: Validate Open Source Files
uses: newrelic/validate-nerdpack-action@v1.0.2
uses: newrelic/validate-nerdpack-action@v1

- name: Install NR1 CLI
run: |
Expand Down
29 changes: 19 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on:
push:
branches:
- master
- main
repository_dispatch:
types: [semantic-release]

Expand Down Expand Up @@ -49,11 +49,13 @@ jobs:
runs-on: ubuntu-latest
needs: job-checkout-and-build
steps:
# Checkout fetch-depth: 2 because there's a check to see if package.json
# was updated, and need at least 2 commits for the check to function properly
- name: Checkout repo
uses: actions/checkout@v2
with:
fetch-depth: 2

# Probably not necessary since the ubuntu-latest image would have latest Node LTS release
# and nothing in this job _needs_ older Node
- name: Setup Node.js
uses: actions/setup-node@v1
with:
Expand Down Expand Up @@ -118,7 +120,7 @@ jobs:
const result = await github.repos.updateBranchProtection({
owner: context.repo.owner,
repo: context.repo.repo,
branch: 'master',
branch: 'main',
required_status_checks: null,
restrictions: null,
enforce_admins: null,
Expand All @@ -131,6 +133,7 @@ jobs:
uses: ad-m/github-push-action@v0.6.0
with:
github_token: ${{ secrets.OPENSOURCE_BOT_TOKEN }}
branch: main

- name: Re-enable "required_pull_request_reviews" branch protection
id: enable-branch-protection
Expand All @@ -143,7 +146,7 @@ jobs:
const result = await github.repos.updateBranchProtection({
owner: context.repo.owner,
repo: context.repo.repo,
branch: 'master',
branch: 'main',
required_status_checks: null,
restrictions: null,
enforce_admins: null,
Expand All @@ -157,12 +160,12 @@ jobs:
runs-on: ubuntu-latest
needs: [job-checkout-and-build, job-generate-third-party-notices]
steps:
# Checkout ref: master because previous job committed third_party_notices and
# we need to checkout master to pick up that commit
# Checkout ref: main because previous job committed third_party_notices and
# we need to checkout main to pick up that commit
- name: Checkout repo
uses: actions/checkout@v2
with:
ref: master
ref: main

- name: Setup Node.js
uses: actions/setup-node@v1
Expand Down Expand Up @@ -194,7 +197,7 @@ jobs:
const result = await github.repos.updateBranchProtection({
owner: context.repo.owner,
repo: context.repo.repo,
branch: 'master',
branch: 'main',
required_status_checks: null,
restrictions: null,
enforce_admins: null,
Expand All @@ -204,6 +207,12 @@ jobs:
- name: Run semantic-release
env:
# Use nr-opensource-bot for authoring commits done by
# semantic-release (rather than using @semantic-release-bot)
GIT_AUTHOR_NAME: "nr-opensource-bot"
GIT_AUTHOR_EMAIL: "opensource+bot@newrelic.com"
GIT_COMMITTER_NAME: "nr-opensource-bot"
GIT_COMMITTER_EMAIL: "opensource+bot@newrelic.com"
GITHUB_TOKEN: ${{ secrets.OPENSOURCE_BOT_TOKEN }}
run: npx semantic-release

Expand All @@ -218,7 +227,7 @@ jobs:
const result = await github.repos.updateBranchProtection({
owner: context.repo.owner,
repo: context.repo.repo,
branch: 'master',
branch: 'main',
required_status_checks: null,
restrictions: null,
enforce_admins: null,
Expand Down
4 changes: 2 additions & 2 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"branch": "master",
"branches": ["main"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
Expand All @@ -17,4 +17,4 @@
],
"dryRun": false,
"debug": true
}
}
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Contributing

Contributions are always welcome. Before contributing please read the
[code of conduct](./CODE_OF_CONDUCT.md) and [search the issue tracker](issues); your issue may have already been discussed or fixed in `master`. To contribute,
[code of conduct](./CODE_OF_CONDUCT.md) and [search the issue tracker](issues); your issue may have already been discussed or fixed in `main`. To contribute,
[fork](https://help.github.com/articles/fork-a-repo/) this repository, commit your changes, and [send a Pull Request](https://help.github.com/articles/using-pull-requests/).

Note that our [code of conduct](./CODE_OF_CONDUCT.md) applies to all platforms and venues related to this project; please follow it in all your interactions with the project and its participants.
Expand All @@ -27,4 +27,4 @@ For more information about CLAs, please check out Alex Russell’s excellent pos

## Slack

For contributors and maintainers of open source projects hosted by New Relic, we host a public Slack with a channel dedicated to this project. If you are contributing to this project, you're welcome to request access to that community space.
For contributors and maintainers of open source projects hosted by New Relic, we host a public Slack with a channel dedicated to this project. If you are contributing to this project, you're welcome to request access to that community space.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![New Relic One Catalog Project header](https://github.com/newrelic/open-source-office/raw/master/examples/categories/images/New_Relic_One_Catalog_Project.png)](https://github.com/newrelic/open-source-office/blob/master/examples/categories/index.md#nr1-catalog)
[![New Relic One Catalog Project header](https://github.com/newrelic/opensource-website/raw/master/src/images/categories/New_Relic_One_Catalog_Project.png)](https://opensource.newrelic.com/oss-category/#new-relic-one-catalog-project)

# New Relic One Event Stream (nr1-event-stream)

Expand Down Expand Up @@ -65,6 +65,11 @@ Please do not report issues with Event Stream to New Relic Global Technical Supp
Issues and enhancement requests can be submitted in the [Issues tab of this repository](https://github.com/newrelic/nr1-event-stream/issues). Please search for and review the existing open issues before submitting a new issue.
## Security
As noted in our [security policy](https://github.com/newrelic/nr1-event-stream/security/policy), New Relic is committed to the privacy and security of our customers and their data. We believe that providing coordinated disclosure by security researchers and engaging with the security community are important means to achieve our security goals.
If you believe you have found a security vulnerability in this project or any of New Relic's products or websites, we welcome and greatly appreciate you reporting it to New Relic through [HackerOne](https://hackerone.com/newrelic).
## Contributing
Contributions are welcome (and if you submit a Enhancement Request, expect to be invited to contribute it yourself :grin:). Please review our [Contributors Guide](CONTRIBUTING.md).
Expand Down
4 changes: 2 additions & 2 deletions catalog/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Event Stream uses data from `Transaction` and `TransactionError` events to displ
## Open Source License

This project is distributed under the [Apache 2 license](https://github.com/newrelic/nr1-event-stream/blob/master/LICENSE).
This project is distributed under the [Apache 2 license](https://github.com/newrelic/nr1-event-stream/blob/main/LICENSE).

## Dependencies

Expand Down Expand Up @@ -59,6 +59,6 @@ Issues and enhancement requests can be submitted in the [Issues tab of this repo
## Contributing
Contributions are welcome (and if you submit a Enhancement Request, expect to be invited to contribute it yourself :grin:). Please review our [Contributors Guide](https://github.com/newrelic/nr1-event-stream/blob/master/CONTRIBUTING.md).
Contributions are welcome (and if you submit a Enhancement Request, expect to be invited to contribute it yourself :grin:). Please review our [Contributors Guide](https://github.com/newrelic/nr1-event-stream/blob/main/CONTRIBUTING.md).
Keep in mind that when you submit your pull request, you'll need to sign the CLA via the click-through using CLA-Assistant. If you'd like to execute our corporate CLA, or if you have any questions, please drop us an email at opensource@newrelic.com.
Loading

0 comments on commit b79177c

Please sign in to comment.