Merge branch 'main' into bookmark_enhancement

This commit is contained in:
Nicolas Raoul 2025-02-24 22:44:18 +09:00 committed by GitHub
commit 5c7754b020
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 24 additions and 10 deletions

View file

@ -1,6 +1,10 @@
name: Android CI Comment name: Android CI Comment
on: [pull_request_target] on:
workflow_run:
workflows: ["Android CI"]
types: [completed]
branches: [main]
permissions: permissions:
issues: write issues: write
@ -9,16 +13,17 @@ jobs:
comment: comment:
name: Comment on PR with APK links name: Comment on PR with APK links
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'success'
steps: steps:
- name: Checkout base branch - name: Checkout base branch
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
ref: ${{ github.base_ref }} ref: ${{ github.event.workflow_run.head_branch }}
- name: Download Run ID Artifact - name: Download Run ID Artifact
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: run-id name: run-id
run-id: ${{ github.event.workflow_run.id }}
- name: Read Run ID - name: Read Run ID
id: read-run-id id: read-run-id
@ -41,6 +46,13 @@ jobs:
throw new Error('Run ID not found.'); throw new Error('Run ID not found.');
} }
// Get the PR number from the workflow_run event
const prNumber = ${{ github.event.workflow_run.pull_requests[0].number }};
if (!prNumber) {
console.log('No PR number found in workflow_run event.');
return;
}
const { data: { artifacts } } = await github.rest.actions.listWorkflowRunArtifacts({ const { data: { artifacts } } = await github.rest.actions.listWorkflowRunArtifacts({
owner: context.repo.owner, owner: context.repo.owner,
repo: context.repo.repo, repo: context.repo.repo,
@ -71,7 +83,7 @@ jobs:
`; `;
await github.rest.issues.createComment({ await github.rest.issues.createComment({
issue_number: context.issue.number, issue_number: prNumber,
owner: context.repo.owner, owner: context.repo.owner,
repo: context.repo.repo, repo: context.repo.repo,
body: commentBody body: commentBody

View file

@ -1,6 +1,6 @@
# Wikimedia Commons Android app # Wikimedia Commons Android app
![GitHub issue custom search](https://img.shields.io/github/issues-search?label=%22good%20first%20issue%22%20issues&query=repo%3Acommons-app%2Fapps-android-commons%20is%3Aissue%20is%3Aopen%20label%3A%22good%20first%20issue%22) ![GitHub issue custom search](https://img.shields.io/github/issues-search?label=%22good%20first%20issue%22%20issues&query=repo%3Acommons-app%2Fapps-android-commons%20is%3Aissue%20is%3Aopen%20label%3A%22good%20first%20issue%22)
[![Build status](https://github.com/commons-app/apps-android-commons/actions/workflows/android.yml/badge.svg?branch=master)](https://github.com/commons-app/apps-android-commons/actions?query=branch%3Amaster) [![Build status](https://github.com/commons-app/apps-android-commons/actions/workflows/android.yml/badge.svg?branch=main)](https://github.com/commons-app/apps-android-commons/actions?query=branch%3Amain)
[![Preview the app](https://img.shields.io/badge/Preview-Appetize.io-orange.svg)](https://appetize.io/app/8ywtpe9f8tb8h6bey11c92vkcw) [![Preview the app](https://img.shields.io/badge/Preview-Appetize.io-orange.svg)](https://appetize.io/app/8ywtpe9f8tb8h6bey11c92vkcw)
[![codecov](https://codecov.io/gh/commons-app/apps-android-commons/branch/master/graph/badge.svg)](https://codecov.io/gh/commons-app/apps-android-commons) [![codecov](https://codecov.io/gh/commons-app/apps-android-commons/branch/master/graph/badge.svg)](https://codecov.io/gh/commons-app/apps-android-commons)

View file

@ -3,6 +3,7 @@
* 1917 Ekim Devrimi * 1917 Ekim Devrimi
* Envlh * Envlh
* Gambollar * Gambollar
* GolyatGeri
* Gorizon * Gorizon
* Gırd * Gırd
* Marmase * Marmase
@ -199,7 +200,7 @@
<string name="navigation_item_review">Çım berze cı</string> <string name="navigation_item_review">Çım berze cı</string>
<string name="no_description_found">İzahat nêvineya</string> <string name="no_description_found">İzahat nêvineya</string>
<string name="nearby_info_menu_commons_article">Pela dosyay commonsi</string> <string name="nearby_info_menu_commons_article">Pela dosyay commonsi</string>
<string name="nearby_info_menu_wikidata_article">Pbcey Wikidata</string> <string name="nearby_info_menu_wikidata_article">Pbcey Wikidayıt</string>
<string name="nearby_info_menu_wikipedia_article">Meqaley Wikipedia</string> <string name="nearby_info_menu_wikipedia_article">Meqaley Wikipedia</string>
<string name="upload_problem_exist">Muhtemel problemê nê resımi</string> <string name="upload_problem_exist">Muhtemel problemê nê resımi</string>
<string name="upload_problem_image_dark">Resım zehf tariyo.</string> <string name="upload_problem_image_dark">Resım zehf tariyo.</string>
@ -216,7 +217,7 @@
<string name="skip_login">Ravêre</string> <string name="skip_login">Ravêre</string>
<string name="navigation_item_login">Cı kewe</string> <string name="navigation_item_login">Cı kewe</string>
<string name="nearby_directions">Telimati</string> <string name="nearby_directions">Telimati</string>
<string name="nearby_wikidata">Wikidata</string> <string name="nearby_wikidata">Wikidayıt</string>
<string name="nearby_wikipedia">Wikipediya</string> <string name="nearby_wikipedia">Wikipediya</string>
<string name="nearby_commons">Commons</string> <string name="nearby_commons">Commons</string>
<string name="about_rate_us">Rey bı</string> <string name="about_rate_us">Rey bı</string>
@ -246,7 +247,7 @@
<string name="explore_tab_title_featured">Weçinaye</string> <string name="explore_tab_title_featured">Weçinaye</string>
<string name="explore_tab_title_mobile">Raya mobiliya biyo bar</string> <string name="explore_tab_title_mobile">Raya mobiliya biyo bar</string>
<string name="explore_tab_title_map">Xerita</string> <string name="explore_tab_title_map">Xerita</string>
<string name="successful_wikidata_edit">Resım , Wikidata dê biyo obcey %1$s miyan!</string> <string name="successful_wikidata_edit">Resım , Wikidayıt dê biyo obcey %1$s miyan!</string>
<string name="menu_set_wallpaper">Wallpaper eyar kerê</string> <string name="menu_set_wallpaper">Wallpaper eyar kerê</string>
<string name="wallpaper_set_successfully">Wallpaper eyar biyo!</string> <string name="wallpaper_set_successfully">Wallpaper eyar biyo!</string>
<string name="quiz">Quiz</string> <string name="quiz">Quiz</string>

View file

@ -56,7 +56,7 @@
<string name="menu_settings">امستنې</string> <string name="menu_settings">امستنې</string>
<string name="intent_share_upload_label">خونديځ ته راپورته کول</string> <string name="intent_share_upload_label">خونديځ ته راپورته کول</string>
<string name="upload_in_progress">راپورته کول جريان لري</string> <string name="upload_in_progress">راپورته کول جريان لري</string>
<string name="username">کارننوم</string> <string name="username">کارننوم</string>
<string name="password">پټنوم</string> <string name="password">پټنوم</string>
<string name="login_credential">خپل خونديځ بېټا ګڼون ته ورننوځئ</string> <string name="login_credential">خپل خونديځ بېټا ګڼون ته ورننوځئ</string>
<string name="login">ننوتل</string> <string name="login">ننوتل</string>

View file

@ -876,6 +876,7 @@
<string name="account">Учётная запись</string> <string name="account">Учётная запись</string>
<string name="vanish_account">Удалить учётную запись</string> <string name="vanish_account">Удалить учётную запись</string>
<string name="account_vanish_request_confirm_title">Предупреждение об удалении учётной записи</string> <string name="account_vanish_request_confirm_title">Предупреждение об удалении учётной записи</string>
<string name="account_vanish_request_confirm">Удаление — это &lt;b&gt;крайняя мера&lt;/b&gt;, и её следует &lt;b&gt;использовать только в том случае, если вы хотите навсегда прекратить редактирование&lt;/b&gt;, а также скрыть как можно больше связанных с вами действий.&lt;br/&gt;&lt;br/&gt; Удаление вашей учётной записи на Викискладе осуществляется путём изменения её имени, чтобы другие не могли определить ваши действия. &lt;b&gt;Удаление не гарантирует полной анонимности или удаления вклада в проектах&lt;/b&gt;.</string>
<string name="caption">Подпись</string> <string name="caption">Подпись</string>
<string name="caption_copied_to_clipboard">Подпись скопирована в буфер обмена</string> <string name="caption_copied_to_clipboard">Подпись скопирована в буфер обмена</string>
<string name="congratulations_all_pictures_in_this_album_have_been_either_uploaded_or_marked_as_not_for_upload">Поздравляем, все фотографии в этом альбоме либо загружены, либо помечены как не предназначенные для загрузки.</string> <string name="congratulations_all_pictures_in_this_album_have_been_either_uploaded_or_marked_as_not_for_upload">Поздравляем, все фотографии в этом альбоме либо загружены, либо помечены как не предназначенные для загрузки.</string>