Skip to content

Commit

Permalink
docs: no more develop branch (#3433)
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobCoffee authored Sep 15, 2024
1 parent 5ed9eb0 commit 119169d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
push:
branches:
- main
- develop
- v3.0

jobs:
Expand Down Expand Up @@ -44,10 +43,6 @@ jobs:
run: pdm run python tools/build_docs.py docs-build --version main
if: github.event_name == 'push' && github.ref == 'refs/heads/main'

- name: Build docs (develop branch)
run: pdm run python tools/build_docs.py docs-build --version develop
if: github.event_name == 'push' && github.ref == 'refs/heads/develop'

- name: Build docs (v3.0 branch)
run: pdm run python tools/build_docs.py docs-build --version 3-dev
if: github.event_name == 'push' && github.ref == 'refs/heads/v3.0'
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/pr-merged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
types:
- closed
branches:
- develop
- main
- v3.0

jobs:
close_and_notify:
Expand All @@ -19,6 +19,9 @@ jobs:
script: |
const prNumber = context.payload.number
const branch = context.baseRef
# TODO: `develop` no longer exists. Need a new way to determine if the
# change will be introduced in a major, minor, or patch release.
# possibly conventional commit standards in the PR title or by labels?
const isDevelop = branch === "develop"
const commentBody = `<!--closing-comment-->\nThis issue has been closed in #${prNumber}. The change will be included in the upcoming ${isDevelop ? "minor" : "patch"} release.`
Expand Down
2 changes: 1 addition & 1 deletion docs/_static/versions.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "versions": ["1", "2", "main", "develop", "3-dev"], "latest": "2" }
{ "versions": ["1", "2", "main", "3-dev"], "latest": "2" }

0 comments on commit 119169d

Please sign in to comment.