From: caughtquick <caughtquick@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New package: Add Autotagging tool
Date: Wed, 28 Feb 2024 06:46:08 +0100 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-48984@inbox.vuxu.org> (raw)
[-- 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\"]}"
+
next reply other threads:[~2024-02-28 5:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-28 5:46 caughtquick [this message]
2024-02-28 5:47 ` [PR PATCH] [Closed]: " caughtquick
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-48984@inbox.vuxu.org \
--to=caughtquick@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).