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

Commit

Permalink
change(github-pr-to-internal-pr): add deprecation info and warning me…
Browse files Browse the repository at this point in the history
…ssage
  • Loading branch information
tomassebestik committed Mar 27, 2024
1 parent d6534c3 commit 1ac5f1d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions github_pr_to_internal_pr/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
: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-pr-to-gitlab](https://github.com/espressif/sync-pr-to-gitlab) project.

---
# Sync approved PRs to internal codebase

This script automates the process of creating branches and PRs on the internal codebase of Espressif based on approved PRs on Github.
Expand Down
2 changes: 1 addition & 1 deletion github_pr_to_internal_pr/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "Sync approved PRs to internal codebase"
description: "Sync approved Github PRs to the Espressif's internal IDF integration"
description: "DEPRECATED: Sync approved Github PRs to the Espressif's internal IDF integration"
branding:
icon: "fast-forward"
color: "green"
Expand Down
8 changes: 8 additions & 0 deletions github_pr_to_internal_pr/github_pr_to_internal_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
# SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0

import warnings
warnings.simplefilter('default', DeprecationWarning)
warnings.warn(
"You are using a deprecated version of sync GitHub action. "
"We recommend migrating to the latest version available at https://github.com/espressif/sync-pr-to-gitlab.",
DeprecationWarning
)

import json
import os
import re
Expand Down

0 comments on commit 1ac5f1d

Please sign in to comment.