From f0bc6d93d33a63a24af5b323e73509698ec90ea9 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Mon, 3 Nov 2025 13:03:03 -0500 Subject: [PATCH 1/5] build: Creating workflow `self-assign-issue.yml`. The .github/workflows/self-assign-issue.yml workflow is missing or needs an update to stay in sync with the current standard for this workflow as defined in the `.github` repo of the `openedx` GitHub org. --- .github/workflows/self-assign-issue.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/self-assign-issue.yml diff --git a/.github/workflows/self-assign-issue.yml b/.github/workflows/self-assign-issue.yml new file mode 100644 index 0000000..37522fd --- /dev/null +++ b/.github/workflows/self-assign-issue.yml @@ -0,0 +1,12 @@ +# This workflow runs when a comment is made on the ticket +# If the comment starts with "assign me" it assigns the author to the +# ticket (case insensitive) + +name: Assign comment author to ticket if they say "assign me" +on: + issue_comment: + types: [created] + +jobs: + self_assign_by_comment: + uses: openedx/.github/.github/workflows/self-assign-issue.yml@master From b46f350617a87adfe7d8b07dbff9c3a1d801d54b Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Mon, 3 Nov 2025 13:03:04 -0500 Subject: [PATCH 2/5] build: Creating workflow `add-depr-ticket-to-depr-board.yml`. The .github/workflows/add-depr-ticket-to-depr-board.yml workflow is missing or needs an update to stay in sync with the current standard for this workflow as defined in the `.github` repo of the `openedx` GitHub org. --- .../add-depr-ticket-to-depr-board.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/add-depr-ticket-to-depr-board.yml diff --git a/.github/workflows/add-depr-ticket-to-depr-board.yml b/.github/workflows/add-depr-ticket-to-depr-board.yml new file mode 100644 index 0000000..250e394 --- /dev/null +++ b/.github/workflows/add-depr-ticket-to-depr-board.yml @@ -0,0 +1,19 @@ +# Run the workflow that adds new tickets that are either: +# - labelled "DEPR" +# - title starts with "[DEPR]" +# - body starts with "Proposal Date" (this is the first template field) +# to the org-wide DEPR project board + +name: Add newly created DEPR issues to the DEPR project board + +on: + issues: + types: [opened] + +jobs: + routeissue: + uses: openedx/.github/.github/workflows/add-depr-ticket-to-depr-board.yml@master + secrets: + GITHUB_APP_ID: ${{ secrets.GRAPHQL_AUTH_APP_ID }} + GITHUB_APP_PRIVATE_KEY: ${{ secrets.GRAPHQL_AUTH_APP_PEM }} + SLACK_BOT_TOKEN: ${{ secrets.SLACK_ISSUE_BOT_TOKEN }} From 86a6fb4e471cf873a67dcb73504d9f62fbd5598a Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Mon, 3 Nov 2025 13:03:05 -0500 Subject: [PATCH 3/5] build: Creating workflow `add-remove-label-on-comment.yml`. The .github/workflows/add-remove-label-on-comment.yml workflow is missing or needs an update to stay in sync with the current standard for this workflow as defined in the `.github` repo of the `openedx` GitHub org. --- .../workflows/add-remove-label-on-comment.yml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/add-remove-label-on-comment.yml diff --git a/.github/workflows/add-remove-label-on-comment.yml b/.github/workflows/add-remove-label-on-comment.yml new file mode 100644 index 0000000..0f369db --- /dev/null +++ b/.github/workflows/add-remove-label-on-comment.yml @@ -0,0 +1,20 @@ +# This workflow runs when a comment is made on the ticket +# If the comment starts with "label: " it tries to apply +# the label indicated in rest of comment. +# If the comment starts with "remove label: ", it tries +# to remove the indicated label. +# Note: Labels are allowed to have spaces and this script does +# not parse spaces (as often a space is legitimate), so the command +# "label: really long lots of words label" will apply the +# label "really long lots of words label" + +name: Allows for the adding and removing of labels via comment + +on: + issue_comment: + types: [created] + +jobs: + add_remove_labels: + uses: openedx/.github/.github/workflows/add-remove-label-on-comment.yml@master + From fdae2b3813b3f2ff8cfbc7d6e4063c95f9a347d2 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Thu, 6 Nov 2025 09:54:10 -0500 Subject: [PATCH 4/5] fix: Refactor workflow to set working directory for jobs This was previously set at the top level which was not correct. --- .github/workflows/pypi-publish.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index b27331c..0228119 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -4,14 +4,12 @@ on: release: types: [published] -defaults: - run: - working-directory: "./backend" - jobs: push: runs-on: ubuntu-latest - + defaults: + run: + working-directory: "./backend" steps: - name: Checkout uses: actions/checkout@v4 @@ -28,7 +26,6 @@ jobs: - name: Publish to PyPi uses: pypa/gh-action-pypi-publish@release/v1 - working-directory: "./backend" with: user: __token__ password: ${{ secrets.PYPI_UPLOAD_TOKEN }} From cb786006bb0dbf7fe61af2b5dab9eec16872fc06 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Thu, 6 Nov 2025 09:56:36 -0500 Subject: [PATCH 5/5] fix: Update the package names before we publish. Make the package names in the correct scope or with the correct prefix before we publish this package. --- backend/setup.py | 2 +- frontend/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/setup.py b/backend/setup.py index af63bbc..973ec70 100755 --- a/backend/setup.py +++ b/backend/setup.py @@ -129,7 +129,7 @@ def is_requirement(line): CHANGELOG = open(os.path.join(os.path.dirname(__file__), 'CHANGELOG.rst'), encoding="utf8").read() setup( - name='sample_plugin', + name='openedx_sample_plugin', version=VERSION, description="""A sample backend plugin for the Open edX Platform""", long_description=README + '\n\n' + CHANGELOG, diff --git a/frontend/package.json b/frontend/package.json index 345cfec..9892fbc 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,5 +1,5 @@ { - "name": "@feanil/sample-plugin", + "name": "@openedx/sample-plugin", "version": "0.0.1", "main": "src/index.jsx", "peerDependencies": {