Skip to content

Commit 6a65a90

Browse files
committed
Test
1 parent d2eaa31 commit 6a65a90

File tree

3 files changed

+28
-7
lines changed

3 files changed

+28
-7
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: PR review Copy for test
2+
# This workflow is triggered when a PR review is submitted. It checks if the review is approved and runs a script to add labels to the PR based on the review.
3+
4+
on:
5+
pull_request_target:
6+
types:
7+
- opened
8+
- edited
9+
- synchronize
10+
11+
jobs:
12+
add-owner-approved-label:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Run add-labels-to-reviewed-pr.sh
19+
run: ./.github/workflows/scripts/add-labels-to-reviewed-pr.sh
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
REPO: ${{ github.repository }}
23+
PR: ${{ github.event.number }}
24+

.github/workflows/pr-review.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@ name: PR review
22
# This workflow is triggered when a PR review is submitted. It checks if the review is approved and runs a script to add labels to the PR based on the review.
33

44
on:
5-
pull_request_target:
5+
pull_request_review:
66
types:
77
- submitted
88

9-
permissions: read-all
10-
119
jobs:
1210
add-owner-approved-label:
1311
if: github.event.review.state == 'approved'
@@ -16,9 +14,6 @@ jobs:
1614
- name: Checkout
1715
uses: actions/checkout@v4
1816

19-
- name: Run update permissions
20-
run: chmod +x ./.github/workflows/scripts/add-labels-to-reviewed-pr.sh
21-
2217
- name: Run add-labels-to-reviewed-pr.sh
2318
run: ./.github/workflows/scripts/add-labels-to-reviewed-pr.sh
2419
env:

detectors/node/opentelemetry-resource-detector-azure/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
14-
* limitations under the License.
14+
* limitations under the License.
1515
*/
1616

17+
// UNDO, Added for testing purposes
18+
1719
export {
1820
azureAppServiceDetector,
1921
azureFunctionsDetector,

0 commit comments

Comments
 (0)