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

Commit

Permalink
change(jira-sync-actions): add deprecation info and warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
tomassebestik committed Feb 14, 2024
1 parent 6b1d014 commit f6fbb53
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
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

0 comments on commit f6fbb53

Please sign in to comment.