Skip to content

Commit b18de78

Browse files
authored
update "master" to "main"
1 parent 6b242bf commit b18de78

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ async function mergeHandler (context, yes, no) {
5151
module.exports = course => {
5252
course.before(async context => {
5353
await context.github.repos.updateBranchProtection(context.repo({
54-
branch: 'master',
54+
branch: 'main',
5555
required_status_checks: null,
5656
enforce_admins: true,
5757
required_pull_request_reviews: {},
@@ -257,7 +257,7 @@ module.exports = course => {
257257
course.log(`New blob after replacement: ${newBlob}`)
258258

259259
// await context.github.repos.removeBranchProtection(context.repo({
260-
// branch: 'master'
260+
// branch: 'main'
261261
// }))
262262

263263
const rootTree = await context.github.gitdata.getTree(context.repo({
@@ -273,11 +273,11 @@ module.exports = course => {
273273
const encodedBlob = Buffer.from(newBlob).toString('base64')
274274

275275
await context.github.repos.removeBranchProtection(context.repo({
276-
branch: 'master'
276+
branch: 'main'
277277
}))
278278

279279
await context.github.repos.merge(context.repo({
280-
base: 'master',
280+
base: 'main',
281281
head: 'add-style'
282282
}))
283283

0 commit comments

Comments
 (0)