Skip to content

Commit

Permalink
Merge pull request #604 from microsoftgraph/feature/update-github-wor…
Browse files Browse the repository at this point in the history
…kflows-to-use-main

update github workflows to use main branch
  • Loading branch information
baywet authored Jun 28, 2024
2 parents ade55b1 + bb24b2e commit d290485
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/policies/msgraph-sdk-typescript-branch-protection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ resource: repository
configuration:
branchProtectionRules:

- branchNamePattern: dev
- branchNamePattern: main
# This branch pattern applies to the following branches as of 08/23/2023 13:45:40:
# dev
# main

# Specifies whether this branch can be deleted. boolean
allowsDeletions: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto-merge-dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Auto-merge dependabot updates

on:
pull_request:
branches: [ dev ]
branches: [ main ]

permissions:
pull-requests: write
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: Node.js CI
on:
workflow_dispatch:
push:
branches: [dev]
branches: [main]
pull_request:
branches: [dev]
branches: [main]

jobs:
build:
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
run: exit 1

publish-npm:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/dev' && !contains(github.event.head_commit.message, 'auto dependabot') }}
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, 'auto dependabot') }}
needs: build
environment:
name: production_feed
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ name: "CodeQL"

on:
push:
branches: [ "dev", "main" ]
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "dev" ]
branches: [ "main" ]
schedule:
- cron: '37 21 * * 1'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/project-auto-add.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
types:
- opened
branches:
- "dev"
- "main"

jobs:
track_issue:
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
The best way to get started with a contribution is to start a dialog with us. Sometimes features will be under development or out of scope for this library and it's best to check before starting work on contribution, especially for large work items.

## Pull requests
All pull requests should be submitted against the **dev** branch or a specific feature branch.
All pull requests should be submitted against the **main** branch or a specific feature branch.

Some things to note about this project:

Expand Down

0 comments on commit d290485

Please sign in to comment.