From 48c7cc6013c801001fd3e5270695dcd29f741764 Mon Sep 17 00:00:00 2001 From: Phin <59180111+phin05@users.noreply.github.com> Date: Tue, 28 Feb 2023 18:05:53 +0530 Subject: [PATCH] README tweaks --- .github/workflows/close-pull-requests.yml | 24 +++++++++++++++-------- .gitignore | 8 ++++---- LICENSE | 2 +- README.md | 8 +++----- 4 files changed, 24 insertions(+), 18 deletions(-) diff --git a/.github/workflows/close-pull-requests.yml b/.github/workflows/close-pull-requests.yml index f7d0eb8..1600899 100644 --- a/.github/workflows/close-pull-requests.yml +++ b/.github/workflows/close-pull-requests.yml @@ -1,15 +1,23 @@ -name: Close Pull Requests +name: Close pull requests on: pull_request_target: + workflow_dispatch: + inputs: + prNumber: + type: string + required: true + description: Pull Request Number jobs: - close-prs: + comment-and-close: runs-on: ubuntu-latest permissions: pull-requests: write - contents: write + env: + GH_TOKEN: ${{ github.token }} + GH_REPO: ${{ github.repository }} + PR_NUMBER: ${{ github.event.number || inputs.prNumber }} steps: - - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - gh pr comment --repo=${{ github.repository }} ${{ github.event.number }} --body "This repository does not accept pull requests." - gh pr close --repo=${{ github.repository }} ${{ github.event.number }} + - name: Comment + run: gh pr comment ${{ env.PR_NUMBER }} --body "This repository does not accept pull requests." + - name: Close + run: gh pr close ${{ env.PR_NUMBER }} diff --git a/.gitignore b/.gitignore index 94b2eb5..3ec693b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ -config.json -cache.json -lint.bat -console.log Showcase.psd +cache.json +config.json +console.log +lint.bat diff --git a/LICENSE b/LICENSE index 6a68d56..1e7b73e 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2018-2022 phin05 +Copyright (c) 2018-2023 phin05 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index de72392..28b6a84 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,11 @@ ![Showcase](https://user-images.githubusercontent.com/59180111/168054648-af0590fd-9bd7-42d0-91b2-d7974643debd.png) -A Python script that displays your [Plex](https://www.plex.tv/) status on [Discord](https://discord.com/) using [Rich Presence](https://discord.com/developers/docs/rich-presence/how-to). +Discord Rich Presence for Plex is a Python script that displays your [Plex](https://www.plex.tv/) status on [Discord](https://discord.com/) using [Rich Presence](https://discord.com/developers/docs/rich-presence/how-to). -Current Version: 2.3.2 +[![Latest Release](https://shields.io/badge/Latest%20Release-v2.3.2-informational)](https://github.com/phin05/discord-rich-presence-plex/archive/refs/heads/master.zip) -## Getting Started +## Usage 1. Install [Python 3.10](https://www.python.org/downloads/) - Make sure to tick "Add Python 3.10 to PATH" during the installation. 2. Download [this repository's contents](https://github.com/phin05/discord-rich-presence-plex/archive/refs/heads/master.zip). @@ -21,8 +21,6 @@ The script must be running on the same machine as your Discord client. ## Configuration - `config.json` -### Reference - * `logging` * `debug` (boolean, default: `true`) - Outputs additional debug-helpful information to the console if enabled. * `writeToFile` (boolean, default: `false`) - Writes everything outputted to the console to a `console.log` file if enabled.