Contents

    Version Control · GitHubBeginner7 min read

    Last updated ·

    Issues & Project Management

    Learn how to track work with GitHub Issues, organize tasks using labels and assignees, plan milestones, create issue templates, link issues to commits and pull requests, automate issue closure, use GitHub Discussions, and manage work with GitHub Projects.

    • github
    • issues
    • project-management
    • labels
    • milestones
    • issue-templates
    • discussions
    • github-projects
    Edit on GitHub

    Introduction

    GitHub مش مجرد منصة لاستضافة الكود؛ هو كمان مكان تقدر تدير من خلاله الشغل المطلوب على المشروع، وتتابع المشاكل، وتوزّع المسؤوليات، وتخطط للإصدارات.

    تخيّل إنك بتطوّر مشروع DevOps وظهر عندك عدد من المهام:

    Sample Tasks

    Fix Docker build

    إصلاح مشكلة في Docker build.

    Health checks

    إضافة health checks للـ application.

    Deployment docs

    تحسين توثيق عملية deployment.

    Kubernetes review

    مراجعة إعدادات Kubernetes.

    New release

    تجهيز إصدار جديد من المشروع.

    بدل ما تسجل المهام في ملفات عشوائية أو تعتمد على الذاكرة، تقدر تستخدم GitHub Issues لتنظيمها، وLabels لتصنيفها، وAssignees لتحديد المسؤولين عنها، وMilestones لتجميع المهام المرتبطة بهدف أو إصدار، وGitHub Projects لمتابعة التقدم.

    What You Will Learn

    Issues

    تسجيل Bugs والمهام والتحسينات ومتابعة النقاش حولها.

    TasksBugs

    Labels & Milestones

    تصنيف العمل وتحديد المسؤوليات وتجميع المهام حسب الأهداف.

    OrganizationPlanning

    Automation

    ربط Issues بالـ commits والـ Pull Requests واستخدام closing keywords.

    WorkflowAutomation

    Projects & Discussions

    تنظيم التخطيط والتقدم، وفصل النقاشات العامة عن المهام القابلة للتتبع.

    PlanningCollaboration

    1. GitHub Issues

    What Is an Issue?

    الـ Issue هي وحدة لتسجيل ومتابعة موضوع يحتاج إلى نقاش أو إجراء داخل المشروع.

    ممكن تكون:

    Issue Types

    Bug

    مشكلة في السلوك الحالي.

    Feature Request

    ميزة جديدة مقترحة.

    Task

    مهمة تنفيذ أو صيانة.

    Documentation

    تحسين أو تصحيح التوثيق.

    Question

    سؤال متعلق بالمشروع، إذا كان استخدام Issues مناسبًا له.

    الـ Issue عادةً تحتوي على عنوان ووصف، ويمكن إضافة Labels وAssignees وMilestone، بالإضافة إلى التعليقات والروابط ذات الصلة.

    I. Anatomy of an Issue

    مثال على Issue في مشروع DevOps:

    Title: Add health checks to the Dockerized application

    Description:

    ## Problem
    
    The application container does not currently expose
    a health status that Docker can use.
    
    ## Expected Behavior
    
    The application should expose a health endpoint,
    and the container should use an appropriate health check.
    
    ## Acceptance Criteria
    
    - [ ] Add a health endpoint.
    - [ ] Configure the container health check.
    - [ ] Document how to verify the health status.
    - [ ] Test the behavior when the application is unhealthy.

    القيمة هنا مش في شكل الـ Markdown نفسه، لكن في وضوح المشكلة والنتيجة المطلوبة وشروط اعتبار المهمة مكتملة.

    II. Create an Issue

    من داخل repository على GitHub:

    1. Open the Issues tab

      افتح تبويب Issues.

    2. Start a new issue

      اختَر إنشاء Issue جديدة.

    3. Write the title

      اكتب عنوانًا يوضح المطلوب.

    4. Add the description

      أضف وصفًا يحتوي على السياق والتفاصيل اللازمة.

    5. Apply labels

      اختَر Labels مناسبة.

    6. Assign an owner

      عيّن المسؤول عن المهمة إذا كان ذلك مناسبًا.

    7. Link a milestone

      اربطها بـ Milestone أو Project عند الحاجة.

    8. Create it

      أنشئ الـ Issue.

    قد تختلف الخيارات الظاهرة حسب صلاحياتك وإعدادات repository.

    III. Write Good Issue Titles

    العنوان الجيد يوضح العمل المطلوب من غير تفاصيل زائدة.

    Weak vs Better Titles
    Weak Title Better Title
    Bug Fix container startup failure when configuration is missing
    Improve docs Document the local Kubernetes setup procedure
    New feature Add readiness and liveness probes to the deployment
    Problem with CI Fix test job failing on pull requests

    خلي العنوان محددًا قدر الإمكان، واستخدم الوصف لتوضيح التفاصيل والـ acceptance criteria.

    One Issue, One Clear Outcome

    حاول أن يكون لكل Issue هدف واضح يمكن مناقشة تقدمه وتحديد اكتماله. لو المهمة ضخمة أو تشمل أعمالًا مستقلة كثيرة، قسّمها إلى مهام أصغر أو استخدم طريقة تنظيم مناسبة.

    2. Labels and Assignees

    I. Labels

    الـ Labels هي tags بتساعدك تصنّف Issues وPull Requests حسب طبيعة العمل أو أولويته أو حالته.

    أمثلة على Labels ممكن تستخدمها:

    Example Labels
    Label Purpose
    bug مشكلة تحتاج إلى إصلاح
    enhancement ميزة أو تحسين
    documentation عمل متعلق بالتوثيق
    good first issue مهمة مناسبة للمساهمين الجدد، إذا كانت فعلًا مناسبة
    priority:high مهمة ذات أولوية مرتفعة وفق معايير المشروع
    needs-triage عنصر يحتاج إلى مراجعة وتصنيف أولي

    GitHub يوفر بعض الـ default labels، وتقدر تضيف Labels مخصصة حسب احتياج المشروع.

    II. Organize Labels by Purpose

    في مشروع أكبر، حاول تتجنب إنشاء عشرات الـ Labels المتداخلة من غير قواعد واضحة.

    ممكن تقسّمها ذهنيًا إلى مجموعات:

    Label Groups

    Type

    bug, enhancement, documentation

    Priority

    priority:high, priority:medium, priority:low

    Status

    needs-triage, blocked

    Contribution

    good first issue, help wanted

    دي طريقة تنظيم مقترحة، وليست تصنيفًا إجباريًا في GitHub.

    III. Assignees

    الـ Assignee هو الشخص المسؤول عن متابعة Issue أو تنفيذ العمل المرتبط بها.

    مثلًا:

    Assignment Examples

    Docker configuration

    Issue خاصة بـ Docker configuration: تُسند للشخص المسؤول عن containerization.

    Documentation

    Issue خاصة بالتوثيق: تُسند للشخص الذي سيحدّث المستندات.

    Deployment problem

    Issue خاصة بمشكلة deployment: تُسند إلى المسؤول عن التحقيق في المشكلة.

    تعيين شخص لا يعني أن بقية الفريق ممنوع من المساهمة؛ هو تحديد للمسؤولية الأساسية والمتابعة.

    IV. Labels vs Assignees

    Labels vs Assignees
    Feature Labels Assignees
    Main purpose تصنيف العنصر تحديد المسؤول عن متابعته
    Example bug, documentation مستخدم أو عضو فريق
    Can help with filtering? نعم نعم
    Answers the question ما نوع العمل؟ من المسؤول عنه؟

    Classification Is Not Ownership

    الـ Label يصف الـ Issue، بينما الـ Assignee يحدد المسؤول عنها. استخدام الاتنين معًا يسهّل فهم العمل وتوزيعه.

    3. Milestones

    I. What Is a Milestone?

    الـ Milestone بتجمع Issues وPull Requests مرتبطة بهدف أو مرحلة من المشروع.

    مثلًا، لو بتجهّز الإصدار v1.0.0 من مشروعك، ممكن تعمل Milestone باسم:

    v1.0.0 — Initial Release

    وتربط بها المهام المطلوبة قبل الإصدار.

    flowchart TD
        A(["Milestone: v1.0.0"]) --> B(["Container Build"])
        A --> C(["Documentation"])
        A --> D(["Deployment Validation"])
        B --> E(["Release Readiness"])
        C --> E
        D --> E
    
        classDef milestone fill:#E7DCC8,stroke:#9B8059,color:#46372A,stroke-width:1.5px
        classDef task fill:#F3E6D0,stroke:#B99A70,color:#46372A,stroke-width:1.5px
        classDef result fill:#DDE8D8,stroke:#8AA184,color:#344B38,stroke-width:1.5px
    
        class A milestone
        class B,C,D task
        class E result
    
        linkStyle default stroke:#9B8059,stroke-width:1.5px

    II. What Can a Milestone Track?

    يمكن استخدام Milestones لتنظيم العمل حسب:

    Milestone Scope

    Release

    إصدار معين.

    Stage

    مرحلة من مراحل تنفيذ المشروع.

    Deadline

    هدف محدد بموعد نهائي.

    Bundle

    مجموعة مهام لازم تكتمل معًا.

    حسب نوع الـ Milestone وإعداداتها، يمكن متابعة العناصر المرتبطة بها والتقدم نحو إكمالها.

    III. Example: Project Milestones

    Milestone Examples
    Milestone Example Scope
    v0.1.0 — Foundation Initial structure and basic configuration
    v0.2.0 — Containerization Dockerfile and Compose setup
    v0.3.0 — Deployment Kubernetes deployment and service
    v1.0.0 — Initial Release Documentation, validation, and release readiness

    دي أمثلة توضيحية لتقسيم مشروع تدريبي؛ مش شرط كل مشروع يستخدم Milestone لكل إصدار.

    IV. Milestone vs Label vs Project

    Three Levels of Organization

    Label

    تصنيف العنصر، مثل bug.

    Milestone

    تجميع عناصر مرتبطة بهدف أو مرحلة.

    GitHub Project

    مساحة أوسع لتنظيم ومتابعة العمل باستخدام views وfields وغيرها.

    تقدر تستخدمهم مع بعض؛ كل واحد بيحل مشكلة تنظيم مختلفة.

    4. Issue Templates and Forms

    I. Why Use Issue Templates?

    لو كل شخص بيكتب Issues بطريقة مختلفة، ممكن تلاقي Bug report من غير خطوات إعادة الإنتاج، أو Feature Request من غير وصف واضح للنتيجة المطلوبة.

    Issue Templates بتوفر هيكلًا موحدًا يساعد المساهمين على تقديم المعلومات المطلوبة.

    أمثلة:

    Template Examples

    Bug Report

    Bug Report.

    Feature Request

    Feature Request.

    Docs Improvement

    Documentation Improvement.

    في GitHub، يمكن إعداد Issue templates باستخدام ملفات داخل:

    .github/
    └── ISSUE_TEMPLATE/
        ├── bug_report.md
        ├── feature_request.md
        └── config.yml

    II. Markdown Issue Template

    مثال لملف .github/ISSUE_TEMPLATE/bug_report.md:

    ---
    name: Bug Report
    about: Report unexpected behavior
    title: "[Bug]: "
    labels: bug
    assignees: ""
    ---
    
    ## Describe the Bug
    
    Explain what happened.
    
    ## Steps to Reproduce
    
    1. Go to ...
    2. Run ...
    3. Observe ...
    
    ## Expected Behavior
    
    Explain what should happen.
    
    ## Actual Behavior
    
    Explain what happened instead.
    
    ## Environment
    
    - OS:
    - Runtime or tool version:
    - Relevant configuration:
    
    ## Additional Context
    
    Add logs or screenshots when appropriate.
    Remove secrets and sensitive information before submitting.

    الـ frontmatter في بداية الملف بيحدد بيانات مثل الاسم والوصف والـ labels الافتراضية.

    III. Issue Forms

    Issue Forms بتسمح لك بإنشاء نماذج أكثر تنظيمًا من ملفات Markdown التقليدية، باستخدام عناصر مثل:

    Form Elements

    Input fields

    Input fields.

    Textareas

    Textareas.

    Dropdowns

    Dropdowns.

    Checkboxes

    Checkboxes.

    ملفات الـ forms بتكون عادةً بصيغة YAML داخل .github/ISSUE_TEMPLATE/.

    مثال مبسط لملف .github/ISSUE_TEMPLATE/bug-report.yml:

    name: Bug Report
    description: Report unexpected behavior
    title: "[Bug]: "
    labels:
      - bug
    body:
      - type: markdown
        attributes:
          value: |
            Describe the issue clearly.
            Do not include passwords or tokens.
    
      - type: textarea
        id: problem
        attributes:
          label: Problem Description
          description: What happened?
          placeholder: Describe the unexpected behavior.
        validations:
          required: true
    
      - type: textarea
        id: reproduction
        attributes:
          label: Steps to Reproduce
          description: Explain how to reproduce the problem.
        validations:
          required: true
    
      - type: textarea
        id: expected
        attributes:
          label: Expected Behavior
          description: What should happen instead?
        validations:
          required: true

    ده مثال تأسيسي؛ تقدر توسّعه بإضافة أسئلة مناسبة للمشروع.

    IV. When to Use Markdown Templates vs Forms

    Markdown Templates vs Issue Forms
    Markdown Templates Issue Forms
    مناسبة لوصف حر وبسيط مناسبة لجمع معلومات منظمة
    إعدادها مباشر باستخدام Markdown إعدادها يعتمد على YAML وحقول محددة
    تتيح للمستخدم كتابة محتوى مرن تساعد في تقليل المعلومات الناقصة
    مناسبة لقوالب عامة مفيدة للـ bug reports المتكررة

    Note

    Note

    مهم: وجود template لا يضمن أن كل Issue ستكون مكتملة، لكنه يوضح للمساهم ما المعلومات التي يحتاج المشروع إليها.

    5. Linking Issues to Commits and Pull Requests

    ربط الـ Issue بالتغييرات البرمجية يساعدك تفهم:

    Why Link Work

    Intent

    ليه التغيير اتعمل.

    Problem

    إيه المشكلة التي يعالجها.

    Trace

    أي commit أو Pull Request مرتبط بالمهمة.

    Status

    هل المهمة انتهت أم ما زالت قيد التنفيذ.

    مثلًا، عندك Issue رقم 42 خاصة بإصلاح مشكلة في container startup.

    يمكنك الإشارة إليها في commit message:

    git commit -m "Fix container startup validation (#42)"

    الإشارة إلى رقم Issue تساعد على الربط والسياق، لكن مجرد ذكر رقم Issue في commit message لا يعني بالضرورة إغلاقها تلقائيًا.

    II. Reference an Issue in a Pull Request

    داخل وصف Pull Request، يمكنك كتابة:

    ## Summary
    
    - Validate required container configuration.
    - Improve startup error messages.
    
    ## Related Issue
    
    Refs #42

    Refs #42 بتوضح العلاقة بالـ Issue، لكنها لا تُستخدم عادةً كـ closing keyword لإغلاقها تلقائيًا.

    III. Linking Relationships

    flowchart TD
        A(["Issue #42"]) --> B(["Branch: fix/startup-validation"])
        B --> C(["Commit"])
        C --> D(["Pull Request"])
        D --> E(["Review and Checks"])
        E --> F(["Merge"])
    
        classDef issue fill:#E7DCC8,stroke:#9B8059,color:#46372A,stroke-width:1.5px
        classDef development fill:#F3E6D0,stroke:#B99A70,color:#46372A,stroke-width:1.5px
        classDef review fill:#DDE8D8,stroke:#8AA184,color:#344B38,stroke-width:1.5px
        classDef done fill:#DDE8D8,stroke:#8AA184,color:#344B38,stroke-width:1.5px
    
        class A issue
        class B,C development
        class D,E review
        class F done
    
        linkStyle default stroke:#9B8059,stroke-width:1.5px

    الـ Issue ممكن ترتبط بأكثر من commit أو Pull Request حسب طبيعة المهمة. المهم إن الروابط توضح السياق بدل ما تكون مجرد أرقام غير مفهومة.

    6. Closing Keywords

    I. What Are Closing Keywords?

    GitHub يدعم كلمات معينة في commit messages وأوصاف Pull Requests لإغلاق Issues تلقائيًا عند تحقق شروط الإغلاق.

    من الكلمات الشائعة:

    Closing Keywords

    close

    close / closes / closed

    fix

    fix / fixes / fixed

    resolve

    resolve / resolves / resolved

    يمكن استخدامها مع رقم Issue، مثل:

    Fixes #42

    أو داخل وصف Pull Request:

    ## Summary
    
    Fix the startup validation issue and add regression tests.
    
    Closes #42

    II. Common Examples

    Fixes #42
    Closes #15
    Resolves #87

    ويمكن الإشارة إلى أكثر من Issue باستخدام صياغة مناسبة، مثل:

    Fixes #42, closes #43

    III. Important Behavior

    في workflow شائع على GitHub، لو كتبت closing keyword في وصف Pull Request المرتبط بالـ base branch الصحيح، يتم إغلاق الـ Issue تلقائيًا عند دمج الـ Pull Request.

    لكن انتبه إلى الآتي:

    Closing Keyword Caveats

    #42 alone

    كتابة #42 وحدها لا تعني إغلاق Issue.

    Refs is not closing

    Refs #42 تربط العمل بالـ Issue، لكنها ليست closing keyword.

    Commits in branches

    عند استخدام closing keywords في commit messages، قد تختلف النتيجة حسب مكان الـ commit والفرع الذي ينتمي إليه.

    Non-default base

    لو الـ Pull Request استهدف فرعًا غير الـ default branch، فقد لا تُغلق الـ Issue بالطريقة التي تتوقعها تلقائيًا؛ راجع سلوك GitHub والفرع المستهدف.

    Correct reference

    لازم يكون رقم الـ Issue صحيحًا وأن تكون الصياغة واضحة.

    Linking Is Not Closing

    ذكر رقم Issue أو استخدام Refs لا يساوي الإغلاق التلقائي. استخدم closing keyword مناسبًا، وتأكد من سياق الدمج والفرع المستهدف.

    7. GitHub Discussions

    I. What Are Discussions?

    GitHub Discussions مساحة للنقاش والتبادل المعرفي حول المشروع، خصوصًا عندما لا يكون الموضوع مهمة واضحة تحتاج إلى التتبع كـ Issue.

    قد تستخدم Discussions في:

    Discussion Uses

    Questions

    طرح الأسئلة العامة.

    Ideas

    مشاركة الأفكار.

    Help

    طلب المساعدة.

    Design

    مناقشة تصميم أو اتجاه تقني.

    Announcements

    مشاركة الإعلانات والتجارب.

    الـ Discussions ليست بديلًا عن Issues في كل الحالات؛ الاختيار يعتمد على طبيعة الموضوع.

    II. Discussions vs Issues

    Discussions vs Issues
    Aspect Issues Discussions
    Main purpose متابعة مشكلة أو مهمة أو طلب تغيير النقاش والأسئلة وتبادل الأفكار
    Typical example إصلاح Bug محدد مناقشة أفضل تصميم لحل المشكلة
    Tracking work مناسبة لتتبع العمل المطلوب مناسبة للحوار قبل أو أثناء تحديد العمل
    Outcome قد تنتهي بإصلاح أو إكمال مهمة قد تنتج عنها فكرة أو Issue جديدة

    III. Example Workflow

    تخيّل إن أحد المساهمين عنده سؤال:

    لو الموضوع ما زال نقاشًا مفتوحًا، Discussion قد تكون مناسبة.

    لو النقاش انتهى بقرار إضافة Kubernetes manifests، تقدر تنشئ Issue محددة تتضمن:

    From Discussion to Issue

    What

    المطلوب تنفيذه.

    Why

    سبب القرار.

    Acceptance

    شروط القبول.

    Link

    أي روابط إلى النقاش الأصلي.

    بكده النقاش يحتفظ بالسياق، والـ Issue تصبح وحدة العمل القابلة للمتابعة.

    8. GitHub Projects — Basics

    I. What Is GitHub Projects?

    GitHub Projects أداة لإدارة العمل تساعدك على تنظيم ومتابعة Issues وPull Requests وعناصر العمل الأخرى في views قابلة للتخصيص.

    حسب إعدادات المشروع والميزات المتاحة، يمكن استخدام:

    Project Features

    Table view

    Table view.

    Board view

    Board view.

    Roadmap view

    Roadmap view.

    Custom fields

    Custom fields.

    Filters

    Filters and grouping.

    Automations

    Automations.

    GitHub Projects الحديثة تعتمد على عناصر وحقول يمكن تنظيمها بطرق مختلفة؛ مش مجرد قائمة Issues تقليدية.

    II. Board View

    في Board view، تقدر ترتب عناصر العمل في أعمدة تمثل مراحل مختلفة.

    مثال:

    flowchart LR
        A(["Todo"]) --> B(["In Progress"])
        B --> C(["In Review"])
        C --> D(["Done"])
    
        classDef todo fill:#E7DCC8,stroke:#9B8059,color:#46372A,stroke-width:1.5px
        classDef progress fill:#F3E6D0,stroke:#B99A70,color:#46372A,stroke-width:1.5px
        classDef review fill:#DDE8D8,stroke:#8AA184,color:#344B38,stroke-width:1.5px
        classDef done fill:#DDE8D8,stroke:#8AA184,color:#344B38,stroke-width:1.5px
    
        class A todo
        class B progress
        class C review
        class D done
    
        linkStyle default stroke:#9B8059,stroke-width:1.5px

    ده مثال على workflow ممكن تعمله داخل Project. أسماء الأعمدة وترتيبها قابلة للتغيير حسب احتياجك.

    III. Table View

    الـ Table view بتعرض عناصر العمل في صورة جدول، ويمكنك إضافة حقول مناسبة مثل:

    Example Table View
    Item Status Priority Area
    Add container health check In Progress High Docker
    Document deployment process Todo Medium Documentation
    Fix startup validation In Review High Application

    الجدول هنا مثال على طريقة تنظيم البيانات، وليس بيانات مأخوذة من مشروع حقيقي.

    IV. How Projects Work with Issues

    الـ Issue تسجل المهمة وتفاصيلها، بينما الـ Project يساعدك في متابعة مجموعة من المهام معًا.

    flowchart TD
        A(["Project Goal"]) --> B(["GitHub Project"])
        B --> C(["Issue: Docker Health Check"])
        B --> D(["Issue: Update Documentation"])
        B --> E(["Issue: Validate Deployment"])
        C --> F(["Track Status and Priority"])
        D --> F
        E --> F
        F --> G(["Review Overall Progress"])
    
        classDef goal fill:#E7DCC8,stroke:#9B8059,color:#46372A,stroke-width:1.5px
        classDef project fill:#F3E6D0,stroke:#B99A70,color:#46372A,stroke-width:1.5px
        classDef issue fill:#DDE8D8,stroke:#8AA184,color:#344B38,stroke-width:1.5px
        classDef tracking fill:#DDE8D8,stroke:#8AA184,color:#344B38,stroke-width:1.5px
    
        class A goal
        class B project
        class C,D,E issue
        class F,G tracking
    
        linkStyle default stroke:#9B8059,stroke-width:1.5px

    V. Create a Basic Project

    من واجهة GitHub:

    1. Open Projects

      افتح قسم Projects وأنشئ Project جديدًا.

    2. Pick a view

      اختَر طريقة العرض المناسبة كبداية.

    3. Add work items

      أضف Issues أو Pull Requests ذات الصلة.

    4. Add Status

      أضف Status field لمتابعة مراحل العمل.

    5. Add extra fields

      أضف حقولًا أخرى مثل Priority أو Area عند الحاجة.

    6. Group and filter

      استخدم filters أو grouping لتنظيم العرض.

    7. Keep it updated

      حدّث الحالات أثناء تقدم الشغل.

    الأفضل تبدأ بـ Table أو Board بسيطة. مش محتاج تضيف عددًا كبيرًا من الحقول والـ automations قبل ما يكون عندك workflow واضح.

    VI. Issue vs Milestone vs Project

    Issue vs Milestone vs Project
    Tool Main Question Example
    Issue ما المهمة أو المشكلة المطلوب التعامل معها؟ Add a health check
    Milestone ما مجموعة المهام المرتبطة بهدف أو إصدار؟ v1.0.0
    Project كيف نخطط للعمل ونتابع تقدمه عبر عدة عناصر؟ Deployment Roadmap

    تقدر تجمع الأدوات دي في workflow واحد:

    One Workflow

    Record

    تسجل المهمة كـ Issue.

    Classify

    تصنفها باستخدام Labels.

    Assign

    تعيّن المسؤول عنها.

    Milestone

    تربطها بـ Milestone لو مرتبطة بإصدار أو مرحلة.

    Track

    تضيفها إلى Project لمتابعة حالتها.

    Link PR

    تربطها بالـ Pull Request الذي ينفذ التغيير.

    Close

    تستخدم closing keyword مناسبًا لإغلاقها عند اكتمال العمل.

    9. Practical Lab: Manage a Small DevOps Project

    هنطبّق المفاهيم على مشروع تدريبي صغير لإدارة تحسينات Docker وdocumentation.

    1. Create Three Issues

      أنشئ Issues للمهام التالية:

      Issue 1: Add Docker Health Check

      ## Goal
      
      Add a health check to the container.
      
      ## Acceptance Criteria
      
      - [ ] Define the health check.
      - [ ] Verify healthy behavior.
      - [ ] Document the verification steps.

      Issue 2: Document Local Setup

      ## Goal
      
      Document how to run the project locally.
      
      ## Acceptance Criteria
      
      - [ ] List prerequisites.
      - [ ] Document setup commands.
      - [ ] Add troubleshooting notes.

      Issue 3: Validate Deployment Configuration

      ## Goal
      
      Review and validate the deployment configuration.
      
      ## Acceptance Criteria
      
      - [ ] Check required configuration.
      - [ ] Validate the deployment manifests.
      - [ ] Document validation results.
    2. Add Labels and Assignees

      استخدم Labels مناسبة مثل:

      Lab Labels

      enhancement

      enhancement

      documentation

      documentation

      priority:high

      priority:high

      needs-triage

      needs-triage

      اختَر Labels تعبر فعلًا عن طبيعة كل مهمة، وعيّن المسؤول المناسب إذا كنت تعمل ضمن فريق.

    3. Create a Milestone

      أنشئ Milestone باسم:

      v0.1.0 — DevOps Foundation

      اربط بها الـ Issues التي تدخل فعلًا ضمن نطاق الإصدار التدريبي.

    4. Create an Issue Template

      أضف Bug Report template داخل:

      .github/ISSUE_TEMPLATE/bug_report.md

      جرّب إنشاء Issue جديدة وتأكد من أن النموذج يساعدك في جمع المعلومات اللازمة.

    5. Create a Project

      أنشئ Project باسم:

      DevOps Learning Roadmap

      استخدم Board view بحالات مثل:

      Board Columns

      Todo

      Todo

      In Progress

      In Progress

      In Review

      In Review

      Done

      Done

      أضف الـ Issues الثلاثة وتابع تقدمها.

    6. Link a Pull Request

      لو عندك تغيير فعلي مرتبط بإحدى المهام، افتح Pull Request يشرح التغيير واربطه بالـ Issue.

      في وصف الـ Pull Request، استخدم مثلًا:

      Fixes #42

      استبدل 42 برقم الـ Issue الفعلي، وتأكد من استهداف الفرع المناسب حتى يتم الإغلاق التلقائي وفق قواعد GitHub.

    7. Review the Workflow

      في نهاية التجربة، تأكد أنك تقدر تجاوب عن الأسئلة دي:

      Review Questions

      Open work

      ما المهام المفتوحة؟

      Ownership

      من المسؤول عن كل مهمة؟

      Next release

      ما المهام المرتبطة بالإصدار القادم؟

      In progress

      أي المهام قيد التنفيذ؟

      Code link

      ما التغيير البرمجي الذي يعالج Issue معينة؟

      Discussion vs Issue

      هل النقاش يحتاج Discussion أم Issue؟

      Project health

      هل الـ Project يعرض تقدمًا واضحًا أم يحتاج تبسيطًا؟

    Summary

    Key Takeaways

    Issues

    لتسجيل Bugs والمهام والتحسينات ومتابعة تفاصيلها.

    Labels

    لتصنيف العمل وتسهيل البحث والفلترة.

    Assignees

    لتحديد المسؤول عن متابعة المهمة.

    Milestones

    لتجميع Issues وPull Requests مرتبطة بهدف أو إصدار.

    Issue Templates

    لتوحيد شكل البلاغات والطلبات.

    Issue Forms

    لجمع معلومات منظمة باستخدام حقول محددة.

    Commit and PR Links

    لتوضيح العلاقة بين المهمة والتغيير البرمجي.

    Closing Keywords

    لإغلاق Issues تلقائيًا عند تحقق شروط GitHub المناسبة.

    Discussions

    للنقاش والأسئلة وتبادل الأفكار.

    GitHub Projects

    لتنظيم العمل ومتابعة التقدم باستخدام views وfields.

    Was this helpful?

    No

    Thanks for the feedback.

    Offline · Reading cached copy