Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

change(jira-sync-actions): add deprecation info and warning message #59

Merged
merged 1 commit into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions sync_issues_to_jira/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
:warning: **Deprecation Notice**: This GitHub action is deprecated and development will not continue here. We recommend migrating to the latest version available in the [espressif/sync-jira-actions](https://github.com/espressif/sync-jira-actions) project.

---

# GitHub to JIRA Issue Sync

This is a GitHub action that performs simple one way syncing of GitHub issues into JIRA.
Expand Down
4 changes: 2 additions & 2 deletions sync_issues_to_jira/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "GitHub to JIRA Issue Sync"
description: "Performs simple one way syncing of GitHub issues into JIRA."
name: "GitHub to JIRA Issue Sync [Deprecated]"
description: "DEPRECATED: Performs simple one-way syncing of GitHub issues into JIRA. Please migrate to the new action at https://github.com/espressif/sync-jira-actions."
branding:
icon: "fast-forward"
color: "green"
Expand Down
9 changes: 9 additions & 0 deletions sync_issues_to_jira/sync_to_jira.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
import warnings
warnings.simplefilter('default', DeprecationWarning)
warnings.warn(
"You are using a deprecated version of the Jira sync GitHub action. "
"We recommend migrating to the latest version available at https://github.com/espressif/sync-jira-actions.",
DeprecationWarning
)

from jira import JIRA
from github import Github
import os
Expand All @@ -23,6 +31,7 @@
from sync_issue import *



class _JIRA(JIRA):
def applicationlinks(self):
return [] # disable this function as we don't need it and it makes add_remote_links() slow
Expand Down
Loading