* [PR PATCH] New package: Add Autotagging tool
@ 2024-02-28 5:46 caughtquick
2024-02-28 5:47 ` [PR PATCH] [Closed]: " caughtquick
0 siblings, 1 reply; 2+ messages in thread
From: caughtquick @ 2024-02-28 5:46 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1272 bytes --]
There is a new pull request by caughtquick against master on the void-packages repository
https://github.com/caughtquick/void-packages autotag
https://github.com/void-linux/void-packages/pull/48984
New package: Add Autotagging tool
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/48984.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-autotag-48984.patch --]
[-- Type: text/x-diff, Size: 1659 bytes --]
From f939eec728c8d3b02f474fc2e8de44c53cb1f191 Mon Sep 17 00:00:00 2001
From: caughtquick <abhijit@sipahimalani.me>
Date: Tue, 27 Feb 2024 21:17:07 -0800
Subject: [PATCH] Add Autotagging tool
---
.github/workflows/auto-tag.yaml | 36 +++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
create mode 100644 .github/workflows/auto-tag.yaml
diff --git a/.github/workflows/auto-tag.yaml b/.github/workflows/auto-tag.yaml
new file mode 100644
index 00000000000000..b02d1558cd4c3b
--- /dev/null
+++ b/.github/workflows/auto-tag.yaml
@@ -0,0 +1,36 @@
+name: New Package PR Workflow
+
+on:
+ pull_request:
+ types: [opened, synchronize]
+ push:
+ branches:
+ - main # Adjust the branch name as needed
+
+jobs:
+ tag_new_package_pr:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Check if PR is for a new package
+ id: check_new_package
+ run: |
+ pr_title=$(echo "${{ github.event.pull_request.title }}" | tr '[:upper:]' '[:lower:]')
+ if [[ $pr_title == *"new package"* ]]; then
+ echo "new_package=true" >> $GITHUB_ENV
+ fi
+
+ - name: Tag PR if it's for a new package
+ if: env.new_package == 'true'
+ run: |
+ pr_number=${{ github.event.pull_request.number }}
+ token=$GITHUB_TOKEN
+ label_name="new-package"
+ api_url="https://api.github.com/repos/${{ github.repository }}/issues/${pr_number}/labels"
+
+ curl -X POST \
+ -H "Authorization: token $token" \
+ -H "Accept: application/vnd.github.v3+json" \
+ "$api_url" \
+ -d "{\"labels\":[\"$label_name\"]}"
+
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PR PATCH] [Closed]: New package: Add Autotagging tool
2024-02-28 5:46 [PR PATCH] New package: Add Autotagging tool caughtquick
@ 2024-02-28 5:47 ` caughtquick
0 siblings, 0 replies; 2+ messages in thread
From: caughtquick @ 2024-02-28 5:47 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1113 bytes --]
There's a closed pull request on the void-packages repository
New package: Add Autotagging tool
https://github.com/void-linux/void-packages/pull/48984
Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-02-28 5:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-28 5:46 [PR PATCH] New package: Add Autotagging tool caughtquick
2024-02-28 5:47 ` [PR PATCH] [Closed]: " caughtquick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).