This repository has been archived by the owner on Aug 9, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from LizardByte/nightly
v0.0.1 release
- Loading branch information
Showing
31 changed files
with
1,013 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[flake8] | ||
filename = | ||
*.py | ||
max-line-length = 120 | ||
extend-exclude = | ||
venv/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
# This action is centrally managed in https://github.com/<organization>/.github/ | ||
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in | ||
# the above-mentioned repo. | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "docker" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
time: "00:00" | ||
target-branch: "nightly" | ||
open-pull-requests-limit: 10 | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
time: "00:00" | ||
target-branch: "nightly" | ||
open-pull-requests-limit: 10 | ||
|
||
- package-ecosystem: "npm" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
time: "00:00" | ||
target-branch: "nightly" | ||
open-pull-requests-limit: 10 | ||
|
||
- package-ecosystem: "pip" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
time: "00:00" | ||
target-branch: "nightly" | ||
open-pull-requests-limit: 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
# This action is centrally managed in https://github.com/<organization>/.github/ | ||
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in | ||
# the above-mentioned repo. | ||
|
||
# Configuration for Label Actions - https://github.com/dessant/label-actions | ||
|
||
added: | ||
comment: > | ||
This feature has been added and will be available in the next release. | ||
fixed: | ||
comment: > | ||
This issue has been fixed and will be available in the next release. | ||
invalid:duplicate: | ||
comment: > | ||
:wave: @{issue-author}, this appears to be a duplicate of a pre-existing issue. | ||
close: true | ||
lock: true | ||
unlabel: 'status:awaiting-triage' | ||
|
||
-invalid:duplicate: | ||
reopen: true | ||
unlock: true | ||
|
||
invalid:support: | ||
comment: > | ||
:wave: @{issue-author}, we use the issue tracker exclusively for bug reports. | ||
However, this issue appears to be a support request. Please use our | ||
[Support Center](https://app.lizardbyte.dev/support) for support issues. Thanks. | ||
close: true | ||
lock: true | ||
lock-reason: 'off-topic' | ||
unlabel: 'status:awaiting-triage' | ||
|
||
-invalid:support: | ||
reopen: true | ||
unlock: true | ||
|
||
invalid:template-incomplete: | ||
issues: | ||
comment: > | ||
:wave: @{issue-author}, please edit your issue to complete the template with | ||
all the required info. Your issue will be automatically closed in 5 days if | ||
the template is not completed. Thanks. | ||
prs: | ||
comment: > | ||
:wave: @{issue-author}, please edit your PR to complete the template with | ||
all the required info. Your PR will be automatically closed in 5 days if | ||
the template is not completed. Thanks. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
## Description | ||
<!--- Please include a summary of the changes. ---> | ||
This PR was created automatically. | ||
|
||
|
||
### Screenshot | ||
<!--- Include screenshots if the changes are UI-related. ---> | ||
|
||
|
||
### Issues Fixed or Closed | ||
<!--- Close issue example: `- Closes #1` ---> | ||
<!--- Fix bug issue example: `- Fixes #2` ---> | ||
<!--- Resolve issue example: `- Resolves #3` ---> | ||
|
||
|
||
## Type of Change | ||
- [ ] Bug fix (non-breaking change which fixes an issue) | ||
- [ ] New feature (non-breaking change which adds functionality) | ||
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) | ||
- [ ] Documentation update (changes to documentation) | ||
- [ ] Repository update (changes to repository files) | ||
|
||
## Changelog Summary | ||
<!--- Summarize all the changes in a bulleted list. ---> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
--- | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
branches: [master, nightly] | ||
types: [opened, synchronize, reopened] | ||
push: | ||
branches: [master] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
check_changelog: | ||
name: Check Changelog | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Verify Changelog | ||
id: verify_changelog | ||
if: ${{ github.ref == 'refs/heads/master' || github.base_ref == 'master' }} | ||
# base_ref for pull request check, ref for push | ||
uses: LizardByte/actions/verify_changelog@master | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
outputs: | ||
next_version: ${{ steps.verify_changelog.outputs.changelog_parser_version }} | ||
last_version: ${{ steps.verify_changelog.outputs.latest_release_tag_name }} | ||
release_body: ${{ steps.verify_changelog.outputs.changelog_parser_description }} | ||
|
||
build: | ||
runs-on: ubuntu-20.04 | ||
needs: check_changelog | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
path: PlexyGlass.bundle | ||
|
||
- name: Install Python 2.7 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '2.7' | ||
|
||
- name: Set up Python 2.7 Dependencies | ||
working-directory: PlexyGlass.bundle | ||
run: | | ||
echo "Installing Requirements" | ||
python --version | ||
python -m pip --no-python-version-warning --disable-pip-version-check install --upgrade pip==20.3.4 setuptools | ||
# install dev requirements | ||
python -m pip install --upgrade -r requirements-dev.txt | ||
# install plugin requirements | ||
python ./scripts/install_requirements.py | ||
- name: Build plist | ||
working-directory: PlexyGlass.bundle | ||
env: | ||
BUILD_VERSION: ${{ needs.check_changelog.outputs.next_version }} | ||
run: | | ||
python scripts/build_plist.py | ||
- name: Test Plex Plugin | ||
working-directory: PlexyGlass.bundle | ||
run: | | ||
python ./Contents/Code/__init__.py | ||
python ./Contents/Services/URL/YouTube/ServiceCode.pys | ||
- name: Upload Artifacts | ||
if: ${{ github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: PlexyGlass.bundle | ||
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn` | ||
path: | | ||
${{ github.workspace }} | ||
!**/*.git* | ||
!**/*.pyc | ||
!**/__pycache__ | ||
!**/PlexyGlass.bundle/.* | ||
!**/PlexyGlass.bundle/cache.sqlite | ||
!**/PlexyGlass.bundle/docs | ||
!**/PlexyGlass.bundle/scripts | ||
- name: Package Release | ||
shell: bash | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} | ||
run: | | ||
7z "-xr!*.git*" "-xr!*.pyc" "-xr!__pycache__" "-x!.*" "-x!cache.sqlite" "-x!docs" "-x!scripts" \ | ||
a "./PlexyGlass.bundle.zip" "PlexyGlass.bundle" | ||
mkdir artifacts | ||
mv ./PlexyGlass.bundle.zip ./artifacts/ | ||
- name: Create Release | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} | ||
uses: LizardByte/.github/actions/create_release@master | ||
with: | ||
token: ${{ secrets.GH_BOT_TOKEN }} | ||
next_version: ${{ needs.check_changelog.outputs.next_version }} | ||
last_version: ${{ needs.check_changelog.outputs.last_version }} | ||
release_body: ${{ needs.check_changelog.outputs.release_body }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
# This action is centrally managed in https://github.com/<organization>/.github/ | ||
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in | ||
# the above-mentioned repo. | ||
|
||
name: Auto create PR | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'nightly' | ||
|
||
jobs: | ||
create_pr: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Create Pull Request | ||
uses: repo-sync/pull-request@v2 | ||
with: | ||
source_branch: "" # should be "nightly" as it's the triggering branch | ||
destination_branch: "master" | ||
pr_title: "Pulling ${{ github.ref_name }} into master" | ||
pr_template: ".github/pr_release_template.md" | ||
pr_assignee: "${{ secrets.GH_BOT_NAME }}" | ||
pr_draft: true | ||
pr_allow_empty: false | ||
github_token: ${{ secrets.GH_BOT_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
# This action is centrally managed in https://github.com/<organization>/.github/ | ||
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in | ||
# the above-mentioned repo. | ||
|
||
name: Automerge PR | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
|
||
jobs: | ||
autoapprove: | ||
if: > | ||
contains(fromJson('["LizardByte-bot"]'), github.event.pull_request.user.login) && | ||
contains(fromJson('["LizardByte-bot"]'), github.actor) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Autoapproving | ||
uses: hmarr/auto-approve-action@v2 | ||
with: | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
- name: Label autoapproved | ||
uses: actions/github-script@v6 | ||
with: | ||
github-token: ${{ secrets.GH_BOT_TOKEN }} | ||
script: | | ||
github.rest.issues.addLabels({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
labels: ['autoapproved', 'autoupdate'] | ||
}) | ||
automerge: | ||
needs: [autoapprove] | ||
runs-on: ubuntu-latest | ||
concurrency: | ||
group: automerge-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
steps: | ||
- name: Automerging | ||
uses: pascalgn/[email protected] | ||
env: | ||
BASE_BRANCHES: nightly | ||
GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }} | ||
GITHUB_LOGIN: ${{ secrets.GH_BOT_NAME }} | ||
MERGE_LABELS: "" | ||
MERGE_METHOD: "squash" | ||
MERGE_COMMIT_MESSAGE: "{pullRequest.title} (#{pullRequest.number})" | ||
MERGE_DELETE_BRANCH: true | ||
MERGE_ERROR_FAIL: true | ||
MERGE_FILTER_AUTHOR: ${{ secrets.GH_BOT_NAME }} | ||
MERGE_RETRIES: "240" # 1 hour | ||
MERGE_RETRY_SLEEP: "15000" # 15 seconds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
# This action is centrally managed in https://github.com/<organization>/.github/ | ||
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in | ||
# the above-mentioned repo. | ||
|
||
# This workflow is designed to work with: | ||
# - automerge workflows | ||
|
||
# It uses GitHub Action that auto-updates pull requests branches, when changes are pushed to their destination branch. | ||
# Auto-updating to the latest destination branch works only in the context of upstream repo and not forks. | ||
|
||
name: autoupdate | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'nightly' | ||
|
||
jobs: | ||
autoupdate-for-bot: | ||
name: Autoupdate autoapproved PR created in the upstream | ||
if: startsWith(github.repository, 'LizardByte/') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Update | ||
uses: docker://chinthakagodawita/autoupdate-action:v1 | ||
env: | ||
GITHUB_TOKEN: '${{ secrets.GH_BOT_TOKEN }}' | ||
PR_FILTER: "labelled" | ||
PR_LABELS: "autoupdate" | ||
PR_READY_STATE: "ready_for_review" | ||
MERGE_CONFLICT_ACTION: "ignore" |
Oops, something went wrong.